/* ==========================================================================
   りあんす  style.css
   夜の仮面舞踏会。深い夜色の広間に、金の縁取り・ワインレッド・孔雀の青緑。
   ========================================================================== */
:root {
  --night: #140F24;       /* 夜の広間 */
  --night-2: #1E1636;
  --panel: #271D45;       /* カード */
  --panel-2: #312556;
  --line: #4A3B7A;
  --cream: #F6EEDB;       /* 文字（象牙色） */
  --muted: #B6AAD0;
  --gold: #D9B25F;        /* 金 */
  --gold-l: #F1D48E;
  --gold-d: #9C7A34;
  --wine: #A3274C;        /* ワインレッド */
  --wine-d: #74193A;
  --rose: #F07A98;
  --teal: #2FA59C;        /* 孔雀の青緑 */
  --teal-d: #1D756F;
  --clown: #FF9A4D;       /* ピエロ */

  --radius-l: 20px;
  --radius-m: 14px;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  --deco: 'Kaisei Decol', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --latin: 'Cinzel Decorative', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(163, 39, 76, .45) 0, transparent 55%),
    radial-gradient(ellipse at 110% 40%, rgba(47, 165, 156, .18) 0, transparent 45%),
    radial-gradient(ellipse at -10% 80%, rgba(217, 178, 95, .12) 0, transparent 45%),
    var(--night);
  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;
}
[hidden] { display: none !important; }
a { color: var(--gold-l); }

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

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 18px calc(24px + 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(--night); background: var(--gold);
  padding: 2px 12px; border-radius: 999px;
}
.topbar__logo { font-family: var(--deco); font-size: 20px; color: var(--gold-l); }

/* ---------- カード（金の縁取り） ---------- */
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .55), 0 6px 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; }
.card__lead b { color: var(--gold-l); }
.card__label { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.card--out { background: linear-gradient(180deg, #4A1830, #3A1226); text-align: center; }

/* ---------- トップ ---------- */
.hero { text-align: center; padding: 26px 0 10px; }
.hero__lead { margin: 0; font-weight: 700; color: var(--muted); letter-spacing: .12em; }
.hero__title {
  margin: 6px 0 0; line-height: 1.1;
  font-family: var(--deco); font-size: 64px; color: var(--gold-l);
  text-shadow: 0 0 18px rgba(217, 178, 95, .45), 0 3px 0 var(--wine-d);
}
.hero__sub { margin: 4px 0 0; font-family: var(--latin); font-size: 18px; color: var(--gold); letter-spacing: .08em; }
.hero__masks { margin: 8px 0 0; font-size: 72px; line-height: 1.1; filter: drop-shadow(0 0 14px rgba(163, 39, 76, .7)); }

.howto { margin-top: 28px; padding: 20px 22px 18px; }
.howto__title { margin: 0 0 4px; font-size: 17px; text-align: center; letter-spacing: .2em; font-family: var(--deco); color: var(--gold-l); }
.howto__steps { margin: 0; padding-left: 1.3em; }
.howto__steps li { margin: 10px 0; color: var(--muted); }
.howto__steps li::marker { color: var(--gold); font-weight: 900; }
.howto__steps b { display: block; color: var(--cream); }
.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(--night); box-shadow: 0 4px 0 var(--gold-d), 0 0 18px rgba(217, 178, 95, .25);
}
.btn--primary:active { box-shadow: 0 2px 0 var(--gold-d); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.btn--text {
  width: fit-content; margin: 8px auto 0; padding: 8px 12px;
  background: none; color: var(--muted); font-size: 14px; font-weight: 700;
}
.btn--line { background: #06C755; color: #fff; box-shadow: 0 4px 0 #04A247; }
.btn--x { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #555, 0 4px 0 #000; }
.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, #C23A60, 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;
}

/* ---------- 入力 ---------- */
.screen__title { font-size: 20px; margin: 10px 0 14px; font-family: var(--deco); 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(--muted); }
.input {
  width: 100%; font: inherit; font-size: 18px;
  padding: 12px 16px; border-radius: var(--radius-m);
  border: 2px solid var(--line); background: var(--night-2); color: var(--cream);
}
.input::placeholder { color: #7D6FA3; }
.input:focus { outline: none; border-color: var(--gold); }
.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: 1px; overflow: hidden;
  font-size: 34px; line-height: 1;
  border-radius: 16px; border: 2px solid var(--line);
  background: var(--panel); cursor: pointer;
}
.avatar-opt.is-on { border-color: var(--gold); background: var(--panel-2); box-shadow: 0 0 14px rgba(217, 178, 95, .35); }
.avatar-opt img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }

/* アイコンの大きさ */
.av { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; }
.av img { display: block; width: 100%; height: 100%; object-fit: contain; }
.av--s { width: 26px; height: 26px; font-size: 20px; }
.av--m { width: 36px; height: 36px; font-size: 28px; }
.av--l { width: 56px; height: 56px; font-size: 44px; }

/* ---------- 待合室 ---------- */
.codebox {
  background: var(--panel); border-radius: var(--radius-l); text-align: center; padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .55);
}
.codebox__label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.codebox__code { font-size: 44px; font-weight: 900; letter-spacing: .25em; line-height: 1.2; color: var(--gold-l); }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.member {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border-radius: var(--radius-m); padding: 10px 14px;
}
.member__name { font-weight: 700; flex: 1; }
.member__badge { font-size: 12px; font-weight: 700; background: var(--gold); color: var(--night); padding: 2px 8px; border-radius: 999px; }
.member__you { font-size: 12px; font-weight: 700; color: var(--teal); }
.hint { font-size: 14px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.hint--left { text-align: left; margin: 0 0 8px; font-size: 13px; }
.mode-badge {
  margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-m);
  background: var(--panel); text-align: center; font-size: 13px; font-weight: 700; color: var(--muted);
}
.mode-badge a { color: var(--gold-l); font-weight: 900; }
.mode-badge.is-spicy { background: var(--wine-d); color: #FFD3DF; }

/* ---------- お題 ---------- */
.round-no { font-family: var(--deco); font-size: 18px; text-align: center; margin: 4px 0 0; color: var(--gold); }
.parent-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 6px auto 0; width: fit-content; padding: 4px 14px 4px 8px;
  background: rgba(217, 178, 95, .16); box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .5);
  border-radius: 999px; font-weight: 900; font-size: 14px;
}
.parent-chip small { font-weight: 700; color: var(--gold); }
.question { font-size: 22px; line-height: 1.5; text-align: center; margin: 8px 0 12px; font-weight: 900; }
.question em { font-style: normal; color: var(--gold-l); border-bottom: 2px solid var(--wine); }
.rule { font-size: 13px; text-align: center; margin: 0 0 14px; padding: 12px 18px; }
.rule b { color: var(--gold-l); }
.progress { text-align: center; font-weight: 900; font-size: 15px; margin: 10px 0 0; color: var(--gold-l); }
.truth-text { margin: 4px 0 0; font-size: 22px; font-weight: 900; text-align: center; color: var(--gold-l); }
.sub-title { font-size: 16px; margin: 22px 0 8px; font-family: var(--deco); color: var(--gold-l); }
.sub-title__note { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 700; }

/* 書いた人の状況 */
.status-list { list-style: none; margin: 18px 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(--panel); border-radius: 999px; padding: 3px 10px 3px 4px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.status.is-done { color: #6FE0D2; }
.status.is-out { color: var(--rose); }
.status.is-parent { background: rgba(217, 178, 95, .18); color: var(--gold-l); }

/* ---------- 親の判定 ---------- */
.judge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.judge {
  background: var(--panel); border-radius: var(--radius-m); padding: 10px 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.judge__text { font-weight: 900; font-size: 17px; }
.judge__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-btn {
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 900;
  background: var(--panel-2); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line);
}
.chip-btn--out { background: var(--wine); color: #fff; box-shadow: none; }
.chip-btn--go { background: var(--gold); color: var(--night); box-shadow: none; }
.judge.is-out { background: rgba(0, 0, 0, .2); box-shadow: none; }
.judge.is-out .judge__text { text-decoration: line-through; color: var(--muted); }
.judge.is-merge-src { box-shadow: inset 0 0 0 2px var(--gold); }
.judge__children { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.judge__child { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.judge__tag { font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; background: var(--wine); color: #fff; }
.merge-hint { margin: 10px 0 0; text-align: center; font-weight: 900; color: var(--gold-l); }

.pierrot-list { display: grid; gap: 8px; }
.pierrot {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; border-radius: var(--radius-m); padding: 10px 14px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 16px; text-align: left;
  background: var(--panel); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line);
}
.pierrot.is-on { background: #3E2A2A; box-shadow: inset 0 0 0 2px var(--clown), 0 0 14px rgba(255, 154, 77, .25); }
.pierrot__mark { font-size: 22px; }

/* ---------- 子 ---------- */
.out-word { margin: 0; font-family: var(--deco); font-size: 30px; color: var(--rose); }

/* ---------- 選択肢（仮面のカード） ---------- */
.options { display: grid; gap: 10px; }
.opt {
  position: relative; display: block; width: 100%;
  border: 0; border-radius: var(--radius-l); padding: 14px 16px 14px 54px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--cream); text-align: left;
  font: inherit; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px rgba(0, 0, 0, .3);
  -webkit-tap-highlight-color: transparent;
}
.opt::before {
  content: '🎭'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 26px; line-height: 1;
}
.opt__text { display: block; font-weight: 900; font-size: 18px; line-height: 1.45; }
.opt__meta { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.opt.is-selected { box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(217, 178, 95, .35); }
.opt.is-selected .opt__meta { color: var(--gold-l); }
.opt.is-mine { cursor: default; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.opt.is-mine .opt__text { color: var(--muted); }
div.opt { cursor: default; }

/* 仮面がはずれたあと */
.opt.is-truth {
  background: linear-gradient(180deg, #5A4520, #3C2E17);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 22px rgba(217, 178, 95, .45);
}
.opt.is-truth::before { content: '👑'; }
.opt.is-truth .opt__text { color: var(--gold-l); }
.opt.is-pierrot { background: linear-gradient(180deg, #4A2E22, #3A2219); box-shadow: inset 0 0 0 2px var(--clown); }
.opt.is-pierrot::before { content: '🤡'; }
.opt.is-lie::before { content: none; }
.opt.is-lie { padding-left: 16px; }
.opt__who { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.opt__kind { font-size: 12px; font-weight: 900; padding: 1px 10px; border-radius: 999px; background: var(--teal-d); color: #fff; }
.opt.is-truth .opt__kind { background: var(--gold); color: var(--night); }
.opt.is-pierrot .opt__kind { background: var(--clown); color: var(--night); }
.opt__voters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.voter {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0, 0, 0, .3); border-radius: 999px; padding: 2px 8px 2px 3px;
  font-size: 12px; font-weight: 700;
  animation: drop .3s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.opt.is-unmask { animation: unmask .5s ease-out; }
@keyframes unmask {
  0% { transform: rotateY(90deg); }
  100% { transform: rotateY(0); }
}

/* ---------- 結果 ---------- */
.summary {
  margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-m);
  background: var(--panel); text-align: center; font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .55);
}
.summary__truth { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.summary__word { display: block; font-family: var(--deco); font-size: 28px; color: var(--gold-l); line-height: 1.3; }
.summary.is-all { background: var(--wine-d); }
.summary.is-all .summary__word { color: #FFD3DF; }
.extra { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-m); background: rgba(163, 39, 76, .3); font-size: 14px; font-weight: 700; }
.extra b { color: var(--rose); }
.deltas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.delta { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 8px 12px; }
.delta__name { flex: 1; font-weight: 700; }
.delta__role { font-size: 11px; font-weight: 900; color: var(--gold); margin-left: 4px; }
.delta__pt { font-weight: 900; }
.delta__pt.is-plus { color: #6FE0D2; }
.delta__pt.is-minus { color: var(--rose); }
.delta__total { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ---------- 最終結果・点数 ---------- */
.winner { text-align: center; margin: 4px 0 14px; }
.winner__crown { font-size: 44px; line-height: 1; filter: drop-shadow(0 0 12px rgba(217, 178, 95, .6)); }
.winner__name { font-family: var(--deco); font-size: 30px; color: var(--gold-l); }
.winner__pt { font-weight: 900; color: var(--gold); }
.ranks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.rank { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 8px 12px; }
.rank__no { font-weight: 900; width: 1.5em; text-align: center; color: var(--gold); }
.rank__name { flex: 1; font-weight: 700; }
.rank__pt { font-weight: 900; color: var(--gold-l); }

.dialog {
  border: 0; border-radius: var(--radius-l); padding: 20px;
  width: min(92vw, 400px); color: var(--cream); font-family: var(--font);
  max-height: 92vh; overflow-y: auto;
  background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .55);
}
.dialog::backdrop { background: rgba(5, 3, 12, .7); }
.dialog__title { margin: 0; font-size: 19px; text-align: center; font-family: var(--deco); color: var(--gold-l); }

.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(10, 6, 20, .78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.overlay__word {
  font-family: var(--deco); line-height: 1.15; margin: 0;
  font-size: clamp(52px, 17vw, 92px); color: var(--gold-l);
  text-shadow: 0 0 24px rgba(217, 178, 95, .5);
  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: 16px 0 0; font-weight: 900; font-size: 18px; color: var(--night);
  background: var(--cream); padding: 6px 18px; border-radius: 999px;
}
.overlay--truth { background: radial-gradient(circle, rgba(90, 69, 32, .9), rgba(10, 6, 20, .88)); }
.overlay--pierrot .overlay__word { color: var(--clown); text-shadow: 0 0 24px rgba(255, 154, 77, .5); }
.overlay--lie .overlay__word { color: #7FE3D8; text-shadow: 0 0 24px rgba(47, 165, 156, .6); }
.overlay--all { background: radial-gradient(circle, rgba(116, 25, 58, .92), rgba(10, 6, 20, .9)); }
.overlay--all .overlay__word { color: #FFD3DF; text-shadow: 0 0 24px rgba(240, 122, 152, .6); }

/* ---------- プレミアム ---------- */
.premium-banner {
  display: block; width: 100%; margin-top: 14px; padding: 12px 16px;
  border: 1px dashed var(--gold); border-radius: 999px;
  background: rgba(217, 178, 95, .1); color: var(--cream);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.premium-banner b { color: var(--gold-l); }
.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(--gold); }
.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: var(--panel); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.premium__list b { display: block; font-size: 15px; color: var(--cream); }
.premium__price { margin: 14px 0 0; text-align: center; font-size: 30px; font-weight: 900; color: var(--gold-l); }
.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: rgba(163, 39, 76, .35); color: #FFD3DF; 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(--cream); color: var(--night); font-weight: 700; font-size: 14px; text-align: center;
}
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 36px; }
.foot a { color: var(--gold); font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.foot__links a { color: var(--muted); font-weight: 500; }
.foot__credit { margin: 8px 0 0; }

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

/* ---------- ネタバレ退場：バン！ ---------- */
.overlay--ban { background: rgba(120, 10, 40, .9); animation: banFlash .5s ease-out; }
.overlay--ban .overlay__word {
  color: #fff; font-size: clamp(44px, 14vw, 76px);
  text-shadow: 0 0 20px rgba(255, 60, 100, .9), 0 4px 0 #5A0A20;
}
.overlay--ban .overlay__word.is-in { animation: ban .55s cubic-bezier(.2, 1.6, .4, 1); }
.overlay--ban .overlay__sub { background: #fff; color: #8A0F32; }
@keyframes ban {
  0%   { transform: scale(3) rotate(-10deg); opacity: 0; }
  55%  { transform: scale(.92) rotate(3deg); opacity: 1; }
  70%  { transform: translateX(-8px) rotate(-2deg); }
  85%  { transform: translateX(8px) rotate(2deg); }
  100% { transform: none; }
}
@keyframes banFlash { 0% { background: rgba(255, 255, 255, .95); } }

/* 遊び方の色 */
.w-name { font-style: normal; color: var(--gold-l); }
.howto__steps b.w-plus { display: inline; color: #6FE0D2; }
.howto__steps b.w-minus { display: inline; color: var(--rose); }
.hint b { color: var(--rose); }

/* ---------- 招待状 ---------- */
.invite {
  position: relative; text-align: center; padding: 18px 16px 16px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .12)),
    linear-gradient(135deg, #3A2350, #22173C 60%, #2A1840);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 5px var(--night-2), inset 0 0 0 6px rgba(217, 178, 95, .6), 0 10px 24px rgba(0, 0, 0, .45);
}
.invite::before, .invite::after {
  content: '❦'; position: absolute; top: 10px; color: var(--gold); font-size: 16px; opacity: .8;
}
.invite::before { left: 16px; }
.invite::after { right: 16px; transform: scaleX(-1); }
.invite__en { margin: 0; font-family: var(--latin); font-size: 14px; color: var(--gold); letter-spacing: .2em; }
.invite__title { margin: 0 0 8px; font-family: var(--deco); font-size: 20px; color: var(--gold-l); }
.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(--gold-l); text-shadow: 0 0 14px rgba(217, 178, 95, .35);
}
.invite__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
#final-teaser { margin-top: 18px; }

/* ---------- 画像 ---------- */
.topbar__logo { display: block; height: 34px; width: auto; }
.hero { padding-top: 10px; }
.hero__title { margin: 4px 0 0; text-shadow: none; }
.hero__logo { display: block; width: min(86%, 360px); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.hero__img { display: block; width: 100%; height: auto; margin: 6px 0 0; }

/* 仮面・ピエロ・王冠（絵文字のかわりに画像） */
.opt::before {
  content: ''; width: 34px; height: 34px; left: 12px;
  background: url(../img/rians-mask.webp) center / contain no-repeat;
}
.opt.is-truth::before { content: ''; background-image: url(../img/rians-crown.webp?v=2); }
.opt.is-pierrot::before { content: ''; background-image: url(../img/rians-pierrot.webp?v=2); width: 38px; height: 38px; }
.opt { padding-left: 58px; }
.opt.is-lie { padding-left: 16px; }
.pierrot__mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.winner__crown { display: block; width: 120px; height: auto; margin: 0 auto -4px; filter: drop-shadow(0 0 14px rgba(217, 178, 95, .5)); }
.overlay__img { width: min(40vw, 170px); height: auto; margin-bottom: 8px; animation: word .5s cubic-bezier(.2, 1.5, .4, 1); }

/* ---------- 発表の小さな札 ---------- */
.opt { overflow: visible; }
.pop {
  position: absolute; right: 10px; top: -12px; z-index: 3;
  padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 900; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
  animation: pop .45s cubic-bezier(.2, 1.7, .4, 1);
}
.pop--lie { background: var(--teal); color: #fff; }
.pop--pierrot { background: var(--clown); color: var(--night); }
.pop--truth { background: var(--gold); color: var(--night); }
@keyframes pop { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } }
.share-preview { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 12px; }
