/* フォントはアプリに同梱(オフラインでも同じ見た目)。JIS 第1・第2水準の漢字とアプリで使う文字だけに絞った woff2。
   Zen Maru Gothic: SIL Open Font License 1.1(assets/fonts/OFL.txt) */
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('assets/fonts/ZenMaruGothic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('assets/fonts/ZenMaruGothic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* まちホリ: きれいでやさしいデザイン。
   ドット絵(キャラ・タマゴ・みんなでクラフトの建物)だけは pixelated でくっきり、それ以外は丸みのある明るい画面。 */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --card-2: #f4f0e8;
  --ink: #3d3a40;
  --muted: #8a8590;
  --line: #ece6dc;
  --accent: #f08a5d; /* やわらかいオレンジ */
  --accent-2: #fde3d6;
  --primary: #ef6f6c; /* ボタンのコーラル */
  --good: #3fae83;
  --good-2: #dff3ea;
  --bad: #d9534f;
  --gold: #e8a100;
  --shadow: 0 6px 20px rgba(80, 60, 40, 0.08);
  --radius: 18px;
  --tab-h: 64px;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ドット絵だけはくっきり */
canvas.sprite,
canvas.monument,
canvas.egg {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.sprite {
  width: 128px;
  height: 128px;
}
.sprite-m {
  width: 64px;
  height: 64px;
}
.sprite-s {
  width: 32px;
  height: 32px;
}

button {
  font-family: var(--font);
  color: inherit;
}

select {
  font-family: var(--font);
  font-size: 15px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  max-width: 100%;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: env(safe-area-inset-top);
}

/* ---- 上の帯 ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
}
.avatar-btn canvas {
  background: var(--card-2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.nick {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tickets {
  display: flex;
  gap: 6px;
  font-size: 14px;
}
.ticket {
  background: var(--card);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: var(--shadow);
}
.ticket b {
  margin-left: 3px;
  color: var(--accent);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow);
  font-size: 17px;
  line-height: 1;
}
#mute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
#mute-btn.off {
  color: var(--muted);
}

main {
  flex: 1;
  padding: 14px 14px calc(var(--tab-h) + env(safe-area-inset-bottom) + 20px);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* ---- カード ---- */
.box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 16px;
  padding: 16px 16px 14px;
}
.box-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0;
  line-height: 1.7;
}
.center {
  text-align: center;
}
.status-line {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--good);
  margin: 8px 0 0;
}
.status-line.error {
  color: var(--bad);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

/* ---- ボタン ---- */
.btn {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 12px;
  margin: 10px 0 4px;
  background: var(--card-2);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(239, 111, 108, 0.35);
}
.btn.big {
  font-size: 17px;
  padding: 15px 12px;
}
.btn.small {
  display: inline-block;
  width: auto;
  font-size: 14px;
  padding: 8px 14px;
  margin: 3px 0;
}
.btn.danger {
  background: #fbe4e3;
  color: var(--bad);
}
.btn:disabled {
  opacity: 0.4;
  box-shadow: none;
}

/* ---- 歩数 ---- */
.steps {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.steps small {
  font-size: 16px;
  margin-left: 6px;
  color: var(--muted);
}
.bar {
  position: relative;
  height: 12px;
  background: var(--card-2);
  border-radius: 999px;
  margin: 8px 0;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fd3a8, var(--good));
  transition: width 0.5s ease;
}
.bar-fill.gold {
  background: linear-gradient(90deg, #ffd27a, var(--gold));
}
.bar-mark {
  position: absolute;
  top: 2px;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
}
.bar-mark.memory {
  background: #b48be8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.stats > div {
  background: var(--card-2);
  border-radius: 14px;
  padding: 8px 4px 6px;
}
.stat-num {
  margin: 2px 0 0;
  white-space: nowrap;
}
.stats b {
  font-size: 28px;
  color: var(--accent);
  line-height: 1.2;
}
.stat-num small {
  margin-left: 2px;
}
.stats small {
  font-size: 12px;
  color: var(--muted);
}
.stats em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--gold);
  min-height: 1.2em;
}

.view-title {
  margin: 4px 4px 16px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* ---- 地図 ---- */
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map {
  display: block;
  width: 100%;
  height: calc(100vh - 240px);
  min-height: 320px;
  touch-action: none;
  background: #dceef5;
}
.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-tools {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-info {
  margin: 14px 6px;
  min-height: 2.8em;
  font-size: 15px;
}

/* ---- 図鑑 ---- */
.book-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 14px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.card {
  position: relative;
  background: var(--card);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 4px 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.card:not(.got) {
  background: #f2efe9;
  box-shadow: none;
}
.card .cat {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
}
.card .name {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stars {
  color: var(--gold);
  letter-spacing: -1px;
}

/* ---- みんなでクラフト ---- */
.monument {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 8px auto;
  border-radius: 14px;
}
.remain {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin: 10px 0 4px;
}
/* 段階のタイムライン(点を線でつなぐ。済んだところは線も塗る) */
.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0 6px;
  padding: 0;
}
.stages li {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.stages li::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 4px;
  background: var(--line);
  z-index: 0;
}
.stages li:first-child::before {
  display: none;
}
.stages li.done::before,
.stages li.now::before {
  background: var(--good);
}
.stages .dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-2);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.stages li b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.stages li small {
  display: block;
  font-size: 10px;
}
.stages li.done .dot {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}
.stages li.done {
  color: var(--good);
}
.stages li.now .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px var(--accent-2);
}
.stages li.now {
  color: var(--accent);
  font-weight: 700;
}
.donate-list .item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.donate-list .item:last-child {
  border-bottom: 0;
}
.donate-list .item .what {
  font-size: 14.5px;
  line-height: 1.6;
}
.donate-list .item .what .mat-icon {
  margin: 0 4px 0 2px;
  font-size: 0.85em;
}
.donate-list .cat-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.donate-btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.donate-btns .btn {
  flex: 1;
}
.donate-list .item.off {
  opacity: 0.45;
}
.donate-list .item.off .donate-btns {
  display: none;
}
.odai p {
  margin: 6px 0;
  line-height: 1.7;
}
.odai-main {
  font-size: 20px;
  font-weight: 700;
}
.odai-icon {
  font-size: 26px;
  margin-right: 6px;
  vertical-align: -3px;
}
.odai-name {
  font-size: 18px;
}
.odai-have {
  color: var(--good);
}
.odai-have.none {
  color: var(--muted);
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow: auto;
}
.feed li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.feed li:last-child {
  border-bottom: 0;
}
.feed li.new {
  animation: fresh 1.6s ease;
}
.stamps {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.stamp {
  background: var(--card-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
}
.stamp.on {
  background: var(--accent-2);
  border-color: var(--accent);
}
.hall .season {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hall .season h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.hall .plate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
}
.demo-note {
  color: #c06090;
}

/* ---- 下のタブ ---- */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  height: var(--tab-h);
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.tabs button .ti {
  font-size: 22px;
  filter: grayscale(1);
  opacity: 0.6;
}
.tabs button.active {
  color: var(--accent);
}
.tabs button.active .ti {
  filter: none;
  opacity: 1;
}

/* ---- モーダル ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(60, 50, 40, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.modal[hidden] {
  display: none;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  overflow: auto;
  background: var(--card);
  border-radius: 24px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(60, 40, 20, 0.25);
}
.modal-card h2 {
  margin: 4px 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.modal-card .big-sprite,
.char-sheet .big-sprite {
  width: 160px;
  height: 160px;
  margin: 6px auto;
  display: block;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 60%, #fff4e8, #f4ede2);
}
/* 生まれる演出ではシルエットがキャラの形になるよう、背景はキャラの canvas ではなく後ろの台に付ける */
.reveal-stage::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 60%, #fff4e8, #f4ede2);
}
.reveal-stage .big-sprite {
  position: relative;
  background: none;
}
.modal-card p {
  margin: 6px 0;
  line-height: 1.7;
}
.modal-card input {
  width: 100%;
  font-family: var(--font);
  font-size: 18px;
  padding: 12px 14px;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 10px 0;
}
.material-name {
  color: #b5651d;
  font-weight: 700;
}
.banner {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 8px;
  animation: pop 0.5s ease;
}
.banner.limit {
  background: #8c6be8;
}
.banner.material {
  background: var(--good);
}
.feed-head {
  font-size: 12.5px;
  color: var(--muted);
}
.feed-head b {
  color: var(--ink);
}
.feed-what {
  margin-top: 2px;
  font-size: 14.5px;
}
.feed-what .mat-icon {
  font-size: 0.8em;
}

/* ---- ガチャ: まちタマゴ ---- */
.hatch {
  position: relative;
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.egg {
  width: 160px;
  height: 160px;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  transform-origin: 50% 90%;
}
.hatch-shadow {
  position: absolute;
  bottom: 12px;
  width: 96px;
  height: 12px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
}
.egg-drop {
  animation: egg-drop 0.45s steps(6) both;
}
.wobble-0 {
  animation: wobble 0.5s steps(4) infinite;
  --amp: 3deg;
}
.wobble-1 {
  animation: wobble 0.36s steps(4) infinite;
  --amp: 6deg;
}
.wobble-2 {
  animation: wobble 0.24s steps(4) infinite;
  --amp: 10deg;
}
.wobble-3 {
  animation: wobble 0.14s steps(2) infinite;
  --amp: 14deg;
}
.shake-1 {
  animation: screen-shake 0.25s steps(3);
  --shake: 3px;
}
.shake-2 {
  animation: screen-shake 0.3s steps(4);
  --shake: 6px;
}
.shake-3 {
  animation: screen-shake 0.45s steps(6);
  --shake: 10px;
}
.modal-card {
  position: relative;
}
.hatch-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fcfcfc;
  animation: flash 0.3s steps(3) both;
}
@keyframes egg-drop {
  0% {
    transform: translateY(-180px);
  }
  80% {
    transform: translateY(6px) scaleY(0.9);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(calc(var(--amp) * -1));
  }
  75% {
    transform: rotate(var(--amp));
  }
}
@keyframes screen-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(calc(var(--shake) * -1), var(--shake));
  }
  40% {
    transform: translate(var(--shake), calc(var(--shake) * -1));
  }
  60% {
    transform: translate(calc(var(--shake) * -1), 0);
  }
  80% {
    transform: translate(var(--shake), var(--shake));
  }
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .egg-drop,
  .wobble-0,
  .wobble-1,
  .wobble-2,
  .wobble-3 {
    animation: none;
  }
}

/* ---- ガチャ: 生まれる演出(シルエット → 色 → 文字が順に) ---- */
.reveal-stage {
  position: relative;
  width: 160px;
  height: 172px;
  margin: 6px auto;
}
.reveal-stage .big-sprite {
  margin: 0;
}
.eggshell {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
  image-rendering: pixelated;
}
.modal-card.reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #fff;
  pointer-events: none;
  animation: unflash 0.6s ease forwards;
}
.reveal .big-sprite {
  animation: rise 1.6s ease both;
}
.reveal .eggshell {
  animation: shell-away 1.6s ease both;
}
.reveal .r1 {
  animation: fade-up 0.45s ease 1.5s both;
}
.reveal .r2 {
  animation: fade-up 0.45s ease 1.8s both;
}
.reveal .r3 {
  animation: fade-up 0.45s ease 2.1s both;
}
.reveal .r4 {
  animation: fade-up 0.45s ease 2.4s both;
}
.modal-card.skip *,
.modal-card.skip::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}
@keyframes unflash {
  to {
    opacity: 0;
  }
}
@keyframes rise {
  0% {
    transform: translateY(46px) scale(0.5);
    filter: brightness(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  55% {
    transform: translateY(-8px) scale(1.06);
    filter: brightness(0);
  }
  72% {
    filter: brightness(1.7);
  }
  100% {
    transform: none;
    filter: none;
  }
}
@keyframes shell-away {
  0%,
  60% {
    opacity: 1;
    transform: translateX(-50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal .big-sprite,
  .reveal .eggshell {
    animation-duration: 0.01s;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fresh {
  0% {
    background: var(--accent-2);
  }
  100% {
    background: transparent;
  }
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loading[hidden] {
  display: none;
}
.logo {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.08em;
}

.debug {
  background: #fff7fa;
  border: 1px dashed #f0b8cc;
  box-shadow: none;
}

/* 寄付の演出: 素材が建造物に吸い込まれる */
.fly-material {
  position: fixed;
  z-index: 50;
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(60, 74, 120, 0.25));
}
canvas.monument.gulp {
  animation: gulp 0.32s ease-out;
}
@keyframes gulp {
  40% {
    transform: scale(1.04);
    filter: brightness(1.12);
  }
}
.fx-plus {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(60, 74, 120, 0.18);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  pointer-events: none;
  animation: fx-plus 1.4s ease-out forwards;
}
@keyframes fx-plus {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  to {
    transform: translateY(-36px);
    opacity: 0;
  }
}

/* クラフト完成のお祝い */
.modal-card.celebrate {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto; /* 画面より高くなっても、下の「やったね!」までスクロールできるように */
  text-align: center;
}
.modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.season-name {
  margin: -4px 0 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(13px, 4.2vw, 16px);
  font-weight: 700;
  color: var(--ink);
}
.celebrate-kicker {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.celebrate-monument {
  max-width: 180px;
  animation: celebrate-pop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.celebrate-mine {
  font-size: 15px;
}
.celebrate-gift {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--accent);
  font-weight: 700;
}
@keyframes celebrate-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confetti-fall linear infinite;
}
@keyframes confetti-fall {
  to {
    transform: translateY(640px) rotate(540deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .confetti {
    display: none;
  }
  .celebrate-monument {
    animation: none;
  }
}

/* レジェンドキャラ */
.card.legend-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  background: linear-gradient(135deg, #fff8e6, #fdeccc);
  border: 1px solid #f1d58f;
}
.card.legend-card canvas {
  grid-row: 1 / 4;
}
.legend-badge {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.legend-slot {
  display: flex;
  justify-content: center;
}
.modal-card.legend .big-sprite {
  animation: celebrate-pop 0.8s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* 素材のアイコン(種類の色の丸い札 + 種類の絵文字) */
.mat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  vertical-align: -0.55em;
  margin-right: 4px;
  font-size: 0.95em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(60, 74, 120, 0.12);
}
.fly-material .mat-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  font-size: 26px;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(60, 74, 120, 0.3);
}

/* まとめて引く */
.btn.multi {
  display: block;
  margin: 6px auto 0;
}
.btn.multi[hidden] {
  display: none;
}
.modal-card.many {
  max-height: 86vh;
  overflow-y: auto;
}
.many-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.many-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 10px;
  background: var(--card-2);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}
.many-cell.first_landing {
  background: #fff1cf;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.many-cell.limit_break {
  background: #e3efff;
}
.many-cell canvas {
  width: 48px;
  height: 48px;
}
.many-cell .tag {
  font-size: 10px;
  color: var(--muted);
}
.many-cell .tag.first {
  color: #c98a00;
}
.many-cell .tag.limit {
  color: #3a6fc4;
}
.many-cell small {
  color: var(--muted);
  font-size: 9px;
}
.many-totals {
  list-style: none;
  padding: 0;
  margin: 6px 0 12px;
  text-align: left;
  font-size: 13px;
  line-height: 2;
}
.many-mat {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-size: 20px;
}
.many-mat .mat-icon {
  margin: 0;
}

/* 初上陸のごほうび */
.bonus-line {
  margin: 10px auto 4px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff4dc;
  color: #a86b00;
  font-size: 14px;
  line-height: 1.6;
}

/* はやわざボーナス・もらえるアイテム */
.early-note {
  margin: 4px auto 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff4dc;
  color: #a86b00;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.early-note small {
  color: var(--muted);
}
.reward-box {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card-2);
  text-align: left;
}
.reward-title {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.reward-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reward-box li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.reward-box li:last-child {
  border-bottom: 0;
}
.reward-box li small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.reward-box li b {
  color: var(--accent);
  font-size: 18px;
}
.reward-box li.early {
  color: #a86b00;
}

/* 見出しの横の ? ボタン */
.box-head,
.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.box-head .box-title {
  margin: 0;
}
.view-head {
  justify-content: center;
  position: relative;
  margin: 4px 4px 16px;
}
.view-head .view-title {
  margin: 0;
}
.view-head .help-btn {
  position: absolute;
  right: 0;
}
.help-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--card-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.book-head .help-btn {
  margin-left: auto;
}
.map-info-box {
  position: relative;
}
.map-info-box .map-info {
  padding-right: 88px;
}
.map-info-box .rank-btn {
  position: absolute;
  top: 8px;
  right: 44px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--card-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.map-info-box .help-btn {
  position: absolute;
  top: 8px;
  right: 2px;
}

/* ホーム: 歩数と更新ボタンを横に */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}
.steps-row .steps {
  margin: 0;
}
.gacha-box .btn.big + .btn.big,
.gacha-box .btn.multi + .btn.big {
  margin-top: 12px;
}

/* 締め切り */
.deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 8px;
  font-size: 15px;
}
.deadline-label {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}
.deadline-left {
  font-weight: 700;
  color: var(--accent);
}
.deadline-left.soon {
  color: #d84a3a;
}
.deadline-rate {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.deadline-done {
  font-weight: 700;
  color: #a86b00;
}

/* 下から出る説明のシート */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(40, 44, 60, 0);
  transition: background 0.2s;
}
.sheet-backdrop.open {
  background: rgba(40, 44, 60, 0.35);
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  overflow-y: auto;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--card);
  box-shadow: 0 -8px 30px rgba(40, 44, 60, 0.18);
  transform: translateY(100%);
  transition: transform 0.22s ease-out;
}
.sheet-backdrop.open .sheet {
  transform: translateY(0);
}
.sheet-grip {
  width: 40px;
  height: 5px;
  margin: 0 auto 6px;
  border-radius: 3px;
  background: var(--line);
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--card-2);
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}
.sheet-body h2 {
  margin: 6px 0 10px;
  font-size: 19px;
}
.sheet-body h3 {
  margin: 16px 0 4px;
  font-size: 15px;
}
.sheet-body ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.75;
}

/* お知らせ(画面の下) */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 15; /* ダイアログ(20)より下: 完成のお祝いなどのボタンにかぶらない */
  width: max-content;
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(46, 52, 72, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast small {
  opacity: 0.85;
}
.status-line.error-only:empty {
  display: none;
}
/* ホームを 1 画面に収める */
.gacha-box {
  padding-bottom: 12px;
}
.gacha-box .btn.multi {
  margin-top: 6px;
}
.donate-list .item .what .qty {
  margin: 0 10px 0 4px;
  font-weight: 700;
  white-space: nowrap;
}
.donate-list .item .what .cat-tag {
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
}
.donate-list .item .what .cat-label {
  display: block;
}

/* プライバシーポリシー(シートの中) */
.privacy h1 {
  margin: 6px 40px 4px 0;
  font-size: 19px;
}
.privacy .meta {
  font-size: 12px;
  color: var(--muted);
}
.privacy h2 {
  margin: 18px 0 6px;
  font-size: 15px;
}
.privacy p,
.privacy li {
  font-size: 13.5px;
  line-height: 1.75;
}
.privacy ul {
  padding-left: 1.2em;
}
.privacy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.privacy th,
.privacy td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.privacy th {
  width: 34%;
  color: var(--muted);
  font-weight: 700;
}
.privacy a {
  color: var(--accent);
}

/* 素材の種類のトグル */
.mat-filter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 2px 0 8px;
}
.mat-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 4px;
  border: 0;
  border-radius: 12px;
  background: var(--card-2);
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
}
.mat-toggle .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint, #fff);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.mat-toggle small {
  font-size: 10px;
  white-space: nowrap;
}
.mat-toggle.on {
  background: var(--accent-2);
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.mat-toggle:disabled {
  opacity: 0.35;
}
/* 一覧の中の種類アイコンは小さめに */
.donate-list .item .what .mat-icon {
  width: 1.45em;
  height: 1.45em;
  font-size: 0.72em;
  vertical-align: -0.35em;
}

/* 寄付: 素材をタップすると数のボタンが開く */
.donate-list .item .what {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.donate-list .item .what:disabled {
  cursor: default;
}
.donate-list .item .chev {
  float: right;
  color: var(--muted);
  transition: transform 0.15s;
}
.donate-list .item.open .chev {
  transform: rotate(180deg);
}
.donate-list .item.open {
  background: #fffaf3;
  margin: 0 -8px;
  padding: 12px 8px;
  border-radius: 12px;
}
.donate-btns {
  align-items: center;
}
.donate-btns .ask {
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
}
/* アイコンを文字の高さにそろえる(少し上へ) */
.donate-list .item .what .cat-tag,
.feed-what {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.feed-what {
  display: flex;
  flex-wrap: wrap;
}
.donate-list .item .what .mat-icon,
.feed-what .mat-icon {
  vertical-align: middle;
  position: relative;
  top: -1px;
}
/* ガチャ券の説明 */
.tickets {
  cursor: pointer;
}
.ticket-help {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
}
.ticket-help .big {
  font-size: 34px;
  line-height: 1;
}
.ticket-help p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
/* 歴史の殿堂(折りたたみ) */
details.season {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.season summary {
  padding: 8px 0;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
}
details.season summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
}
details.season[open] summary::after {
  content: '▴';
}
details.season .plate {
  font-size: 13.5px;
}
.season-failed {
  margin: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.sheet-grip {
  width: 48px;
  height: 6px;
  margin: 0 auto 10px;
}

/* みんなでクラフトの知らせ(起動・復帰時、変わったことがあるときだけ 1 行) */
.craft-pop {
  position: fixed;
  left: 50%;
  top: calc(66px + env(safe-area-inset-top));
  z-index: 16;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 6px 20px rgba(60, 74, 120, 0.2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -10px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  cursor: pointer;
}
.craft-pop.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.craft-pop b {
  color: var(--accent);
}

/* 歴史の殿堂の銘板: 1 行に収める */
.hall .plate > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall .plate .mat-icon {
  width: 1.3em;
  height: 1.3em;
  font-size: 0.68em;
  margin: 0 2px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.sheet-body a {
  color: var(--accent);
}

/* 機種変更 */
.tr-code {
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card-2);
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  user-select: all;
}
.sheet-body input {
  width: 100%;
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sheet-body .btn {
  width: 100%;
  margin-top: 6px;
}
.btn.link {
  background: none;
  box-shadow: none;
  color: var(--accent);
  text-decoration: underline;
}
.captcha-box {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translateX(-50%);
}

/* マイページ(シート) */
.profile {
  text-align: center;
}
.profile .big-sprite {
  width: 128px;
  height: 128px;
  margin: 6px auto;
  display: block;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 60%, #fff4e8, #f4ede2);
  image-rendering: pixelated;
}
.profile .btn {
  width: 100%;
  margin-top: 8px;
}
.sheet-back {
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
}

/* シェア */
.share-btn {
  padding: 6px 12px;
  font-size: 13px;
}
.share-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 6px 0 10px;
}

/* 電光掲示板 */
.ticker {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top));
  z-index: 4;
  overflow: hidden;
  white-space: nowrap;
  background: #2e3448;
  color: #ffd76a;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 30px;
  height: 30px;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  /* 電光掲示板らしく、点の模様をうっすら */
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 4px 4px;
}
.ticker[hidden] {
  display: none;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-run linear infinite;
  will-change: transform;
}
.ticker-item {
  padding-right: 80px;
  text-shadow: 0 0 6px rgba(255, 200, 80, 0.55);
}
@keyframes ticker-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* バッジ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 8px;
  border-radius: 14px;
  background: var(--card-2);
  text-align: center;
  color: var(--muted);
}
.badge-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9e3d9;
  font-size: 22px;
  color: #bdb6ab;
  font-weight: 700;
}
.badge b {
  font-size: 13px;
}
.badge small {
  font-size: 10px;
  line-height: 1.4;
}
.badge.got {
  background: #fff4dc;
  color: #a86b00;
}
.badge.got .badge-ic {
  background: linear-gradient(135deg, #ffe6a3, #f8b800);
  box-shadow: 0 2px 6px rgba(200, 140, 0, 0.35);
}
.badge.got b {
  color: var(--ink);
}

/* ダーツ */
.dart-btn {
  font-size: 20px;
}
.dart-btn.used {
  opacity: 0.45;
}
.dart-fly {
  position: fixed;
  z-index: 30;
  font-size: 34px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

/* みんなの地図 */
.crowd-btn {
  font-size: 18px;
}
.crowd-btn.on {
  background: var(--accent-2);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.map-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 70px);
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
}
.map-legend small {
  color: var(--muted);
}
.map-legend .legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.map-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: -1px;
}

/* 称号 */
.title-chip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: 1px;
}
.title-chip.rank2 {
  background: #e7defa;
}
.title-chip.rank3 {
  background: #fdeab0;
  color: #8a5a00;
}
.titles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 12px;
}
.titles .title-chip {
  margin: 0;
  font-size: 12px;
}

/* ランキング */
.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
}
.rank-row.me {
  background: var(--accent-2);
  border-radius: 10px;
}
.rank-no {
  flex: none;
  width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.rank-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-total {
  flex: none;
  font-weight: 700;
}
.rank-total small {
  margin-left: 2px;
  font-weight: 400;
  color: var(--muted);
}
.rank-sep {
  text-align: center;
  color: var(--muted);
  line-height: 1;
}
.rank-players {
  margin: 6px 0 0;
  text-align: right;
}

/* エンドロール */
.monument.tappable {
  cursor: pointer;
}
.cr-hint {
  margin: 2px 0 8px;
  text-align: center;
  font-size: 12px;
}
.credits {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: linear-gradient(#141a33, #2a2550 60%, #3b2c4f);
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s;
}
.credits.open {
  opacity: 1;
}
.credits-x {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.credits-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.credits-inner {
  padding: 75vh 24px 45vh;
  text-align: center;
}
.cr-kicker {
  margin: 0;
  color: #f8d27a;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.cr-title {
  margin: 8px 0 24px;
  font-size: 20px;
  line-height: 1.5;
}
.cr-monument {
  display: block;
  width: 60%;
  max-width: 220px;
  margin: 0 auto 48px;
}
.cr-head {
  margin: 56px 0 24px;
  color: #f8d27a;
  font-size: 15px;
  letter-spacing: 0.25em;
}
.cr-head.small {
  font-size: 13px;
}
.cr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cr-person {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cr-count {
  color: rgba(255, 255, 255, 0.6);
}
.cr-list.t1 .cr-person {
  margin: 0 0 36px;
}
.cr-list.t1 .cr-name {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}
.cr-list.t1 .cr-count {
  font-size: 15px;
}
.cr-list.t1 .cr-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
}
.cr-list.t2 .cr-person {
  margin: 0 0 20px;
}
.cr-list.t2 .cr-name {
  font-size: 20px;
  font-weight: 700;
}
.cr-list.t2 .cr-count {
  font-size: 12px;
}
.cr-list.t2 .cr-avatar {
  width: 44px;
  height: 44px;
}
.cr-list.t3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.cr-list.t3 .cr-person {
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
}
.cr-list.t3 .cr-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-list.t3 .cr-count {
  flex: none;
  font-size: 11px;
}
.cr-list.t3 .cr-avatar {
  display: none;
}
.cr-materials {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
}
.cr-materials small {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.5);
}
.cr-sum {
  margin: 72px 0 12px;
  font-size: 16px;
  line-height: 1.8;
}
.cr-thanks {
  margin: 0;
  color: #f8d27a;
  font-size: 26px;
  font-weight: 700;
}
.cr-fin {
  margin: 120px 0 0;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
}

/* 連続ログイン・きょうのミッション */
.daily-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pill {
  position: relative;
  flex: 1;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pill b {
  margin: 0 1px;
}
.pill .dot {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--card);
}
.stamp-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  margin: 14px 0 8px;
  padding: 0;
}
.stamp-card li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  border-radius: 12px;
  background: var(--card-2);
}
/* 7 日目は 2 マスぶんの大きな枠 */
.stamp-card li.last {
  grid-column: span 2;
  background: #fdeab0;
}
.stamp-card .day-no {
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}
.stamp-card .day-no small {
  margin-left: 1px;
  font-size: 11px;
  font-weight: 700;
}
.stamp-card li span {
  font-size: 18px;
  line-height: 1.4;
}
.stamp-card li em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.stamp-card li.got {
  background: var(--accent-2);
}
.stamp-card li.got span {
  color: var(--primary);
  font-weight: 700;
}
.stamp-card li.today {
  box-shadow: 0 0 0 3px var(--primary);
}
.stamp-card .today-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}
.reward-line {
  font-weight: 700;
}
.missions {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.missions li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.missions li > div {
  flex: 1;
  min-width: 0;
}
.missions li small {
  color: var(--muted);
}
.missions .bar.thin {
  height: 6px;
  margin: 5px 0 2px;
}
.missions li.claimed b {
  color: var(--muted);
}
.missions .m-ok {
  flex: none;
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
}
.missions .btn.small {
  flex: 0 0 auto;
  width: auto;
  min-width: 76px;
  margin: 0;
}
.missions li.bonus {
  border-bottom: 0;
}

/* ずかんのしぼりこみ */
.book-filter {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}
.book-filter button {
  flex: 1;
  padding: 6px 0;
  border: 0;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.book-filter button.on {
  background: var(--accent-2);
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent) inset;
}
.book-empty {
  grid-column: 1 / -1;
  padding: 8px 0;
}
/* キャラの説明 */
.bio {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-2);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}
/* 旅の日記 */
.diary-day {
  margin: 14px 0 0;
}
.diary-day h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.diary-day h3 small {
  color: var(--muted);
  font-weight: 400;
}
.diary-day ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.diary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--card-2);
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.diary-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.diary-item b,
.diary-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diary-item b {
  font-size: 13px;
}
.diary-item small {
  font-size: 10px;
  color: var(--muted);
}

/* 素材の交換所 */
.ex-have small {
  color: var(--muted);
}
.ex-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.ex-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--card-2);
}
.ex-icon {
  font-size: 26px;
}
.ex-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ex-card small {
  color: var(--muted);
  font-size: 11px;
}
.ex-card .btn.small {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

/* アイコン(名前の横) */
.feed-avatar,
.rank-avatar {
  width: 22px;
  height: 22px;
  margin-right: 3px;
  vertical-align: -6px;
  image-rendering: pixelated;
}
.rank-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
}
/* 県対抗戦 */
.pref-battle {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pref-battle li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.pb-no {
  flex: none;
  width: 26px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.pb-name {
  flex: none;
  width: 92px;
  font-size: 14px;
  white-space: nowrap;
}
.pb-name small {
  display: block;
  font-size: 10px;
  color: var(--good);
}
.pb-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}
.pb-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.pref-battle b {
  flex: none;
  min-width: 34px;
  text-align: right;
}

/* 全国制覇のグランドフィナーレ */
.credits.finale {
  background: linear-gradient(#1b1430, #3a1f45 45%, #6b3a3a 80%, #b0663a);
}
.finale-title {
  font-size: 34px;
  color: #f8d27a;
}
.finale-map {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 24px auto 0;
  border-radius: 18px;
  background: #dceef5;
}
.finale-regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.finale-regions li {
  padding: 8px 0;
  border-radius: 10px;
  background: var(--c);
  color: #3d3a40;
  font-size: 13px;
  font-weight: 700;
}
.finale-legends {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.finale-legends canvas {
  width: 100%;
  height: auto;
}
.finale-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.finale-stats li {
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}
.finale-stats small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}
.finale-stats b {
  font-size: 24px;
}
.finale-stats b small {
  display: inline;
  margin-left: 2px;
}
.finale-rewards {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 2.4;
}
.finale-rewards b {
  color: #f8d27a;
}
/* 全国制覇の殿堂 */
.grand-hall {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4d6, #fde3d6);
}
.grand-head {
  margin: 0 0 6px;
  font-weight: 700;
}
.grand-hall ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.grand-hall li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.grand-no {
  flex: none;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
}
.grand-hall small {
  margin-left: auto;
  color: var(--muted);
}
.badge.special {
  background: linear-gradient(135deg, #fff1c2, #f9d27a);
  box-shadow: 0 0 0 2px var(--gold) inset;
}
.title-chip.rank4 {
  background: linear-gradient(135deg, #f9d27a, #f08a5d);
  color: #fff;
}

.rare-chip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c7a8ee, #f7a6a0);
  color: #fff;
  font-size: 12px;
  vertical-align: 2px;
}

/* 完成の記録・次のシーズン */
.season-record,
.next-season {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.season-record b {
  color: #a86b00;
}
.next-season {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent-2);
  color: var(--ink);
}
.hall-days {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fdeab0;
  color: #8a5a00;
  font-size: 11px;
}
.hall .season-record {
  margin: 4px 0 6px;
}
.celebrate .season-record {
  text-align: center;
}

/* 延長戦の投票 */
.vote-box {
  background: linear-gradient(160deg, #f4eefc, #fff);
}
.vote-deadline {
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #6b4fa0;
}
.vote-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.vote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.vote-card.mine {
  box-shadow: 0 0 0 2px #8a6fd0, var(--shadow);
}
.vote-shadow {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  image-rendering: pixelated;
}
.vote-hint {
  margin: 0;
  min-height: 2.8em;
  font-size: 12px;
  line-height: 1.4;
}
.vote-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}
.vote-bar i {
  display: block;
  height: 100%;
  background: #8a6fd0;
}
.vote-card small {
  color: var(--muted);
  font-size: 11px;
}
.vote-card .btn.small {
  width: 100%;
  margin: 2px 0 0;
  padding-left: 0;
  padding-right: 0;
  font-size: 12px;
}
.round-chip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e7defa;
  color: #5a3f90;
  font-size: 12px;
  vertical-align: 2px;
}

/* 歩数の連携の説明 */
.link-list {
  margin: 8px 0;
  padding-left: 1.2em;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}
#steps-refresh[hidden],
#steps-link[hidden] {
  display: none;
}

/* 歩数を更新の足あと */
.footprint {
  position: fixed;
  z-index: 20;
  width: 12px;
  height: 18px;
  margin: -9px 0 0 -6px;
  pointer-events: none;
  opacity: 0;
  transform: rotate(var(--rot));
  animation: foot-in 0.9s ease-out forwards;
}
.footprint svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--accent);
}
.footprint.right svg {
  transform: scaleX(-1);
}
@keyframes foot-in {
  0% {
    opacity: 0;
    transform: rotate(var(--rot)) scale(0.6);
  }
  15% {
    opacity: 0.9;
    transform: rotate(var(--rot)) scale(1);
  }
  60% {
    opacity: 0.7;
    transform: translate(0, 0) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.2);
  }
}
.steps b.pop {
  display: inline-block;
  animation: steps-pop 0.45s ease-out;
}
@keyframes steps-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footprint {
    display: none;
  }
}

/* キャラの詳細(下から出るシート) */
.char-sheet {
  text-align: center;
}
.char-sheet h2 {
  margin: 4px 0 2px;
  font-size: 22px;
}
.char-sheet .btn {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.nowrap {
  white-space: nowrap;
}

/* おうち遊び(ご当地ポーカー。クイズはダブルアップで使う) */
.play-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.play-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  font-size: 15px;
}
.play-btn small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted, #8a8a8a);
}
.quiz-timer {
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 4px;
  background: #efe7da;
}
.quiz-timer i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ef6f62, #f6b25c);
  animation: quiz-timer linear forwards;
  transform-origin: left;
}
.quiz-timer.stop i {
  animation-play-state: paused;
}
@keyframes quiz-timer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.quiz-q {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.quiz-choices {
  display: grid;
  gap: 8px;
}
.quiz-choices .btn {
  width: 100%;
  text-align: left;
}
.quiz-choices .btn.right {
  background: #d9f2df;
  border-color: #5cb87a;
  color: #2d7a47;
  opacity: 1;
}
.quiz-choices .btn.wrong {
  background: #fde0dc;
  border-color: #ef6f62;
  color: #b2443a;
  opacity: 1;
}
.quiz-result {
  margin-top: 12px;
  text-align: center;
}
.quiz-result .btn {
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* ---- ご当地ポーカー(ページ・緑のテーブル)---- */
.page {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s ease;
}
.page.open {
  transform: translateX(0);
}
.page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: #0f3d2a;
  color: #fff;
}
.page-head h2 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  text-align: center;
}
.page-back {
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
}
.poker-page .help-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.felt {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 14px 10px calc(20px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 35%, #2f8f5b 0%, #1d6b42 55%, #134d30 100%);
  box-shadow: inset 0 0 0 6px #6b3f1f, inset 0 0 0 9px #c99a4a, inset 0 0 40px rgba(0, 0, 0, 0.35);
  color: #fff;
}
.dealer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.deck-pile {
  position: relative;
  width: 54px;
  height: 96px;
}
.deck-pile i {
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg, #c8463a 0 5px, #e05a4c 5px 10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.deck-pile i:nth-child(2) { transform: translate(2px, -2px); }
.deck-pile i:nth-child(3) { transform: translate(4px, -4px); }
.dealer-say {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.dealer-say .say-face {
  width: 46px;
  height: 46px;
}
/* ディーラーのまっち君のふきだし */
.dealer-msg {
  position: relative;
  min-height: 1.4em;
  margin: 0;
  padding: 7px 12px;
  border-radius: 14px;
  background: #fffdf6;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.dealer-msg::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left: 0;
  border-right-color: #fffdf6;
}
.poker-hand {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 520px;
}
.pslot {
  aspect-ratio: 9 / 16;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 9px;
}
.pcard {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #3b3226;
  perspective: 600px;
  transition: transform 0.18s;
}
.pc-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}
.pcard.down .pc-inner {
  transform: rotateY(180deg);
}
.pc-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #fff;
  border-radius: 9px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.pc-front {
  justify-content: space-between;
  padding: 6px 2px 6px;
  background: #fffdf6;
}
.pcard.suit-agri .pc-front { background: linear-gradient(#fff6d6, #fffdf6 60%); }
.pcard.suit-sea .pc-front { background: linear-gradient(#dcefff, #fbfdff 60%); }
.pcard.suit-craft .pc-front { background: linear-gradient(#ffe2d9, #fffaf7 60%); }
.pcard.suit-gift .pc-front { background: linear-gradient(#e2f4d8, #fbfff8 60%); }
.pc-back {
  transform: rotateY(180deg);
  background: repeating-linear-gradient(45deg, #c8463a 0 5px, #e05a4c 5px 10px);
}
.pc-region {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: clamp(11px, 3.4vw, 15px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.pc-region i {
  display: inline-grid;
  place-items: center;
  min-width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: #3b3226;
  color: #fff;
  font-size: 0.8em;
  font-style: normal;
}
.pc-suit {
  font-size: clamp(22px, 7vw, 34px);
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
.pc-sprite {
  width: 78%;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
.pcard:not(.got) .pc-sprite {
  filter: brightness(0) opacity(0.35);
}
.pc-name {
  width: 100%;
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}
.pc-hold {
  position: absolute;
  bottom: -10px;
  left: 50%;
  display: none;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 6px;
  background: #f6c343;
  color: #3b2a00;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.pcard.hold {
  transform: translateY(-10px);
}
.pcard.hold .pc-hold {
  display: block;
}
.pcard.hold .pc-face {
  border-color: #f6c343;
}
/* 役をつくっているカード: 金のふちで光る */
.pcard.winner .pc-front {
  border: 3px solid #ffd54a;
  box-shadow: 0 0 0 2px #fff6c4, 0 0 16px 4px rgba(255, 213, 74, 0.85);
  animation: pc-glow 1.1s ease-in-out infinite alternate;
}
@keyframes pc-glow {
  from { box-shadow: 0 0 0 2px #fff6c4, 0 0 8px 2px rgba(255, 213, 74, 0.6); }
  to { box-shadow: 0 0 0 2px #fff6c4, 0 0 20px 6px rgba(255, 213, 74, 1); }
}
.poker-handname {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  margin-top: 18px;
  text-align: center;
}
.poker-handname .hn {
  padding: 4px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: hn-pop 0.4s cubic-bezier(.2, 1.6, .4, 1);
}
.poker-handname .hn.win {
  background: linear-gradient(#ffe27a, #f2b632);
  color: #4a3000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.poker-handname .hn-none {
  opacity: 0.7;
  font-weight: 700;
}
.poker-handname .hn-pay {
  font-size: 14px;
}
.poker-handname .hn-pay b {
  font-size: 20px;
  color: #ffe27a;
}
@keyframes hn-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.poker-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  margin-top: 8px;
}
.poker-controls .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
  padding-left: 8px;
  padding-right: 8px;
}
.pq-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pq-actions .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
}
.btn.gold {
  background: linear-gradient(#ffe27a, #f2b632);
  border-color: #d99a1e;
  color: #4a3000;
}
.felt-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.85;
}
.poker-quiz {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.poker-quiz[hidden] {
  display: none;
}
.pq-card {
  width: 100%;
  max-width: 420px;
  padding: 16px;
  border-radius: 18px;
  background: #fffdf8;
  color: var(--ink, #3b3226);
}
.poker-table {
  width: 100%;
  margin: 8px 0;
  border-collapse: collapse;
  font-size: 12px;
}
.poker-table th,
.poker-table td {
  padding: 5px 3px;
  border-bottom: 1px solid #efe7da;
  text-align: left;
  vertical-align: top;
}
.poker-table th {
  white-space: nowrap;
}
.poker-table td:last-child {
  white-space: nowrap;
  text-align: right;
}
.pslot:has(.pcard) {
  border-color: transparent;
}

/* オールマイティ(★5 のキャラ): 金色のカード */
.pcard.wild .pc-front {
  background: linear-gradient(160deg, #fff4c2, #ffe07a 45%, #fff8dc) !important;
  border-color: #e0a800;
}
.pc-wild {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  padding: 1px 4px;
  border-radius: 5px;
  background: #b8860b;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-12deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.poker-handname .tag {
  margin: 0 2px;
}

/* メインキャラ: 歩数の横で、左上の目標めがけて一生けんめい歩く(design/matchkun_go_left.gif と同じ動き) */
.mascot-lane {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-width: 56px;
  min-height: 52px;
}
.mascot-walker {
  position: absolute;
  bottom: -2px;
  left: calc(50% - 26px);
  width: 52px;
  height: 52px;
  pointer-events: auto;
}
.mascot-walker .bob {
  transform-origin: 50% 100%;
  animation: mascot-bob 0.25s ease-in-out infinite alternate;
}
.mascot-walker .foot-b,
.mascot-walker .foot-f {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.mascot-walker .foot-f {
  animation: mascot-step-near 0.5s linear infinite;
}
.mascot-walker .foot-b {
  animation: mascot-step-far 0.5s linear infinite;
  animation-delay: -0.25s;
}
.mascot-walker .arm-f {
  transform-box: fill-box;
  transform-origin: 20% 80%;
  animation: mascot-arm-f 0.5s ease-in-out infinite;
}
.mascot-walker .arm-b {
  transform-box: fill-box;
  transform-origin: 80% 80%;
  animation: mascot-arm-b 0.5s ease-in-out infinite;
}
.mascot-walker .sweat {
  animation: mascot-sweat 0.5s ease-in infinite;
}
.mascot-walker.hop {
  animation: mascot-hop 0.5s ease-out;
}
@keyframes mascot-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}
/* svg は左右反転しているので、ローカルの +x・-y = 画面の左上。
   手前(右)の足は大きく体の前でふみ出し、奥(左)の足は体のうしろで小さく動く */
@keyframes mascot-step-near {
  0% { transform: translate(12px, -8px) rotate(-28deg) scale(0.95); }
  55% { transform: translate(-10px, 7px) rotate(-28deg) scale(1.08); }
  75% { transform: translate(0, -12px) rotate(-40deg) scale(1.02); }
  100% { transform: translate(12px, -8px) rotate(-28deg) scale(0.95); }
}
@keyframes mascot-step-far {
  0% { transform: translate(6px, -4px) rotate(-28deg); }
  55% { transform: translate(-5px, 3px) rotate(-28deg); }
  75% { transform: translate(0, -6px) rotate(-38deg); }
  100% { transform: translate(6px, -4px) rotate(-28deg); }
}
@keyframes mascot-arm-f {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(12deg); }
}
@keyframes mascot-arm-b {
  0%, 100% { transform: rotate(14deg); }
  50% { transform: rotate(-14deg); }
}
@keyframes mascot-sweat {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(-6px, 6px); opacity: 0; }
}
@keyframes mascot-hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-walker,
  .mascot-walker * {
    animation: none !important;
  }
}

/* SVG のキャラ(なめらかに縮小する) */
canvas.svgc,
canvas.sprite.svgc {
  image-rendering: auto;
}

/* カードの裏・山札: まん中にメインキャラ */
.pc-back,
.deck-pile i {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-mascot {
  display: block;
  width: 86%;
  aspect-ratio: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.pc-mascot svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* まっち君のせりふ(顔アイコン + ふきだし) */
.say {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  text-align: left;
}
.say-face {
  flex: none;
  display: block;
  width: 52px;
  height: 52px;
}
.say-face svg {
  display: block;
  width: 100%;
  height: 100%;
}
.say-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--good-2);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.say-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 16px;
  border: 7px solid transparent;
  border-left: 0;
  border-right-color: var(--good-2);
}
.say.small .say-face {
  width: 40px;
  height: 40px;
}
.say.small .say-bubble {
  margin-top: 2px;
  padding: 7px 10px;
  font-size: 13px;
}
.say.small .say-bubble::before {
  top: 12px;
}
#feed li:has(> .say) {
  list-style: none;
}

/* 寄付する素材の一覧: どこの町の素材かを小さく(地方を限定したお題のときに分かるように) */
.donate-list .material-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.material-town {
  margin-left: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* まっち君におやつ(チップ) */
.tip-badge {
  margin-left: 2px;
  font-size: 0.9em;
}
.btn.tip-offer {
  margin-top: 6px;
  background: #fff4dc;
  color: #a8641c;
}
.tip-gauge {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card-2);
}
.tip-gauge p {
  margin: 0 0 6px;
  font-weight: 700;
}
.tip-gauge small {
  font-weight: 500;
  color: var(--muted);
}
.tip-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}
.tip-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8c840, #f08a5d);
  transition: width 0.8s ease;
}
.tip-gauge .hint {
  margin: 6px 0 0;
  font-weight: 500;
}
.tip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.tip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px;
  border: 0;
  border-radius: 16px;
  background: #fff8ec;
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
}
.tip-card:active {
  transform: scale(0.97);
}
.tip-emoji {
  font-size: 34px;
  line-height: 1.1;
}
.tip-price {
  margin-top: 2px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.tip-thanks {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 30, 20, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.tip-thanks.show {
  opacity: 1;
}
.tip-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.tip-rain i {
  position: absolute;
  top: -40px;
  font-size: 28px;
  font-style: normal;
  animation: tip-fall 2.4s ease-in infinite;
}
@keyframes tip-fall {
  to { transform: translateY(110vh) rotate(200deg); }
}
.tip-thanks-card {
  position: relative;
  width: min(320px, calc(100% - 32px));
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tip-thanks.show .tip-thanks-card {
  transform: scale(1);
}
.tip-thanks-face {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  animation: tip-munch 0.5s ease-in-out infinite alternate;
}
.tip-thanks-face svg {
  width: 100%;
  height: 100%;
}
.tip-thanks-food {
  position: absolute;
  right: 8px;
  top: 34px;
  font-size: 36px;
}
@keyframes tip-munch {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(-4px) scaleY(0.96); }
}
.tip-thanks-title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .tip-rain,
  .tip-thanks-face {
    animation: none !important;
  }
  .tip-rain i {
    display: none;
  }
}

/* 開拓ランキング: 全国・地方・都道府県のタブ */
.rank-scope {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 10px;
  background: var(--card-2);
  border-radius: 999px;
}
.rank-scope button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 999px;
  cursor: pointer;
}
.rank-scope button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(80, 60, 40, 0.12);
}
.rank-key {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
}
.rank-scope.rank-sub {
  margin-top: 0;
  padding: 3px;
}
.rank-scope.rank-sub button {
  padding: 6px 4px;
  font-size: 14px;
}
.rank-chips {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
}
.rank-chips button {
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.rank-chips button.on {
  border-color: var(--accent);
  background: var(--accent-2);
  color: var(--ink);
}
.rank-day {
  display: block;
  text-align: right;
  font-size: 11px;
}
.town-row {
  cursor: pointer;
}
.town-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.town-mine {
  color: var(--good);
  font-weight: 700;
}
.hikyo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hikyo-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.hikyo-list li > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hikyo-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* みんクラの素材リスト: もっと見る・お題と違う素材の見出し */
.donate-list .mat-more {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.donate-list .mat-more.mat-off-head {
  margin-top: 12px;
  border-style: solid;
  background: var(--card-2);
  color: var(--muted);
}

/* ヘルプのカード(1 行の要約 + 「くわしく」で開く) */
.hcards {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.hcard {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid #efe7da;
}
.hc-ico {
  flex: none;
  width: 34px;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}
.hc-main {
  min-width: 0;
  flex: 1;
}
.hc-main b,
.poker-role .pr-head b {
  font-size: 14.5px;
}
.hcard p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.hcard details {
  margin-top: 4px;
}
.hcard summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.hcard details ul {
  margin: 4px 0 0;
  padding-left: 1.2em;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ポーカーの役の見本(実際のカードと同じ見た目の小さなカード) */
.poker-role {
  display: block;
}
.pr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.pr-pay {
  font-size: 12px;
  font-weight: 700;
  color: #b5651d;
}
.mini-cards {
  display: flex;
  gap: 4px;
  margin: 6px 0 2px;
}
.mini-card {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 7;
  border-radius: 6px;
  border: 1.5px solid #d9cfbf;
  background: #fffdf6;
  opacity: 0.45;
}
.mini-card.suit-agri { background: linear-gradient(#fff6d6, #fffdf6 70%); }
.mini-card.suit-sea { background: linear-gradient(#dcefff, #fbfdff 70%); }
.mini-card.suit-craft { background: linear-gradient(#ffe3d6, #fffaf6 70%); }
.mini-card.suit-gift { background: linear-gradient(#f0e2ff, #fcf9ff 70%); }
.mini-card.hit {
  opacity: 1;
  border-color: #e0a100;
  box-shadow: 0 0 0 2px rgba(224, 161, 0, 0.35);
}
.mini-card.wild {
  border-color: #e0a100;
  background: linear-gradient(#ffe69a, #fff7d8 70%);
}
.mini-card i {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}
.mini-card b {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}
.mini-card em {
  position: absolute;
  bottom: 1px;
  font-style: normal;
  font-size: 8px;
  color: #b5651d;
}

/* 動画を見てもう 1 回(リワード広告) */
.btn.ad-again {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 8px;
  background: var(--card);
  color: var(--ink);
  border: 2px dashed var(--accent);
}
.btn.ad-again small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* ---- ひとこと(地図と建造物の吹き出し)---- */
.map-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-bubble {
  position: absolute;
  transform: translate(-50%, calc(-100% - 6px));
  pointer-events: auto;
  border: 2px solid #3d3a40;
  background: #fff;
  border-radius: 12px;
  padding: 1px 6px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.map-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #3d3a40;
}
.map-bubble.mine {
  border-color: var(--accent);
}
.map-bubble i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
  color: var(--accent);
}
.monument-wrap {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.craft-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.craft-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 2px solid #3d3a40;
  background: #fff;
  border-radius: 12px;
  padding: 1px 6px;
  font-size: 15px;
  cursor: pointer;
  animation: bubble-float 3s ease-in-out infinite;
}
.craft-bubble.mine {
  border-color: var(--accent);
}
@keyframes bubble-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .craft-bubble { animation: none; }
}
.craft-bubbles-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
}
.btn.note-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 8px;
  background: #fff8e8;
  color: var(--ink);
  border: 2px solid var(--gold);
}
.btn.note-offer small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.note-bubble {
  display: inline-block;
  position: relative;
  background: #fff;
  border: 2px solid #3d3a40;
  border-radius: 14px;
  padding: 4px 10px;
  font-weight: 700;
}
.note-bubble.big {
  font-size: 17px;
  padding: 8px 14px;
}
.note-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0 12px;
}
.note-preview small {
  color: var(--muted);
}
.note-phrases {
  display: grid;
  gap: 6px;
}
.note-choice {
  text-align: left;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.note-choice.on,
.note-stamp.on {
  border-color: var(--accent);
  background: var(--accent-2);
}
.note-stamps {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.note-stamp {
  flex: 1;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 6px 0;
  font-size: 22px;
  cursor: pointer;
}
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.note-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.note-row small {
  color: var(--muted);
  font-size: 12px;
}
.note-del {
  border: 0;
  background: none;
  color: var(--bad);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.note-call {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--card-2);
}
.note-call > b {
  font-size: 13px;
  color: var(--muted);
}
.note-call-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.note-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 5px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.note-chip small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.note-chip.on {
  border-color: var(--accent);
  background: var(--accent-2);
}
/* 吹き出しをタップすると、その場でふくらんで中身を見せる */
.map-bubble.open,
.craft-bubble.open {
  z-index: 5;
  width: max-content;
  max-width: 180px;
  padding: 6px 10px;
  border-radius: 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  animation: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.map-bubble.open::after {
  left: calc(50% + var(--tail, 0px));
}
.map-bubble,
.craft-bubble {
  user-select: none;
  -webkit-user-select: none;
}
.nb-text {
  display: block;
  font-weight: 700;
  white-space: normal;
}
.nb-meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}
.note-err {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--bad);
  font-size: 13px;
  font-weight: 700;
}
.btn.arming {
  opacity: 0.45;
}
/* hidden の指定が display: flex に負けないように(券があるときの「動画を見て引く」、送ったあとの「建物にひとこと」) */
.btn.ad-again[hidden],
.btn.note-offer[hidden] {
  display: none;
}
/* 地図の吹き出しは細いふちに(2px だと地図の上で重たく見える) */
.map-bubble {
  border-width: 1px;
  border-color: rgba(61, 58, 64, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.map-bubble::after {
  border-top-color: rgba(61, 58, 64, 0.55);
}
.map-bubble.mine {
  border-color: var(--accent);
}
