/* ==========================================================================
   クロティア  style.css  v2
   ロゴと絵に合わせた「ジャングルの奥の遺跡」。
   深い緑の森に木もれ日、古い地図のような羊皮紙のカード、木わくと金。
   ========================================================================== */
:root {
  --jungle: #0E3424;      /* 森の奥（背景） */
  --jungle-2: #17503A;
  --jungle-3: #226B4B;
  --leaf: #3FAE63;        /* 葉っぱ */
  --leaf-d: #1F7A43;
  --parch: #FBF2D9;       /* 羊皮紙のカード */
  --parch-2: #F1E1B8;
  --wood: #8A5A2B;        /* 木わく */
  --wood-d: #5E3B19;
  --ink: #2E2616;         /* カードの中の文字 */
  --muted: #7A6A4C;       /* カードの中のうすい文字 */
  --cream: #FFF6DF;       /* 森の上の文字 */
  --cream-2: #CFE3C8;     /* 森の上のうすい文字 */
  --gold: #F2B705;
  --gold-l: #FFD84A;
  --gold-d: #B88600;
  --tear: #2AA8E0;        /* ホンモノ（涙の青） */
  --tear-d: #1B7FB0;
  --coral: #EE5D4A;       /* ニセモノ・マイナス */
  --coral-d: #B93A2A;
  --river: #1E8C86;       /* 川（シェア） */
  --river-d: #146660;
  --wine: #B8335A;        /* 大人モード・プレミアム */
  --wine-d: #86213F;

  --radius-l: 20px;
  --radius-m: 14px;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  --deco: 'Dela Gothic One', 'Hiragino Sans', 'Meiryo', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: #0A281B; }
body {
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(255, 228, 140, .28) 0, transparent 70%),
    radial-gradient(ellipse 50% 60% at 110% 30%, rgba(63, 174, 99, .25) 0, transparent 60%),
    radial-gradient(ellipse 50% 60% at -10% 70%, rgba(30, 140, 134, .22) 0, transparent 60%),
    linear-gradient(180deg, var(--jungle-2) 0, var(--jungle) 55%, #0A281B 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
/* 画面の下のほうに、しげみ */
body::before {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 80px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70px 44px at 6% 100%, #0B2A1C 60%, transparent 62%),
    radial-gradient(ellipse 90px 52px at 26% 106%, #103826 60%, transparent 62%),
    radial-gradient(ellipse 80px 48px at 50% 103%, #0B2A1C 60%, transparent 62%),
    radial-gradient(ellipse 96px 56px at 74% 106%, #103826 60%, transparent 62%),
    radial-gradient(ellipse 70px 44px at 95% 100%, #0B2A1C 60%, transparent 62%);
}
[hidden] { display: none !important; }
a { color: var(--gold-l); }

/* 文字が枠からはみ出さないように */
.question, .member__name, .shown__text, .truth-text, .rank__name, .overlay__sub, .delta__name, .choose__text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 18px calc(40px + env(safe-area-inset-bottom));
}

/* ---------- 上の帯 ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; }
.topbar__brand {
  font-weight: 900; font-size: 14px; text-decoration: none;
  color: var(--jungle); background: var(--gold);
  padding: 2px 12px; border-radius: 999px;
}
.topbar__logo { font-family: var(--deco); font-size: 20px; color: var(--gold-l); letter-spacing: .04em; }
.watch-badge {
  margin-left: auto; font-size: 12px; font-weight: 900; color: #fff; background: var(--coral);
  padding: 2px 10px; border-radius: 999px;
}

/* ---------- カード（羊皮紙と木わく） ---------- */
.card, .shown, .lead-box, .member, .asker, .choose, .delta, .rank, .extra, .summary, .mode-badge,
.status, .dialog, .invite, .teaser, .premium__list li {
  color: var(--ink);
}
.card {
  background: linear-gradient(180deg, var(--parch), var(--parch-2));
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 2px var(--wood), inset 0 0 0 5px var(--parch), inset 0 0 0 6px rgba(138, 90, 43, .35), 0 8px 18px rgba(0, 0, 0, .35);
}
.card.pad { padding: 16px 18px; margin-top: 12px; }
.card__lead { margin: 0 0 10px; font-weight: 700; text-align: center; color: var(--cream); }
.card .card__lead { color: var(--ink); }
.card__lead b { color: var(--gold-l); }
.card .card__lead b { color: var(--leaf-d); }
.card__label { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }

/* ---------- トップ ---------- */
.hero { text-align: center; padding: 4px 0 0; }
.hero__title { margin: 0; line-height: 1.05; position: relative; z-index: 2; }
.hero__logo {
  display: block; width: min(64%, 270px); height: auto; margin: 0 auto -26px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45));
}
/* ロゴの画像がないときの文字 */
.hero__title:not(:has(img)) {
  font-family: var(--deco); font-weight: 400; font-size: clamp(44px, 14vw, 60px); color: var(--gold-l);
  text-shadow: 3px 3px 0 var(--wood-d); margin-bottom: 6px;
}
.hero__sub {
  display: block; margin-top: 6px; font-family: var(--font); font-weight: 900;
  font-size: 14px; letter-spacing: .3em; color: var(--cream-2); text-shadow: none;
}
.hero__art { position: relative; height: 170px; margin: 6px auto 0; max-width: 360px; }
.hero__art .croc-svg { position: absolute; left: 0; bottom: 0; width: 62%; height: auto; }
.hero__art .chest-svg { position: absolute; right: 2%; bottom: 4px; width: 36%; height: auto; }
.hero__art.is-image { height: auto; max-width: none; margin: 0; }
.hero__img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 0 0 3px var(--wood), 0 0 0 6px rgba(242, 183, 5, .45), 0 12px 24px rgba(0, 0, 0, .45);
}

.howto { margin-top: 26px; padding: 20px 22px 18px; }
.howto__title { margin: 0 0 4px; font-size: 18px; text-align: center; letter-spacing: .2em; font-family: var(--deco); font-weight: 400; color: var(--wood-d); }
.howto__steps { margin: 0; padding-left: 1.3em; }
.howto__steps li { margin: 10px 0; color: var(--muted); }
.howto__steps li::marker { color: var(--gold-d); font-weight: 900; }
.howto__steps b { display: block; color: var(--ink); }
.howto__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- ボタン ---------- */
.btn {
  display: block; width: 100%; margin-top: 12px;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 900; font-size: 17px;
  padding: 15px 20px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s;
}
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 3px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.is-busy { opacity: .6; }
.btn--primary {
  background: linear-gradient(180deg, var(--gold-l), var(--gold));
  color: var(--ink); box-shadow: 0 4px 0 var(--gold-d), 0 0 18px rgba(242, 183, 5, .25);
}
.btn--primary:active { box-shadow: 0 2px 0 var(--gold-d); }
.btn--leaf { background: linear-gradient(180deg, #52C176, var(--leaf-d)); color: #fff; box-shadow: 0 4px 0 #145A30; }
.btn--river { background: linear-gradient(180deg, #2BA8A0, var(--river)); color: #fff; box-shadow: 0 4px 0 var(--river-d); }
.btn--ghost { background: rgba(255, 246, 223, .08); color: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.card .btn--ghost, .dialog .btn--ghost { background: #fff; color: var(--wood-d); box-shadow: inset 0 0 0 2px var(--wood); }
.btn--text {
  width: fit-content; margin: 8px auto 0; padding: 8px 12px;
  background: none; color: var(--cream-2); font-size: 14px; font-weight: 700;
}
.card .btn--text, .dialog .btn--text { color: var(--muted); }
.btn--line { background: #06C755; color: #fff; box-shadow: 0 4px 0 #04A247; }
.btn--x { background: #000; color: #fff; box-shadow: 0 4px 0 #444; }
.btn--2line { line-height: 1.35; }
.btn--2line small { display: block; font-size: 12px; font-weight: 700; opacity: .85; margin-top: 2px; }
.btn--spicy { background: linear-gradient(180deg, #D04A72, var(--wine)); color: #fff; box-shadow: 0 4px 0 var(--wine-d); }
.btn--spicy:active { box-shadow: 0 2px 0 var(--wine-d); }
.subnav { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.subnav .btn--text { margin: 0; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-row .btn { font-size: 15px; padding: 13px 8px; }
.link-btn {
  background: none; border: 0; padding: 4px 6px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--gold-l); text-decoration: underline; cursor: pointer;
}
.link-btn--center { display: block; margin: 14px auto 0; }

/* ---------- 入力 ---------- */
.screen__title { font-size: 20px; margin: 10px 0 14px; font-family: var(--deco); font-weight: 400; color: var(--gold-l); }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--cream-2); }
.input {
  width: 100%; font: inherit; font-size: 18px;
  padding: 12px 16px; border-radius: var(--radius-m);
  border: 2px solid var(--wood); background: var(--parch); color: var(--ink);
}
.input::placeholder { color: #B5A57F; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 183, 5, .3); }
.input--code { font-size: 30px; font-weight: 900; letter-spacing: .4em; text-align: center; }
.avatars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.avatar-opt {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; aspect-ratio: 1; padding: 5px; overflow: hidden;
  font-size: 34px; line-height: 1;
  border-radius: 50%; border: 3px solid transparent;
  background: rgba(255, 246, 223, .08); cursor: pointer;
}
.avatar-opt.is-on { border-color: var(--gold); background: rgba(242, 183, 5, .18); box-shadow: 0 0 14px rgba(242, 183, 5, .5); }
.avatar-opt img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* アイコンの大きさ（丸い枠） */
.av { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; border-radius: 50%; }
.av img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 2px var(--wood); }
.av--s { width: 28px; height: 28px; font-size: 20px; }
.av--m { width: 38px; height: 38px; font-size: 28px; }
.av--l { width: 60px; height: 60px; font-size: 44px; }

/* ---------- 待合室 ---------- */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.member {
  display: flex; align-items: center; gap: 10px;
  background: var(--parch); border-radius: var(--radius-m); padding: 8px 14px;
  box-shadow: inset 0 0 0 2px var(--parch-2);
}
.member__name { font-weight: 700; flex: 1; }
.member__badge { font-size: 12px; font-weight: 700; background: var(--gold); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.member__you { font-size: 12px; font-weight: 900; color: var(--leaf-d); }
.hint { font-size: 14px; color: var(--cream-2); text-align: center; margin: 12px 0 0; }
.card .hint, .dialog .hint { color: var(--muted); }
.hint--left { text-align: left; margin: 0 0 14px; font-size: 14px; }
.mode-badge {
  margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-m);
  background: var(--parch); text-align: center; font-size: 13px; font-weight: 700; color: var(--muted);
}
.mode-badge a { color: var(--wine); font-weight: 900; }
.mode-badge.is-spicy { background: var(--wine); color: #fff; }
.mode-badge.is-family { background: #DDF1D5; color: var(--leaf-d); }

/* ---------- 招待状（古い地図） ---------- */
.invite {
  position: relative; text-align: center; padding: 18px 16px 16px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(138, 90, 43, .06) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, #FFF3D2, #EBD49C);
  box-shadow: inset 0 0 0 3px var(--wood), inset 0 0 0 7px #FFF3D2, inset 0 0 0 8px var(--gold-d), 0 10px 22px rgba(0, 0, 0, .4);
}
.invite::before, .invite::after {
  content: ''; position: absolute; top: 12px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-l), var(--gold-d));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.invite::before { left: 14px; }
.invite::after { right: 14px; }
.invite__en { margin: 0; font-weight: 900; font-size: 13px; color: var(--gold-d); letter-spacing: .3em; }
.invite__title { margin: 0 0 8px; font-family: var(--deco); font-size: 22px; color: var(--wood-d); }
.invite__label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.invite__code { display: block; font-size: 44px; font-weight: 900; letter-spacing: .25em; line-height: 1.2; color: var(--ink); }
.invite__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- お題 ---------- */
.round-no { font-family: var(--deco); font-size: 15px; text-align: center; margin: 4px 0 0; color: var(--gold-l); }
.parent-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 6px auto 0; width: fit-content; padding: 4px 14px 4px 6px;
  background: var(--parch); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold);
  border-radius: 999px; font-weight: 900; font-size: 14px;
}
.parent-chip small { font-weight: 900; color: var(--leaf-d); }
.question { font-size: 22px; line-height: 1.5; text-align: center; margin: 8px 0 12px; font-weight: 900; color: var(--cream); }
.question--s { font-size: 18px; margin-bottom: 8px; }
.question em { font-style: normal; color: var(--gold-l); border-bottom: 3px solid var(--gold-d); }
.progress { text-align: center; font-weight: 900; font-size: 15px; margin: 12px 0 0; color: var(--gold-l); }
.truth-text { margin: 4px 0 0; font-size: 22px; font-weight: 900; text-align: center; color: var(--tear-d); }
.sub-title { font-size: 16px; margin: 20px 0 8px; font-family: var(--deco); font-weight: 400; color: var(--gold-l); }
.lead-box {
  margin: 12px 0 0; padding: 12px 16px; border-radius: var(--radius-m);
  background: var(--parch); text-align: center; font-weight: 700; font-size: 15px;
}
.lead-box b { color: var(--leaf-d); }
.rule-note { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: #FFB4A8; text-align: center; }

/* 親が出した答え（みんなが見る大きな札） */
.shown {
  position: relative; margin: 6px 0 0; padding: 16px 18px 18px; text-align: center;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #FFFBEF, var(--parch-2));
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--parch), inset 0 0 0 7px var(--wood), 0 10px 22px rgba(0, 0, 0, .4);
}
.shown__label { margin: 0; font-size: 13px; font-weight: 900; color: var(--leaf-d); }
.shown__text { display: block; margin-top: 2px; font-size: 28px; font-weight: 900; line-height: 1.35; color: var(--ink); }

/* 親にだけ見える札 */
.secret {
  margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-m);
  background: #3B2412; color: var(--cream); font-size: 14px; font-weight: 700; text-align: center;
  box-shadow: inset 0 0 0 2px var(--wood);
}
.secret b { color: var(--gold-l); }
.secret small { display: block; margin-top: 2px; font-size: 12px; color: #E7D3A8; font-weight: 700; }

/* ---------- 親：出す答えを選ぶ ---------- */
.choose-list { display: grid; gap: 10px; }
.choose {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; border-radius: var(--radius-m); padding: 10px 14px; cursor: pointer; text-align: left;
  font: inherit; background: var(--parch);
  box-shadow: inset 0 0 0 2px var(--parch-2), 0 4px 10px rgba(0, 0, 0, .3);
  -webkit-tap-highlight-color: transparent;
}
.choose:active { transform: translateY(1px); }
.choose__art { width: 56px; flex: none; }
.choose__art .chest-svg, .choose__art img { display: block; width: 100%; height: auto; }
.choose__body { flex: 1; min-width: 0; }
.choose__tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 10px; border-radius: 999px; color: #fff; }
.choose__text { display: block; font-size: 19px; font-weight: 900; line-height: 1.4; margin-top: 2px; }
.choose__pt { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.choose--truth { box-shadow: inset 0 0 0 3px var(--tear), 0 4px 10px rgba(0, 0, 0, .3); }
.choose--truth .choose__tag { background: var(--tear-d); }
.choose--bronze .choose__tag { background: #A8652F; }
.choose--silver .choose__tag { background: #6C7A88; }
.choose--gold .choose__tag { background: var(--gold-d); }

/* 待っているカード */
.wait-card { text-align: center; }
.wait-card__icon { margin: 0 auto; width: 120px; animation: bob 1.6s ease-in-out infinite; }
.wait-card__icon img { display: block; width: 100%; height: auto; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- 投票 ---------- */
.vote-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.vote-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 0; border-radius: var(--radius-l); padding: 10px 8px 14px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 20px; color: #fff;
  -webkit-tap-highlight-color: transparent; transition: transform .08s;
}
.vote-btn small { font-size: 12px; font-weight: 700; opacity: .9; }
.vote-btn__img { display: block; width: 92px; height: auto; margin-bottom: 2px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.vote-btn:active { transform: translateY(2px); }
.vote-btn--true { background: linear-gradient(180deg, #4CC2F0, var(--tear)); box-shadow: 0 5px 0 var(--tear-d); }
.vote-btn--fake { background: linear-gradient(180deg, #F58A7B, var(--coral)); box-shadow: 0 5px 0 var(--coral-d); }
.vote-btn.is-on { outline: 4px solid var(--gold-l); outline-offset: 3px; }
.vote-btn.is-off { opacity: .45; }

.status-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.status {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--parch); border-radius: 999px; padding: 3px 10px 3px 3px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.status.is-done { color: var(--leaf-d); box-shadow: inset 0 0 0 2px var(--leaf); }

/* ---------- 結果発表 ---------- */
.chest-stage { display: flex; justify-content: center; margin: 14px 0 4px; }
.chest-stage .chest-svg { width: 150px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.chest-stage.is-shake .chest-svg { animation: shake .5s ease-in-out infinite; }
.chest-stage.is-open .chest-svg { animation: popOpen .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg) translateY(-2px); }
  75% { transform: rotate(6deg) translateY(-2px); }
}
@keyframes popOpen { from { transform: scale(.6); } }
.chest-glow { animation: glow 1.2s ease-in-out infinite; transform-origin: 60px 40px; }
@keyframes glow { 50% { opacity: .6; transform: scale(1.08); } }

.camps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.camp { border-radius: var(--radius-m); padding: 8px 10px 10px; min-height: 64px; }
.camp--true { background: #E1F4FC; box-shadow: inset 0 0 0 2px #8FD2F0; }
.camp--fake { background: #FDE7E3; box-shadow: inset 0 0 0 2px #F3AA9E; }
.camp__title { margin: 0 0 4px; font-size: 13px; font-weight: 900; text-align: center; }
.camp--true .camp__title { color: var(--tear-d); }
.camp--fake .camp__title { color: var(--coral-d); }
.camp__list { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.camp__list .hint { color: var(--muted); }
.camp.is-win { box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 3px rgba(242, 183, 5, .4); }
.voter {
  display: inline-flex; align-items: center; gap: 3px; color: var(--ink);
  background: #fff; border-radius: 999px; padding: 2px 8px 2px 2px;
  font-size: 12px; font-weight: 700;
  animation: drop .3s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }

.summary {
  margin: 0 0 4px; padding: 14px 16px; border-radius: var(--radius-l);
  text-align: center; font-weight: 900; background: linear-gradient(180deg, #FFFBEF, var(--parch-2));
  box-shadow: inset 0 0 0 3px var(--wood);
}
.summary .chest-svg { display: block; width: 110px; height: auto; margin: 0 auto 2px; }
.summary__word { display: block; font-family: var(--deco); font-size: 30px; line-height: 1.3; }
.summary.is-true { box-shadow: inset 0 0 0 3px var(--tear), 0 0 0 3px rgba(42, 168, 224, .3); }
.summary.is-true .summary__word { color: var(--tear-d); }
.summary.is-fake { box-shadow: inset 0 0 0 3px var(--coral), 0 0 0 3px rgba(238, 93, 74, .3); }
.summary.is-fake .summary__word { color: var(--coral-d); }
.summary__level { display: block; font-size: 14px; color: var(--muted); }
.summary__row { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.summary__row .truth-text { font-size: 20px; }
.summary__shown { display: block; font-size: 20px; font-weight: 900; color: var(--ink); }
.extra { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-m); background: var(--parch); font-size: 14px; font-weight: 700; text-align: center; }
.extra b { color: var(--leaf-d); }
.deltas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.delta { display: flex; align-items: center; gap: 10px; background: var(--parch); border-radius: 12px; padding: 6px 12px; }
.delta__name { flex: 1; font-weight: 700; }
.delta__role { font-size: 11px; font-weight: 900; color: var(--leaf-d); margin-left: 4px; }
.delta__pt { font-weight: 900; }
.delta__pt.is-plus { color: var(--leaf-d); }
.delta__pt.is-minus { color: var(--coral-d); }
.delta__total { font-size: 12px; color: var(--muted); font-weight: 700; }

/* 金貨のマーク（絵文字のかわり） */
.coin {
  display: inline-block; width: 1em; height: 1em; margin-right: 4px; vertical-align: -.12em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF1A8 0, var(--gold-l) 35%, var(--gold) 70%, var(--gold-d) 100%);
  box-shadow: inset 0 0 0 2px rgba(184, 134, 0, .6);
}

/* ---------- 最終結果・金貨 ---------- */
.winner { text-align: center; margin: 4px 0 14px; }
.winner__crown { width: 130px; margin: 0 auto; }
.winner__crown .chest-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.winner__name { font-family: var(--deco); font-size: 28px; color: var(--gold-l); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.winner__pt { font-weight: 900; color: var(--gold-l); font-size: 18px; }
.ranks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.rank { display: flex; align-items: center; gap: 10px; background: var(--parch); border-radius: 12px; padding: 6px 12px; }
.rank__no { font-weight: 900; width: 1.5em; text-align: center; color: var(--gold-d); }
.rank__name { flex: 1; font-weight: 700; }
.rank__pt { font-weight: 900; color: var(--leaf-d); }

.dialog {
  border: 0; border-radius: var(--radius-l); padding: 20px;
  width: min(92vw, 400px); font-family: var(--font);
  max-height: 92vh; overflow-y: auto;
  background: var(--parch); box-shadow: inset 0 0 0 3px var(--wood);
}
.dialog::backdrop { background: rgba(5, 20, 12, .7); }
.dialog__title { margin: 0; font-size: 19px; text-align: center; font-family: var(--deco); font-weight: 400; color: var(--wood-d); }

.host-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 14px; }

/* ---------- 演出の重ね板 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; pointer-events: none;
  background: rgba(8, 30, 20, .88);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.overlay__art { width: min(56vw, 230px); }
.overlay__art svg, .overlay__art img { display: block; width: 100%; height: auto; }
.overlay__art:empty { display: none; }
.overlay__word {
  font-family: var(--deco); line-height: 1.15; margin: 6px 0 0;
  font-size: clamp(50px, 16vw, 88px); color: var(--gold-l);
  text-shadow: 0 4px 0 var(--wood-d), 0 0 24px rgba(242, 183, 5, .4);
  opacity: 0;
}
.overlay__word.is-in { opacity: 1; animation: word .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes word { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } }
.overlay__sub {
  margin: 14px 0 0; font-weight: 900; font-size: 17px; color: var(--ink);
  background: var(--parch); padding: 6px 18px; border-radius: 999px; max-width: 92vw;
}
.overlay--true { background: radial-gradient(circle, rgba(20, 90, 120, .94), rgba(8, 30, 40, .94)); }
.overlay--true .overlay__word { color: #8FE0FF; text-shadow: 0 4px 0 #0B4A66, 0 0 24px rgba(42, 168, 224, .6); }
.overlay--fake { background: radial-gradient(circle, rgba(130, 40, 28, .94), rgba(40, 12, 8, .94)); }
.overlay--fake .overlay__word { color: #FFB4A8; text-shadow: 0 4px 0 #6A1D12, 0 0 24px rgba(238, 93, 74, .6); }
.overlay--gold { background: radial-gradient(circle, rgba(140, 100, 10, .95), rgba(40, 28, 4, .95)); }
.overlay--gold .overlay__word { color: var(--gold-l); }
.tear { animation: tear 1.4s ease-in infinite; }
@keyframes tear { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ---------- プレミアム ---------- */
.premium-banner {
  display: block; width: 100%; margin-top: 14px; padding: 12px 16px;
  border: 2px dashed #E58AA6; border-radius: 999px;
  background: rgba(184, 51, 90, .15); color: var(--cream);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.premium-banner b { color: #FFB3C7; }
.teaser { margin: 18px 0 0; padding: 16px 20px 14px; text-align: center; }
.teaser__label { margin: 4px 0 0; font-size: 13px; font-weight: 900; color: var(--wine); }
.teaser__q { margin: 6px 0 0; font-size: 18px; font-weight: 900; line-height: 1.5; overflow-wrap: anywhere; }
.teaser__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.teaser .btn { margin-top: 10px; padding: 10px; font-size: 15px; }
.premium__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.premium__list li { background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.premium__list b { display: block; font-size: 15px; color: var(--ink); }
.premium__price { margin: 14px 0 0; text-align: center; font-size: 30px; font-weight: 900; color: var(--wine); }
.premium__price small { font-size: 13px; color: var(--muted); font-weight: 700; }
.premium__warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FDE7E3; color: var(--coral-d); font-size: 13px; font-weight: 700; }
.premium__owned { margin: 14px 0 0; text-align: center; font-weight: 900; line-height: 1.8; }

/* ---------- そのほか ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 80;
  max-width: 90vw; padding: 10px 18px; border-radius: 999px;
  background: var(--parch); color: var(--ink); font-weight: 700; font-size: 14px; text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
.foot { text-align: center; font-size: 12px; color: var(--cream-2); margin-top: 36px; }
.foot a { color: var(--gold-l); font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.foot__links a { color: var(--cream-2); font-weight: 500; }
.foot__credit { margin: 8px 0 0; }
.share-preview { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 12px; }

/* 遊び方の色 */
.w-name { font-style: normal; color: var(--leaf-d); }
.howto__steps b.w-plus, .howto__steps b.w-minus, .howto__steps b.w-inline, .hint b.w-inline { display: inline; }
.howto__steps b.w-plus { color: var(--leaf-d); }
.howto__steps b.w-minus { color: var(--coral-d); }
.howto__steps b.w-inline { color: var(--leaf-d); }
.hint b.w-inline { color: var(--gold-l); }

/* ---------- 観戦画面（配信・テレビ）は少し大きく ---------- */
body.is-watch .app { max-width: 720px; }
body.is-watch .question { font-size: 26px; }
body.is-watch .shown__text { font-size: 40px; }
body.is-watch [data-player-only] { display: none !important; }

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

/* 金貨の絵があるとき */
body.has-coin-img .coin { background: url(../img/crotear-coin.webp) center / contain no-repeat; box-shadow: none; }
img.chest-svg { object-fit: contain; }
.chest-stage img.chest-svg { width: 170px; }
.choose__art img.chest-svg { width: 56px; }

/* 小さい見出しは、太すぎないように丸ゴシックで */
.screen__title, .sub-title, .round-no { font-family: var(--font); font-weight: 900; letter-spacing: .04em; }
.sub-title { font-size: 15px; }
.howto__lead { margin: 4px 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.8; }
.howto__lead b { color: var(--ink); }
