/* ==========================================================================
   PHOTO WARS  style.css  v1
   ロゴと絵に合わせた「宇宙」。深い紺と紫の宇宙に、ネオンの青・ピンク・オレンジ。
   カードは白で読みやすく、写真がいちばん映えるように。
   ========================================================================== */
:root {
  --space: #0C0A2A;       /* 宇宙（背景） */
  --space-2: #17124A;
  --space-3: #251B6E;
  --cyan: #38E1FF;        /* ネオン */
  --cyan-d: #1497C7;
  --pink: #FF4FC3;
  --pink-d: #C21E8E;
  --orange: #FF9E3D;
  --orange-d: #C9650E;
  --gold: #FFD36A;
  --panel: #FFFFFF;       /* カード */
  --panel-2: #F1EEFF;
  --line: #DAD4FF;
  --ink: #1D1846;         /* カードの中の文字 */
  --muted: #6B6592;       /* カードの中のうすい文字 */
  --light: #F4F2FF;       /* 宇宙の上の文字 */
  --light-2: #B9B3E6;     /* 宇宙の上のうすい文字 */
  --plus: #10A56B;
  --wolf: #8B5CF6;        /* 人狼モード */
  --wolf-d: #5B31C4;
  --adult: #FF4F8B;       /* 大人のお題・プレミアム */
  --adult-d: #C2195A;

  --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: var(--space); }
body {
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(56, 225, 255, .20) 0, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 25%, rgba(255, 79, 195, .20) 0, transparent 65%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(139, 92, 246, .22) 0, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 158, 61, .16) 0, transparent 65%),
    linear-gradient(180deg, var(--space-2) 0, var(--space) 60%, #07061C 100%);
  background-attachment: fixed;
  color: var(--light);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
/* 星（小さな点をたくさん並べる） */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff 60%, transparent 70%),
    radial-gradient(1px 1px at 90px 140px, rgba(255, 255, 255, .8) 60%, transparent 70%),
    radial-gradient(1.6px 1.6px at 160px 60px, #CFF6FF 60%, transparent 70%),
    radial-gradient(1px 1px at 230px 190px, rgba(255, 255, 255, .7) 60%, transparent 70%),
    radial-gradient(1.3px 1.3px at 60px 220px, #FFE0F4 60%, transparent 70%),
    radial-gradient(1px 1px at 280px 100px, rgba(255, 255, 255, .6) 60%, transparent 70%);
  background-size: 300px 260px;
  animation: twinkle 6s ease-in-out infinite alternate;
  opacity: .9;
}
@keyframes twinkle { to { opacity: .45; } }
[hidden] { display: none !important; }
a { color: var(--cyan); }

/* 文字が枠からはみ出さないように */
.question, .member__name, .rank__name, .overlay__sub, .res-row__name, .q-mini__text, .teaser__q {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px 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(--space); background: var(--gold);
  padding: 2px 12px; border-radius: 999px;
}
.topbar__logo {
  font-family: var(--deco); font-size: 18px; letter-spacing: .06em;
  background: linear-gradient(90deg, var(--cyan), #A78BFA, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.watch-badge {
  margin-left: auto; font-size: 12px; font-weight: 900; color: #fff; background: var(--pink);
  padding: 2px 10px; border-radius: 999px;
}

/* ---------- カード ---------- */
.card, .lead-box, .member, .rank, .dialog, .ticket, .teaser, .premium__list li, .q-card,
.pick-box, .photo-card, .res-row, .host-options, .winner-card, .wolf-card {
  color: var(--ink);
}
.card {
  background: var(--panel);
  border-radius: var(--radius-l);
  box-shadow: 0 0 0 2px rgba(56, 225, 255, .5), 0 0 22px rgba(56, 225, 255, .18), 0 10px 24px rgba(0, 0, 0, .35);
}
.card__lead { margin: 0 0 10px; font-weight: 900; text-align: center; color: var(--light); font-size: 17px; }
.pick-box .card__lead, .card .card__lead { color: var(--ink); }

/* ---------- トップ ---------- */
.hero { text-align: center; }
.hero__title { margin: 0; line-height: 1; }
.hero__logo {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(56, 225, 255, .55), 0 0 26px rgba(139, 92, 246, .45), 0 12px 26px rgba(0, 0, 0, .45);
}
.hero__catch {
  margin: 12px 0 2px; font-family: var(--deco); font-size: 19px; letter-spacing: .04em; color: #fff;
  text-shadow: 0 0 12px rgba(56, 225, 255, .6);
}

.howto { margin-top: 26px; padding: 0 0 18px; overflow: hidden; }
.howto__img { display: block; width: 100%; height: auto; }
.howto__title { margin: 14px 0 2px; font-size: 18px; text-align: center; letter-spacing: .2em; font-family: var(--deco); font-weight: 400; color: var(--space-3); }
.howto__lead { margin: 4px 18px 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.8; }
.howto__lead b { color: var(--ink); }
.howto__steps { margin: 0 22px 0 18px; padding-left: 1.3em; }
.howto__steps li { margin: 10px 0; color: var(--muted); font-size: 14px; }
.howto__steps li::marker { color: var(--pink); font-weight: 900; }
.howto__steps b { display: block; color: var(--ink); font-size: 15px; }
.howto__note { margin: 10px 18px 0; font-size: 13px; color: var(--muted); text-align: center; }
.howto__premium { margin: 14px 16px 0; padding: 10px 14px; border-radius: var(--radius-m); background: #FFF0F6; }
.howto__premium p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.howto__premium b { color: var(--adult-d); margin-right: 6px; }
.howto__premium-title { font-weight: 900; color: var(--adult-d) !important; 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(--cyan); outline-offset: 3px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.is-busy { opacity: .6; }
.btn--primary {
  background: linear-gradient(180deg, #FFE08A, var(--orange));
  color: #2A1600; box-shadow: 0 4px 0 var(--orange-d), 0 0 20px rgba(255, 158, 61, .35);
}
.btn--primary:active { box-shadow: 0 2px 0 var(--orange-d); }
.btn--big { font-size: 20px; padding: 18px 20px; }
.btn--ghost { background: rgba(56, 225, 255, .08); color: var(--light); box-shadow: inset 0 0 0 2px var(--cyan); }
.card .btn--ghost, .dialog .btn--ghost, .pick-box .btn--ghost { background: #fff; color: var(--space-3); box-shadow: inset 0 0 0 2px var(--space-3); }
.btn--text {
  width: fit-content; margin: 8px auto 0; padding: 8px 12px;
  background: none; color: var(--light-2); font-size: 14px; font-weight: 700;
}
.card .btn--text, .dialog .btn--text, .pick-box .btn--text { color: var(--muted); }
.btn--small {
  width: auto; margin: 0; padding: 10px 18px; font-size: 14px;
  background: rgba(255, 255, 255, .1); color: var(--light); box-shadow: inset 0 0 0 2px rgba(185, 179, 230, .6);
}
.btn--share {
  width: auto; margin: 0; padding: 10px 16px; font-size: 14px;
  background: linear-gradient(180deg, #5DE9FF, var(--cyan-d)); color: #04213A; box-shadow: 0 3px 0 #0B6F93;
}
.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--adult { background: linear-gradient(180deg, #FF77A6, var(--adult)); color: #fff; box-shadow: 0 4px 0 var(--adult-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(--cyan); text-decoration: underline; cursor: pointer;
}
.link-btn--center { display: block; margin: 14px auto 0; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 入力 ---------- */
.screen__title { font-size: 20px; margin: 10px 0 14px; font-weight: 900; letter-spacing: .04em; color: #fff; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--light-2); }
.field__sub { font-size: 12px; color: #FFB0CF; }
.input {
  width: 100%; font: inherit; font-size: 18px;
  padding: 12px 16px; border-radius: var(--radius-m);
  border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.input::placeholder { color: #B3ADD6; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 225, 255, .35); }
.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: 4px; overflow: hidden;
  border-radius: 50%; border: 3px solid transparent;
  background: rgba(255, 255, 255, .06); cursor: pointer;
}
.avatar-opt.is-on { border-color: var(--cyan); background: rgba(56, 225, 255, .15); box-shadow: 0 0 16px rgba(56, 225, 255, .6); }
.avatar-opt img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* プレミアムの切りかえ */
.options { display: grid; gap: 8px; }
.option {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 70px 10px 14px; border: 0; border-radius: var(--radius-m);
  font: inherit; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  -webkit-tap-highlight-color: transparent;
}
.option__name { display: block; font-weight: 900; font-size: 16px; }
.option__desc { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.option__switch {
  position: absolute; right: 14px; top: 50%; width: 46px; height: 26px; margin-top: -13px;
  border-radius: 999px; background: #D6D2EE; transition: background .15s;
}
.option__switch::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.option[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--adult); }
.option[aria-pressed="true"] .option__switch { background: var(--adult); }
.option[aria-pressed="true"] .option__switch::after { transform: translateX(20px); }
.option--wolf[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--wolf); }
.option--wolf[aria-pressed="true"] .option__switch { background: var(--wolf); }
.option.is-locked .option__switch { opacity: .5; }
.options--gap { margin-top: 8px; }

/* モードの選択（ふつうモード・大人モード） */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__btn {
  position: relative; display: block; width: 100%; padding: 12px 6px 10px; border: 0; border-radius: var(--radius-m);
  font: inherit; font-weight: 900; font-size: 16px; line-height: 1.35; color: var(--ink); background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line); -webkit-tap-highlight-color: transparent;
}
.seg__btn small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
.seg__btn[aria-checked="true"] { background: #EAFBFF; box-shadow: inset 0 0 0 3px var(--cyan), 0 0 14px rgba(56, 225, 255, .45); }
.seg__btn--adult[aria-checked="true"] { background: #FFF0F6; box-shadow: inset 0 0 0 3px var(--adult), 0 0 14px rgba(255, 79, 139, .45); }
.seg__btn:disabled { opacity: .6; }
.seg__tag {
  position: absolute; top: -9px; right: -2px; padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 900; line-height: 1.6; color: #fff; background: var(--adult);
}

/* アイコンの大きさ（丸い枠） */
.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 rgba(56, 225, 255, .6); }
.av--s { width: 28px; height: 28px; font-size: 20px; }
.av--m { width: 40px; height: 40px; font-size: 28px; }
.av--l { width: 64px; height: 64px; font-size: 44px; }

/* ---------- 待合室 ---------- */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.member {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius-m); padding: 8px 14px;
}
.member__name { font-weight: 700; flex: 1; }
.member__badge { font-size: 12px; font-weight: 700; background: var(--gold); color: #2A1600; padding: 2px 8px; border-radius: 999px; }
.member__you { font-size: 12px; font-weight: 900; color: var(--pink-d); }
.hint { font-size: 14px; color: var(--light-2); text-align: center; margin: 12px 0 0; }
.card .hint, .dialog .hint, .pick-box .hint { color: var(--muted); }
.hint--left { text-align: left; margin: 0 0 14px; font-size: 14px; }
.mode-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 0; }
.mode-badge {
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 900;
  background: rgba(255, 255, 255, .1); color: var(--light); box-shadow: inset 0 0 0 2px rgba(185, 179, 230, .5);
}
.mode-badge a { color: #FFB0CF; }
.mode-badge.is-adult { background: var(--adult); color: #fff; box-shadow: none; }
.mode-badge.is-normal { background: var(--cyan); color: #04213A; box-shadow: none; }
.mode-badge.is-wolf { background: var(--wolf); color: #fff; box-shadow: none; }
.host-options {
  margin: 16px 0 0; padding: 12px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(185, 179, 230, .35);
}
.host-options__title { margin: 0 0 8px; font-size: 13px; font-weight: 900; color: var(--light-2); text-align: center; }

/* ---------- 搭乗券 ---------- */
.ticket {
  position: relative; overflow: hidden; text-align: center; padding: 18px 16px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #FFFFFF, #E9E4FF);
  box-shadow: 0 0 0 2px rgba(56, 225, 255, .6), 0 0 24px rgba(56, 225, 255, .25), 0 10px 22px rgba(0, 0, 0, .4);
}
/* 切り取り線（左右の半円のくぼみつき） */
.ticket__cut { position: relative; margin: 8px -16px 0; border-top: 2px dashed #C9C2F2; }
.ticket__cut::before, .ticket__cut::after {
  content: ''; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--space);
}
.ticket__cut::before { left: -13px; }
.ticket__cut::after { right: -13px; }
.ticket__en { margin: 0; font-weight: 900; font-size: 12px; color: var(--pink-d); letter-spacing: .3em; }
.ticket__title { margin: 0 0 8px; font-family: var(--deco); font-size: 20px; color: var(--space-3); }
.ticket__label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 10px; }
.ticket__code { display: block; font-size: 44px; font-weight: 900; letter-spacing: .25em; line-height: 1.2; color: var(--ink); }
.ticket__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- お題 ---------- */
.round-no { font-weight: 900; font-size: 15px; text-align: center; margin: 4px 0 0; color: var(--cyan); letter-spacing: .08em; }
.q-card {
  position: relative; margin: 8px 0 0; padding: 14px 18px 16px; text-align: center;
  background: #fff; border-radius: var(--radius-l);
  box-shadow: 0 0 0 3px var(--orange), 0 0 22px rgba(255, 158, 61, .35), 0 10px 22px rgba(0, 0, 0, .4);
}
.q-card__label { margin: 0; font-size: 12px; font-weight: 900; color: var(--orange-d); letter-spacing: .2em; }
.question { font-size: 25px; line-height: 1.45; text-align: center; margin: 2px 0 0; font-weight: 900; color: var(--ink); }
.question--s { font-size: 19px; }
.q-card--s { padding: 10px 14px 12px; }
.q-card.is-secret .question { color: var(--muted); font-size: 18px; }
.mode-note { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-m); font-size: 13px; font-weight: 700; text-align: center; }
.mode-note--wolf { background: rgba(139, 92, 246, .22); color: #E4D8FF; box-shadow: inset 0 0 0 2px rgba(139, 92, 246, .6); }
.mode-note--adult { background: rgba(255, 79, 139, .16); color: #FFD0E2; box-shadow: inset 0 0 0 2px rgba(255, 79, 139, .45); }
.progress { text-align: center; font-weight: 900; font-size: 15px; margin: 14px 0 0; color: var(--gold); }
.sub-title { font-size: 15px; margin: 22px 0 8px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.lead-box {
  margin: 12px 0 0; padding: 12px 16px; border-radius: var(--radius-m);
  background: #fff; text-align: center; font-weight: 700; font-size: 14px;
}
.lead-box b { color: var(--pink-d); }

/* ---------- 写真を選ぶ ---------- */
.pick-box { margin-top: 16px; padding: 16px; border-radius: var(--radius-l); background: #fff; text-align: center; }
.pick-box .btn--primary { margin-top: 0; }
.pick-safe { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.preview { margin: 0 auto; border-radius: 14px; overflow: hidden; background: #F1EEFF; }
.preview img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; margin: 0 auto; }
.preview--s { width: 60%; }
.status-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.status {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 3px 10px 3px 3px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.status.is-done { color: var(--plus); box-shadow: inset 0 0 0 2px var(--plus); }
.host-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; }

/* ---------- 投票 ---------- */
.photo-list { display: grid; gap: 16px; margin-top: 14px; }
.photo-card {
  position: relative; background: #fff; border-radius: 18px; padding: 8px 8px 10px;
  box-shadow: 0 0 0 2px rgba(56, 225, 255, .35), 0 10px 22px rgba(0, 0, 0, .35);
}
.photo-card.is-first { box-shadow: 0 0 0 4px var(--gold), 0 0 22px rgba(255, 211, 106, .6); }
.photo-card.is-second { box-shadow: 0 0 0 4px var(--cyan), 0 0 22px rgba(56, 225, 255, .5); }
.photo-card.is-wolfpick .photo-card__img { outline: 4px solid var(--wolf); outline-offset: -4px; }
.photo-card__img {
  display: block; width: 100%; min-height: 160px; border-radius: 12px; overflow: hidden; background: #ECE8FF;
  border: 0; padding: 0; cursor: zoom-in;
}
.photo-card__img img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.photo-card__loading { display: grid; place-items: center; min-height: 200px; color: var(--muted); font-weight: 700; font-size: 13px; }
.photo-card__letter {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--deco); font-size: 22px; color: #fff;
  background: rgba(12, 10, 42, .82); box-shadow: 0 0 0 2px var(--cyan);
}
.photo-card__mine {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff; background: var(--pink);
}
.photo-card__btns { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 8px; margin-top: 8px; }
.pick-btn {
  border: 0; border-radius: 999px; padding: 10px 6px; font: inherit; font-weight: 900; font-size: 15px; cursor: pointer;
  background: #F1EEFF; color: var(--space-3); box-shadow: inset 0 0 0 2px var(--line);
  -webkit-tap-highlight-color: transparent;
}
.pick-btn.is-on[data-kind="first"] { background: var(--gold); color: #2A1600; box-shadow: none; }
.pick-btn.is-on[data-kind="second"] { background: var(--cyan); color: #04213A; box-shadow: none; }
.pick-btn.is-on[data-kind="wolf"] { background: var(--wolf); color: #fff; box-shadow: none; }
.pick-btn:disabled { opacity: .35; cursor: default; }
.photo-card__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-align: center; font-weight: 700; }

.vote-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 10, 42, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 -2px 0 rgba(56, 225, 255, .5), 0 -8px 24px rgba(0, 0, 0, .4);
}
.vote-bar__picks { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; font-weight: 900; }
.vote-chip { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--light-2); }
.vote-chip.is-first { background: var(--gold); color: #2A1600; }
.vote-chip.is-second { background: var(--cyan); color: #04213A; }
.vote-chip.is-wolf { background: var(--wolf); color: #fff; }
.vote-bar__btn { width: auto; margin: 0; padding: 12px 18px; font-size: 16px; flex: none; }
.vote-bar-space { height: 84px; }

/* ---------- 結果 ---------- */
.q-mini { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-m); background: #fff; color: var(--ink); text-align: center; }
.q-mini__label { display: block; font-size: 12px; font-weight: 900; color: var(--orange-d); }
.q-mini__text { display: block; font-size: 19px; font-weight: 900; line-height: 1.45; }
.q-mini.is-wolf { box-shadow: inset 0 0 0 3px var(--wolf); }
.q-mini.is-wolf .q-mini__label { color: var(--wolf-d); }
.q-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-pair .q-mini__text { font-size: 15px; }

.winner-card {
  margin: 14px 0 0; padding: 12px 12px 14px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #FFFBEA, #fff);
  box-shadow: 0 0 0 4px var(--gold), 0 0 32px rgba(255, 211, 106, .55), 0 12px 26px rgba(0, 0, 0, .45);
}
.winner-card__head { display: flex; align-items: center; justify-content: center; gap: 6px; }
.winner-card__trophy { width: 34px; height: auto; }
.winner-card__label { font-family: var(--deco); font-size: 24px; color: var(--orange-d); }
.winner-card__photo { margin-top: 8px; border-radius: 14px; overflow: hidden; background: #F1EEFF; border: 0; padding: 0; display: block; width: 100%; cursor: zoom-in; }
.winner-card__photo img { display: block; width: 100%; height: auto; max-height: 64vh; object-fit: contain; margin: 0 auto; }
.winner-card__who { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-weight: 900; font-size: 20px; }
.winner-card__pt { margin: 2px 0 0; font-weight: 900; color: var(--plus); }
.winner-card--tie .winner-card__label { font-size: 20px; }
.winner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.winner-grid .winner-card__photo { margin-top: 0; }
.winner-grid .winner-card__who { font-size: 15px; margin-top: 4px; }

.wolf-card {
  margin: 16px 0 0; padding: 12px 14px 14px; border-radius: 22px; text-align: center; background: #F4EEFF;
  box-shadow: 0 0 0 3px var(--wolf), 0 0 26px rgba(139, 92, 246, .5), 0 12px 26px rgba(0, 0, 0, .4);
}
.wolf-card__label { margin: 0; font-family: var(--deco); font-size: 20px; color: var(--wolf-d); }
.wolf-card__who { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; font-weight: 900; font-size: 20px; }
.wolf-card__alien { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--wolf); }
.wolf-card__tag { display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 999px; font-weight: 900; color: #fff; }
.wolf-card__tag.is-caught { background: var(--pink-d); }
.wolf-card__tag.is-escape { background: var(--wolf-d); }
.wolf-card__detail { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.wolf-card__detail b { color: var(--ink); }
.wolf-card__note { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 10px; }
.res-row__thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; background: #ECE8FF; border: 0; padding: 0; cursor: zoom-in; }
.res-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.res-row__body { flex: 1; min-width: 0; }
.res-row__name { display: flex; align-items: center; gap: 6px; font-weight: 900; }
.res-row__votes { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.res-row__pt { font-weight: 900; color: var(--plus); text-align: right; white-space: nowrap; }
.res-row__pt small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.res-row.is-top { box-shadow: inset 0 0 0 3px var(--gold); }
.res-row.is-wolf .res-row__thumb { box-shadow: 0 0 0 3px var(--wolf); }
.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; color: #fff; }
.tag--wolf { background: var(--wolf); }
.tag--you { background: var(--pink); }
.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; box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- トータル ---------- */
.ranks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.rank { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 12px; box-shadow: inset 0 0 0 2px var(--panel-2); }
.rank__no { font-weight: 900; width: 1.5em; text-align: center; color: var(--orange-d); }
.rank__name { flex: 1; font-weight: 700; }
.rank__pt { font-weight: 900; color: var(--plus); }
.rank.is-last { box-shadow: inset 0 0 0 2px var(--pink); background: #FFF0F8; }
.rank__last { font-size: 11px; font-weight: 900; color: #fff; background: var(--pink); padding: 1px 8px; border-radius: 999px; }

.dialog {
  border: 0; border-radius: var(--radius-l); padding: 20px;
  width: min(92vw, 420px); font-family: var(--font);
  max-height: 92vh; overflow-y: auto;
  background: #fff; box-shadow: 0 0 0 3px var(--cyan), 0 0 30px rgba(56, 225, 255, .35);
}
.dialog::backdrop { background: rgba(6, 4, 22, .75); }
.dialog__title { margin: 0; font-size: 19px; text-align: center; font-family: var(--deco); font-weight: 400; color: var(--space-3); }

/* 写真を大きく見る */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 3, 16, .94); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { display: block; max-width: 96vw; max-height: 84vh; object-fit: contain; border-radius: 10px; }
.lightbox__caption { margin: 10px 0 0; color: #fff; font-weight: 900; }
.lightbox__close {
  position: fixed; right: 14px; top: calc(12px + env(safe-area-inset-top)); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer;
}

/* ---------- 演出の重ね板 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: radial-gradient(circle, rgba(37, 27, 110, .96), rgba(8, 6, 28, .97));
}
.overlay__art { width: min(78vw, 360px); }
.overlay__art img { display: block; width: 100%; height: auto; border-radius: 16px; max-height: 50vh; object-fit: contain; }
.overlay__art img.is-round { border-radius: 50%; width: 62%; margin: 0 auto; box-shadow: 0 0 0 4px var(--wolf), 0 0 40px rgba(139, 92, 246, .7); }
.overlay__art img.is-photo { box-shadow: 0 0 0 4px var(--gold), 0 0 40px rgba(255, 211, 106, .6); }
.overlay__art:empty { display: none; }
.overlay__word {
  font-family: var(--deco); line-height: 1.15; margin: 10px 0 0;
  font-size: clamp(42px, 13vw, 76px); color: #fff;
  text-shadow: 0 0 18px rgba(56, 225, 255, .8), 0 4px 0 var(--space-3);
  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: #fff; padding: 6px 18px; border-radius: 999px; max-width: 92vw;
}
.overlay__sub:empty { display: none; }
.overlay--gold .overlay__word { color: var(--gold); text-shadow: 0 0 20px rgba(255, 211, 106, .8), 0 4px 0 #7A4A00; }
.overlay--wolf { background: radial-gradient(circle, rgba(91, 49, 196, .96), rgba(14, 6, 36, .97)); }
.overlay--wolf .overlay__word { color: #E4D8FF; text-shadow: 0 0 20px rgba(139, 92, 246, .9), 0 4px 0 #2A1470; }
.overlay__skip {
  position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom));
  border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 900; font-size: 13px;
  background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
}

/* ---------- オープニング（下から上へ流れる文字） ---------- */
.crawl {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(139, 92, 246, .35), transparent 70%),
    #05041A;
}
.crawl::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff 60%, transparent 70%),
    radial-gradient(1px 1px at 120px 90px, rgba(255, 255, 255, .8) 60%, transparent 70%),
    radial-gradient(1.5px 1.5px at 200px 160px, #CFF6FF 60%, transparent 70%);
  background-size: 240px 200px;
}
.crawl__stage { position: absolute; inset: 0; perspective: 360px; perspective-origin: 50% 30%; display: flex; justify-content: center; }
.crawl__text {
  position: absolute; bottom: 0; width: min(88vw, 620px);
  transform-origin: 50% 100%;
  text-align: center; font-weight: 900; line-height: 1.6;
  font-size: clamp(22px, 6.4vw, 40px); color: #DDF7FF;
  text-shadow: 0 0 14px rgba(56, 225, 255, .7);
  animation: crawl 11s linear forwards;
}
.crawl__text p { margin: 0 0 1.2em; }
.crawl__title {
  font-family: var(--deco); font-size: 1.5em; letter-spacing: .08em;
  background: linear-gradient(90deg, var(--cyan), #C4B5FD, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
}
@keyframes crawl {
  0%   { transform: rotateX(24deg) translateY(100%); opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: rotateX(24deg) translateY(-150%); opacity: 0; }
}
.crawl__skip {
  position: absolute; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom));
  border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 900; font-size: 13px;
  background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
}

/* ---------- プレミアム ---------- */
.premium-banner {
  display: block; width: 100%; margin-top: 14px; padding: 12px 16px;
  border: 2px dashed #FF8AB5; border-radius: 999px;
  background: rgba(255, 79, 139, .12); color: var(--light);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.premium-banner b { color: #FFB0CF; }
.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(--adult-d); }
.teaser__q { margin: 6px 0 0; font-size: 18px; font-weight: 900; line-height: 1.5; }
.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-2); 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(--adult-d); }
.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: #FFE8EF; color: var(--adult-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(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 80;
  max-width: 90vw; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-align: center;
  box-shadow: 0 0 0 2px var(--cyan), 0 6px 16px rgba(0, 0, 0, .4);
}
.foot { text-align: center; font-size: 12px; color: var(--light-2); margin-top: 36px; }
.foot a { color: var(--cyan); font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.foot__links a { color: var(--light-2); font-weight: 500; }
.foot__credit { margin: 8px 0 0; }
.share-preview { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 12px; }

/* 遊び方の色 */
.howto__steps b.w-plus, .hint b.w-inline { display: inline; }
.howto__steps b.w-plus { color: var(--plus); }
.hint b.w-inline { color: #FFB0CF; }

/* ---------- 観戦画面（配信・テレビ）は大きく、写真はならべて ---------- */
body.is-watch .app { max-width: 1100px; }
body.is-watch .question { font-size: 32px; }
body.is-watch [data-player-only] { display: none !important; }
body.is-watch .photo-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
body.is-watch .photo-card__img { min-height: 120px; }
body.is-watch .photo-card__img img { max-height: 34vh; }
body.is-watch .result-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
body.is-watch .winner-card { max-width: 760px; margin-left: auto; margin-right: auto; }

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