/* ==========================================================================
   EQUALA イコラ -EQUALIZER SCORE GAME-  style.css  v4
   「晴れた日のサッカースタジアム」。芝の緑に白いライン、
   A チームは赤、B チームは青、イコラ（同点）は金色。
   カードは白で読みやすく。スコアボードだけは黒と光る数字。
   ========================================================================== */
:root {
  --pitch: #2FA850;       /* 芝 */
  --pitch-2: #2A9B4A;
  --pitch-d: #1C7A38;
  --pitch-dd: #115C28;
  --a: #FF5A4E;           /* A チーム（赤） */
  --a-2: #FF8074;
  --a-d: #D23A2F;
  --a-l: #FFE7E4;
  --b: #2F7BFF;           /* B チーム（青） */
  --b-2: #62A0FF;
  --b-d: #1B57C4;
  --b-l: #E3EDFF;
  --gold: #FFC83D;        /* イコラ */
  --gold-d: #D9901A;
  --orange: #FF9A1F;
  --orange-d: #C96A00;
  --red: #E8453C;
  --red-d: #B8261F;
  --panel: #FFFFFF;
  --panel-2: #F1F6F2;
  --line: #D5E6D8;
  --ink: #1F2D24;         /* カードの中の文字 */
  --muted: #5F6F63;
  --light: #FFFFFF;       /* 芝の上の文字 */
  --light-2: #E2F5E4;
  --plus: #13A15B;
  --minus: #D83A32;
  --adult: #FF4F8B;
  --adult-d: #C2195A;
  --led-bg: #0E1216;      /* スコアボード */
  --led: #FFB22E;
  --led-a: #FF7468;
  --led-b: #62A8FF;

  --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;
  --dot: 'DotGothic16', 'Osaka-Mono', 'MS Gothic', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--pitch); }
body {
  background-color: var(--pitch);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 260px),
    repeating-linear-gradient(180deg, var(--pitch) 0 90px, var(--pitch-2) 90px 180px);
  color: var(--light);
  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: #fff; }

/* 文字が枠からはみ出さないように */
.question, .member__name, .rank__name, .overlay__sub, .overlay__word, .pred__name, .q-mini__text, .teaser__q,
.team__name, .sb__name, .recap__q, .talk p, .side__name, .side__who, .chip-a, .chip-b, .write-box__input {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* 日本語を、言葉の切れ目で折り返す（対応しているブラウザだけ）。行の長さもそろえる */
.question, .q-mini__text, .lead-box, .team__name, .recap__q, .talk p, .teaser__q, .overlay__sub, .score-ov__q,
.write-box__tip, .rule-card p, .rule-card__steps li, .howto__steps li, .share-note, .howto__note, .howto__lead {
  word-break: auto-phrase;
  text-wrap: balance;
}

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

.nw { white-space: nowrap; }

/* A・B の色（文章の中） */
.t-a { color: var(--a-d); font-style: normal; }
.t-b { color: var(--b-d); font-style: normal; }
.chip-a, .chip-b {
  display: inline-block; padding: 0 .55em; border-radius: 999px; line-height: 1.6;
  font-weight: 900; font-style: normal; color: #fff;
}
.chip-a { background: var(--a); }
.chip-b { background: var(--b); }

/* ---------- 上の帯 ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 5px 6px; border-radius: 999px;
  background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .14);
}
.topbar__brand {
  font-weight: 900; font-size: 14px; text-decoration: none;
  color: #4A2A00; background: var(--gold);
  padding: 2px 12px; border-radius: 999px;
}
.topbar__logo {
  flex: 1; font-family: var(--deco); font-size: 18px; letter-spacing: .08em; color: var(--pitch-d);
}
.watch-badge {
  font-size: 12px; font-weight: 900; color: #fff; background: var(--red);
  padding: 2px 10px; border-radius: 999px;
}
.sound-btn {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0;
  background: var(--panel-2); color: var(--pitch-d); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sound-btn svg { display: block; width: 20px; height: 20px; }
.sound-btn.is-off { color: #9AA59C; }

/* ---------- カード ---------- */
.card, .lead-box, .member, .rank, .dialog, .ticket, .teaser, .premium__list li, .q-card, .write-box,
.pred, .host-options, .winner-card, .talk, .rule-card, .recap__item, .pay-parent, .side, .q-mini {
  color: var(--ink);
}
.card {
  background: var(--panel);
  border-radius: var(--radius-l);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12), 0 12px 24px rgba(0, 0, 0, .16);
}

/* ---------- トップ ---------- */
.hero { text-align: center; }
.hero__title { margin: 0; line-height: 1; }
.hero__logo {
  display: block; width: min(82%, 360px); height: auto; margin: 4px auto 0;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .14)) drop-shadow(0 10px 16px rgba(0, 0, 0, .22));
}
.hero__catch {
  margin: 14px 0 2px; font-family: var(--deco); font-size: 20px; letter-spacing: .02em; color: #fff;
  text-shadow: 0 3px 0 var(--pitch-dd);
}

.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(--pitch-d); }
.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__lead .t-a, .howto__lead .t-b { font-family: var(--deco); font-size: 16px; }
.howto__example {
  margin: 10px 16px 4px; padding: 10px 12px 8px; border-radius: var(--radius-m); text-align: center;
  background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--line);
}
.howto__example p { margin: 0; }
.howto__example-q { font-weight: 900; font-size: 16px; }
.howto__example-vs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 4px !important; font-size: 15px; }
.howto__vs { font-family: var(--deco); color: var(--muted); font-size: 14px; }
.howto__example-note { font-size: 12px; font-weight: 700; color: var(--muted); }
.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(--a-d); 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; }

.paytable { width: calc(100% - 32px); margin: 12px 16px 0; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.paytable caption { font-weight: 900; font-size: 13px; color: var(--muted); padding-bottom: 2px; }
.paytable th, .paytable td { background: var(--panel-2); padding: 6px 10px; }
.paytable th { text-align: left; border-radius: 10px 0 0 10px; font-weight: 900; color: var(--ink); line-height: 1.35; }
.paytable th small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.paytable td { text-align: right; border-radius: 0 10px 10px 0; font-family: var(--deco); font-size: 18px; color: var(--ink); white-space: nowrap; line-height: 1.3; }
.paytable td small { display: block; font-family: var(--font); font-weight: 900; font-size: 11px; color: var(--muted); }
.paytable tr.is-gold th, .paytable tr.is-gold td { background: #FFF3C9; }
.paytable tr.is-gold td { color: var(--gold-d); font-size: 20px; }
.paytable tr.is-green td { color: var(--plus); }
.paytable tr.is-red th, .paytable tr.is-red td { background: #FFF0EF; }
.paytable tr.is-red td { color: var(--minus); }

/* ---------- ボタン ---------- */
.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 #fff; outline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.is-busy { opacity: .6; }
.btn--primary {
  background: linear-gradient(180deg, #FFE38A, var(--gold) 45%, var(--orange));
  color: #4A2400; box-shadow: 0 5px 0 var(--orange-d), 0 8px 16px rgba(0, 0, 0, .18);
}
.btn--primary:active { box-shadow: 0 2px 0 var(--orange-d); }
.btn--big { font-size: 20px; padding: 18px 20px; }
.btn--ghost { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.card .btn--ghost, .dialog .btn--ghost { background: #fff; color: var(--pitch-d); box-shadow: inset 0 0 0 2px var(--pitch-d); }
.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 { color: var(--muted); }
.btn--share {
  width: auto; margin: 0; padding: 12px 20px; font-size: 15px;
  background: #fff; color: var(--b-d); box-shadow: 0 4px 0 rgba(0, 0, 0, .18), inset 0 0 0 2px var(--b);
}
.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: #fff; text-decoration: underline; cursor: pointer;
}
.card .link-btn, .q-card .link-btn { color: var(--pitch-d); }
.link-btn--center { display: block; margin: 14px auto 0; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- 入力 ---------- */
.screen__title { font-size: 20px; margin: 10px 0 14px; font-weight: 900; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 0 var(--pitch-dd); }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--light-2); }
.input {
  width: 100%; font: inherit; font-size: 18px;
  padding: 12px 16px; border-radius: var(--radius-m);
  border: 2px solid #fff; background: #fff; color: var(--ink);
}
.input::placeholder { color: #A9B8AC; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 61, .5); }
.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: 14px 16px; max-width: 372px; margin: 0 auto; }
.avatar-opt {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; aspect-ratio: 1; padding: 0; overflow: visible;
  border-radius: 50%; border: 3px solid transparent;
  background: rgba(255, 255, 255, .18); cursor: pointer; font-size: 30px;
}
.avatar-opt.is-on { border-color: var(--gold); background: rgba(255, 255, 255, .4); box-shadow: 0 0 0 3px #fff; }
/* 絵のまわりに髪の毛のための余白があるので、1.3倍にして丸い枠を、ボタンの丸いっぱいにする */
.avatar-opt img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.3); pointer-events: none; }

/* 選ぶボタン（モード・周の数） */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg + .seg { margin-top: 10px; }
.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: #FFF8E0; box-shadow: inset 0 0 0 3px var(--gold-d); }
.seg__btn--adult[aria-checked="true"] { background: #FFF0F6; box-shadow: inset 0 0 0 3px var(--adult); }
.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; transform: scale(1.34); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.av__ball { display: block; width: 80%; height: 80%; }
.av--s { width: 32px; height: 32px; font-size: 20px; }
.av--m { width: 46px; height: 46px; font-size: 28px; }
.av--l { width: 76px; height: 76px; font-size: 46px; }

/* ---------- 待合室 ---------- */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.member {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: var(--radius-m); padding: 8px 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .1);
}
.member__name { font-weight: 700; flex: 1; }
.member__badge { font-size: 12px; font-weight: 700; background: var(--gold); color: #4A2400; padding: 2px 8px; border-radius: 999px; }
.member__you { font-size: 12px; font-weight: 900; color: var(--adult-d); }
.hint { font-size: 14px; color: var(--light-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-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, .16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.mode-badge a { color: #FFE3EE; }
.mode-badge.is-adult { background: var(--adult); color: #fff; box-shadow: none; }
.mode-badge.is-normal { background: #fff; color: var(--pitch-d); box-shadow: none; }
.host-options {
  margin: 16px 0 0; padding: 12px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.host-options__title { margin: 0 0 8px; font-size: 13px; font-weight: 900; color: #fff; text-align: center; }
.rule-card { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-l); background: #EAF7EC; text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.rule-card p { margin: 2px 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.rule-card b { color: var(--ink); }
.rule-card__title { font-size: 16px !important; font-weight: 900 !important; color: var(--pitch-dd) !important; }
.rule-card__steps { margin: 6px auto 8px; padding: 0 0 0 1.4em; max-width: 340px; text-align: left; font-size: 13px; font-weight: 700; color: var(--ink); }
.rule-card__steps li { margin: 2px 0; }
.rule-card__steps li::marker { color: var(--a-d); font-weight: 900; }
.rule-card__steps b.t-a { color: var(--a-d); }
.rule-card__steps b.t-b { color: var(--b-d); }
.rule-card__vote { margin-top: 6px !important; padding: 4px 8px; border-radius: 10px; background: #fff; }
.rule-card__vote small { display: block; font-size: 11px; }
.rule-card__warn { color: var(--red-d) !important; }
.rule-card__pay { margin-top: 8px; padding: 6px 8px 8px; border-radius: 10px; background: #fff; }
.rule-card__pay .rule-card__pay-title { margin: 0 0 2px !important; font-size: 11px !important; font-weight: 900; color: var(--gold-d); letter-spacing: .15em; }
.rule-card__pay-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 5px; margin: 4px 0 0 !important; }
.pay-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--panel-2); font-size: 12px; line-height: 1.7; color: var(--muted); font-weight: 700; white-space: nowrap; }
.rule-card__pay b { color: var(--gold-d) !important; }
.rule-card__pay b.is-minus { color: var(--minus) !important; }
.rule-card__who { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--pitch-d); color: #fff; font-size: 11px; font-weight: 900; line-height: 1.8; }

/* ---------- 観戦チケット（合言葉） ---------- */
.ticket {
  position: relative; overflow: hidden; text-align: center; padding: 18px 16px 16px; border-radius: 16px;
  background:
    linear-gradient(90deg, var(--a) 0 8px, transparent 8px calc(100% - 8px), var(--b) calc(100% - 8px)),
    repeating-linear-gradient(45deg, rgba(28, 122, 56, .05) 0 6px, rgba(28, 122, 56, 0) 6px 12px),
    #F4FBF5;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #9FD1AB, 0 6px 0 rgba(0, 0, 0, .14), 0 12px 22px rgba(0, 0, 0, .18);
}
/* 切り取り線（左右の半円のくぼみつき） */
.ticket__cut { position: relative; margin: 8px -16px 0; border-top: 2px dashed #9FD1AB; }
.ticket__cut::before, .ticket__cut::after {
  content: ''; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--pitch);
}
.ticket__cut::before { left: -13px; }
.ticket__cut::after { right: -13px; }
.ticket__en { margin: 0; font-weight: 900; font-size: 11px; color: var(--pitch-d); letter-spacing: .3em; }
.ticket__title { margin: 0 0 8px; font-family: var(--deco); font-size: 22px; color: var(--pitch-dd); }
.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); }

/* ---------- 試合の見出し（看板） ---------- */
.match-head {
  text-align: center; padding: 8px 12px 10px; border-radius: var(--radius-m);
  background: var(--pitch-dd); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 4px 0 rgba(0, 0, 0, .18);
}
.match-head p { margin: 0; }
.match-head__date { font-size: 12px; font-weight: 700; color: #CFEBD4; }
.match-head__name { font-family: var(--deco); font-size: 26px; line-height: 1.3; color: #fff; letter-spacing: .04em; }
.match-head__sub { font-size: 13px; font-weight: 900; color: var(--gold); }
.match-head__sub:empty { display: none; }

.parent-chip {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%;
  margin: 10px auto 0; padding: 4px 16px 4px 10px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}
.parent-chip b { font-size: 17px; }

/* ---------- お題と A 対 B ---------- */
.q-card {
  position: relative; margin: 10px 0 0; padding: 12px 14px 14px; text-align: center;
  background: #fff; border-radius: var(--radius-l);
  box-shadow: 0 0 0 4px var(--gold), 0 6px 0 4px rgba(0, 0, 0, .12), 0 12px 24px rgba(0, 0, 0, .18);
}
.q-card__label { margin: 0; font-size: 12px; font-weight: 900; color: var(--gold-d); letter-spacing: .2em; }
.q-card__change { margin-top: 6px; }
.question { font-size: 23px; line-height: 1.45; text-align: center; margin: 2px 0 0; font-weight: 900; color: var(--ink); }

.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 6px; margin-top: 12px; }
.vs__mark { align-self: center; font-family: var(--deco); font-size: 20px; color: var(--muted); }
.team {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 104px; padding: 12px 8px 14px; border: 0; border-radius: 16px;
  font: inherit; color: #fff; text-align: center;
  -webkit-tap-highlight-color: transparent; transition: transform .1s, opacity .15s;
}
.team--a { background: linear-gradient(180deg, var(--a-2), var(--a)); box-shadow: 0 4px 0 var(--a-d); }
.team--b { background: linear-gradient(180deg, var(--b-2), var(--b)); box-shadow: 0 4px 0 var(--b-d); }
.team__tag {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; font-family: var(--deco); font-size: 16px; line-height: 1;
}
.team--a .team__tag { color: var(--a-d); }
.team--b .team__tag { color: var(--b-d); }
.team__name { font-weight: 900; font-size: 21px; line-height: 1.3; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.team__note { font-size: 11px; font-weight: 700; opacity: .9; }
.team.is-unknown {
  background: repeating-linear-gradient(45deg, #EEF4FF 0 10px, #E2ECFF 10px 20px);
  color: var(--b-d); box-shadow: inset 0 0 0 3px var(--b-2), 0 4px 0 rgba(0, 0, 0, .1);
}
.team.is-unknown .team__tag { background: var(--b); color: #fff; }
.team.is-unknown .team__name { font-family: var(--deco); font-size: 30px; text-shadow: none; }
button.team { cursor: pointer; }
button.team:active { transform: translateY(2px); }
.vs.is-pick .team { min-height: 116px; }
.vs.is-pick .team::after {
  content: 'タップで投票'; position: absolute; bottom: 5px; left: 0; right: 0;
  font-size: 10px; font-weight: 900; opacity: .85;
}
.vs.is-pick .team.is-on::after, .vs.is-pick .team.is-off::after { content: none; }
.team.is-on { outline: 4px solid var(--gold); outline-offset: 2px; transform: translateY(-2px); }
.team.is-off { opacity: .5; filter: saturate(.5); }
.team__check {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 1px 10px; border-radius: 999px; background: var(--gold); color: #4A2400; font-size: 12px; font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.lead-box {
  margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .95); text-align: center; font-weight: 700; font-size: 14px; line-height: 1.6;
}
.lead-box:empty { display: none; }
.lead-box b { color: var(--a-d); }
.lead-box small { color: var(--muted); }
.progress { text-align: center; font-weight: 900; font-size: 15px; margin: 14px 0 0; color: #fff; text-shadow: 0 2px 0 var(--pitch-dd); }
.progress:empty { display: none; }
.sub-title { font-size: 16px; margin: 22px 0 8px; font-weight: 900; color: #fff; letter-spacing: .04em; text-shadow: 0 2px 0 var(--pitch-dd); }

/* 親が B を書く */
.write-box {
  margin: 12px 0 0; padding: 12px 14px 14px; border-radius: var(--radius-l);
  background: #fff; box-shadow: 0 0 0 3px var(--b), 0 5px 0 3px rgba(0, 0, 0, .12);
}
.write-box__label { display: block; font-size: 14px; font-weight: 900; color: var(--b-d); text-align: center; margin-bottom: 6px; }
.write-box__input { font-size: 22px; font-weight: 900; text-align: center; border-color: var(--b-l); background: #F7FAFF; }
.write-box__input:focus { border-color: var(--b); box-shadow: 0 0 0 3px rgba(47, 123, 255, .3); }
.write-box__count { margin: 4px 0 0; font-size: 13px; font-weight: 900; color: var(--muted); text-align: right; }
.write-box__count.is-warn { color: var(--minus); text-align: center; }
.write-box__tip { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }

/* スコア予想 */
.predict-box {
  margin-top: 14px; padding: 12px 12px 14px; border-radius: var(--radius-l);
  background: rgba(0, 0, 0, .16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.predict-box__title { margin: 0 0 6px; font-weight: 900; text-align: center; color: #fff; font-size: 17px; }
.step-no {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%;
  background: #fff; color: var(--pitch-d); font-size: 13px; line-height: 1; vertical-align: 2px;
}
.predict-box__title small { font-size: 12px; opacity: .9; }
.predict-box__pay { margin: 10px 0 0; font-size: 12px; font-weight: 700; text-align: center; color: var(--light-2); }
.predict-box__pay b { color: #FFE38A; }
.scores__head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; font-size: 12px; font-weight: 900; }
.scores__head span { padding: 1px 0; border-radius: 999px; background: #fff; }
.scores__eq { display: grid; grid-template-columns: minmax(0, 1fr); width: 60%; margin: 16px auto 0; }
.scores__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sc {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 8px 6px 7px; border: 0; border-radius: 12px; background: var(--led-bg);
  font-family: var(--dot); cursor: pointer; box-shadow: 0 0 0 2px #3A4550, 0 4px 0 rgba(0, 0, 0, .3);
  -webkit-tap-highlight-color: transparent;
}
.sc:active { transform: translateY(2px); }
.sc__n { font-size: 30px; line-height: 1; }
.sc__n--a { color: var(--led-a); text-shadow: 0 0 8px rgba(255, 116, 104, .7); }
.sc__n--b { color: var(--led-b); text-shadow: 0 0 8px rgba(98, 168, 255, .7); }
.sc__dash { color: var(--led); font-size: 22px; line-height: 1; }
/* イコラ（まん中）のボタンは、ふつうのボタンと同じ枠。小さな札だけつける（えらんだように見えないように） */
.sc__tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 0 8px; border-radius: 999px; background: var(--led-bg); color: #FFD979;
  font-family: var(--font); font-weight: 900; font-size: 10px; line-height: 1.6; letter-spacing: .08em;
  box-shadow: 0 0 0 2px #3A4550;
}
/* えらんだボタン：金色のふち＋「あなたの予想」の札 */
.sc.is-on {
  background: #1E2A34; transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--gold), 0 0 18px rgba(255, 200, 61, .75), 0 4px 0 rgba(0, 0, 0, .3);
}
.sc.is-on .sc__tag { box-shadow: 0 0 0 2px var(--gold); }
.sc__mine {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 0 8px; border-radius: 999px; background: var(--gold); color: #4A2400;
  font-family: var(--font); font-weight: 900; font-size: 10px; line-height: 1.6;
}
.sc.is-off { opacity: .22; cursor: default; }

/* みんなの様子 */
.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: 8px;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 3px 10px 3px 8px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.status.is-done { color: var(--plus); box-shadow: inset 0 0 0 2px var(--plus); }
.status.is-parent { background: #FFF8E0; }
.host-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; }
.host-tools .link-btn { font-size: 12px; opacity: .85; }

/* 下に固定のバー */
.pick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px max(14px, calc(50% - 240px)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(17, 92, 40, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 -3px 0 #fff, 0 -8px 24px rgba(0, 0, 0, .25);
}
.pick-bar__marks { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.mk {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px 2px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-weight: 900; font-size: 13px; line-height: 1.5;
}
.mk__label { flex: none; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-size: 11px; }
.mk.is-set { background: #fff; color: var(--ink); }
.mk.is-set .mk__label { background: var(--panel-2); color: var(--muted); }
.mk__side { font-family: var(--deco); font-size: 14px; }
.mk--a .mk__side { color: var(--a-d); }
.mk--b .mk__side { color: var(--b-d); }
.mk__text { min-width: 0; max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk__empty { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .2); font-size: 12px; }
.mk__led { padding: 0 6px; border-radius: 6px; background: var(--led-bg); font-family: var(--dot); font-size: 15px; letter-spacing: .05em; color: var(--led); }
.mk__led .t-a { color: var(--led-a); }
.mk__led .t-b { color: var(--led-b); }
.pick-bar__btn { width: auto; margin: 0; padding: 12px 16px; font-size: 15px; flex: none; }
.bar-space { height: 100px; }

/* ---------- スコアボード（電光掲示板） ---------- */
.sb {
  margin: 12px 0 0; padding: 10px 12px 14px; border-radius: 14px;
  background: var(--led-bg); color: #fff; font-family: var(--dot);
  box-shadow: 0 0 0 4px #3A4550, 0 0 0 7px #1E252C, 0 12px 24px rgba(0, 0, 0, .3);
}
.sb__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sb__label { font-size: 18px; letter-spacing: .1em; color: var(--led); text-shadow: 0 0 8px rgba(255, 178, 46, .8); }
.sb__lamp { padding: 2px 10px; border-radius: 6px; font-size: 16px; letter-spacing: .12em; color: #5A221D; background: #2A1210; white-space: nowrap; }
.sb__lamp.is-lit { color: #fff; background: #E8263A; box-shadow: 0 0 16px rgba(232, 38, 58, .9); }
.sb__main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 10px; }
.sb__team { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.sb__tag {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--deco); font-size: 17px; line-height: 1; color: #fff;
}
.sb__team--a .sb__tag { background: var(--a); }
.sb__team--b .sb__tag { background: var(--b); }
.sb__name { font-family: var(--font); font-weight: 900; font-size: 16px; line-height: 1.3; color: #fff; }
.sb__score { display: flex; align-items: center; gap: 4px; }
.sb__num { display: inline-block; min-width: .75em; font-size: 64px; line-height: 1; text-align: center; }
.sb__num--a { color: var(--led-a); text-shadow: 0 0 12px rgba(255, 116, 104, .8); }
.sb__num--b { color: var(--led-b); text-shadow: 0 0 12px rgba(98, 168, 255, .8); }
.sb__num.is-pop { animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(1.8); } }
.sb__dash { font-size: 40px; color: var(--led); }
.sb--equala { box-shadow: 0 0 0 4px var(--gold), 0 0 0 7px #8A5A00, 0 0 30px rgba(255, 200, 61, .6), 0 12px 24px rgba(0, 0, 0, .3); }
.sb--equala .sb__dash { color: var(--gold); text-shadow: 0 0 10px rgba(255, 200, 61, .9); }
.sb--wipe .sb__num { opacity: .85; }

/* 結果の決めぜりふ（スコアボードの下） */
.kind { margin: 12px 0 0; padding: 6px 12px 8px; border-radius: var(--radius-m); text-align: center; line-height: 1.3; }
.kind b { display: block; font-family: var(--deco); font-weight: 400; font-size: 30px; letter-spacing: .04em; }
.kind span { font-size: 14px; font-weight: 900; }
.kind--equala { background: linear-gradient(180deg, #FFF3C4, var(--gold)); color: #6A3C00; box-shadow: 0 4px 0 var(--gold-d); }
.kind--wipe { background: #2B2F36; color: #D5DCE2; box-shadow: 0 4px 0 #000; }

/* ---------- ゴールの演出（スコアボードが大きく出る） ---------- */
.score-ov {
  position: fixed; inset: 0; z-index: 45; overflow-x: hidden; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  justify-content: center; justify-content: safe center;   /* 入りきらないときは上から */
  padding: calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(180deg, #23893F 0 70px, #1F7E3A 70px 140px);
}
.score-ov.is-equala { background: radial-gradient(circle, #FFE58F, #F2A922 70%, #C77A00); }
.score-ov__head { text-align: center; }
.score-ov__name { margin: 0; font-family: var(--deco); font-size: clamp(24px, 7vw, 40px); line-height: 1.3; color: #fff; text-shadow: 0 3px 0 var(--pitch-dd), 0 0 14px rgba(0, 0, 0, .2); }
.score-ov__q { display: inline-block; margin: 6px 0 0; padding: 4px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 900; font-size: 16px; max-width: 92vw; }
.score-ov__board { width: 100%; max-width: 560px; }
.kick { position: relative; }
.kick .sb { margin: 0; }
.kick .sb__num { font-size: clamp(64px, 20vw, 110px); }
.kick .sb__name { font-size: 18px; }
.kick__flash { position: absolute; inset: -30px -12px; margin: 0; border-radius: 30px; opacity: 0; pointer-events: none; z-index: 2; }
.kick__flash.is-a { background: radial-gradient(ellipse 45% 60% at 25% 55%, rgba(255, 90, 78, .75), rgba(255, 90, 78, 0) 100%); }
.kick__flash.is-b { background: radial-gradient(ellipse 45% 60% at 75% 55%, rgba(47, 123, 255, .75), rgba(47, 123, 255, 0) 100%); }
.kick__flash.is-on { animation: kflash .5s ease-out; }
@keyframes kflash { 0% { opacity: 1; } 100% { opacity: 0; } }
.kick__goal { display: grid; place-items: center; height: 96px; }
.kick__word {
  font-family: var(--deco); font-size: clamp(40px, 12vw, 68px); line-height: 1; color: #fff; opacity: 0; white-space: nowrap;
}
.kick__word.is-a { text-shadow: 0 4px 0 var(--a-d), 0 0 18px rgba(255, 90, 78, .7); }
.kick__word.is-b { text-shadow: 0 4px 0 var(--b-d), 0 0 18px rgba(47, 123, 255, .7); }
.kick__word.is-eq { color: var(--gold); font-size: clamp(28px, 8.2vw, 56px); text-shadow: 0 4px 0 #8A4D00, 0 0 22px rgba(255, 200, 61, .9); }
.kick__word.is-in { opacity: 1; animation: goalword .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes goalword { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } }

/* ---------- 結果 ---------- */
.q-mini { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-m); background: #fff; text-align: center; box-shadow: 0 0 0 3px var(--gold); }
.q-mini__label { display: block; font-size: 12px; font-weight: 900; color: var(--gold-d); }
.q-mini__text { display: block; font-size: 19px; font-weight: 900; line-height: 1.45; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.side { min-width: 0; padding: 8px 10px 10px; border-radius: var(--radius-m); background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.side--a { box-shadow: inset 0 0 0 3px var(--a), 0 3px 0 rgba(0, 0, 0, .12); }
.side--b { box-shadow: inset 0 0 0 3px var(--b), 0 3px 0 rgba(0, 0, 0, .12); }
.side__head { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 900; line-height: 1.3; }
.side__tag { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; font-family: var(--deco); font-size: 13px; }
.side--a .side__tag { background: var(--a); }
.side--b .side__tag { background: var(--b); }
.side__name { flex: 1; min-width: 0; font-size: 14px; }
.side__n { flex: none; font-family: var(--dot); font-size: 24px; line-height: 1; }
.side__n small { font-family: var(--font); font-size: 11px; margin-left: 1px; }
.side--a .side__n { color: var(--a-d); }
.side--b .side__n { color: var(--b-d); }
.side__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.side__item { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-width: 0; font-weight: 700; font-size: 14px; }
.side__who { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__item .av--s { width: 28px; height: 28px; }
.side__item .tag { flex: none; }
.side__item.is-dropped { opacity: .6; }
.side__item.is-dropped .side__who { text-decoration: line-through; }
.side__drop { flex-basis: 100%; padding-left: 36px; font-size: 10px; font-weight: 900; line-height: 1.3; color: var(--muted); }
.side__none { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; padding: 6px 0; }

.talk { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-l); background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.talk p { margin: 4px 0; font-size: 15px; font-weight: 700; }
.talk b { color: var(--a-d); }
.talk__big { font-size: 18px !important; font-weight: 900 !important; text-align: center; }
.talk p.talk__label { display: inline-block; margin: 0 0 2px; padding: 1px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.talk__best { padding: 4px 10px; border-radius: 10px; background: #FFF6D6; }
.talk__best b { color: var(--gold-d); }

.pay-parent {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-m);
  background: #FFF8E0; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--gold);
}
.pay-parent b { color: var(--ink); }
.pay-parent small { display: block; font-size: 11px; color: var(--muted); }

.pred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pred { background: #fff; border-radius: var(--radius-m); padding: 8px 12px 10px; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.pred--none { text-align: center; font-weight: 700; color: var(--muted); }
.pred__who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-weight: 900; }
.pred__name { font-size: 16px; }
.pred__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.pred__vote { font-size: 12px; }
.pred__score { font-size: 13px; font-weight: 900; color: var(--muted); }
.led {
  display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--led-bg); color: var(--led);
  font-family: var(--dot); font-weight: 400; font-size: 17px; line-height: 1.5; letter-spacing: .06em;
}
.led .t-a { color: var(--led-a); }
.led .t-b { color: var(--led-b); }
.pred__pt { margin-left: auto; font-size: 13px; font-weight: 900; color: var(--muted); }
.pred__pt b { margin-left: 6px; font-size: 18px; color: var(--ink); }
.pred__pt b small { margin-left: 1px; font-size: 11px; }
.pred--exact { background: linear-gradient(180deg, #FFF8DC, #fff); box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(255, 200, 61, .6); }
.pred--exact .pred__pt, .pred--exact .pred__pt b { color: var(--gold-d); }
.pred--near .pred__pt, .pred--near .pred__pt b { color: var(--plus); }
.pred--miss .pred__pt b { color: #9AA59C; }

.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; color: #fff; line-height: 1.6; }
.tag--you { background: var(--adult); }
.tag--parent { background: var(--gold-d); }
.is-plus { color: var(--plus) !important; }
.is-minus { color: var(--minus) !important; }

/* ---------- 順位 ---------- */
.ranks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.rank { display: flex; align-items: center; gap: 13px; background: #fff; border-radius: 12px; padding: 6px 12px; box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.rank__no { font-weight: 900; width: 1.5em; text-align: center; color: var(--gold-d); font-size: 18px; }
.rank__name { flex: 1; min-width: 0; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.rank__sub { display: block; width: 100%; font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.3; }
.rank__pt { font-weight: 900; color: var(--ink); white-space: nowrap; font-size: 18px; }
.rank__pt small { margin-left: 2px; font-size: 11px; }
.rank.is-first { box-shadow: inset 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, .1); }
.rank__win { font-size: 11px; font-weight: 900; color: #4A2400; background: var(--gold); padding: 1px 8px; border-radius: 999px; }
.ranks--mini .rank { padding: 4px 12px; }
.dialog .rank { box-shadow: inset 0 0 0 2px var(--panel-2); }

/* ---------- 最終結果 ---------- */
.winner-card {
  position: relative; margin: 14px 0 0; padding: 14px 12px 16px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #FFF8DC, #fff);
  box-shadow: 0 0 0 4px var(--gold), 0 0 30px rgba(255, 200, 61, .55), 0 12px 26px rgba(0, 0, 0, .25);
}
.winner-card__trophy { display: block; width: 160px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(120, 60, 0, .25)); }
.winner-card__label { margin: 4px 0 0; font-family: var(--deco); font-size: 30px; color: var(--gold-d); line-height: 1.2; }
.winner-card__who { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; font-weight: 900; font-size: 22px; }
.winner-card__who > span { display: inline-flex; align-items: center; gap: 16px; }
.winner-card__pt { margin: 4px 0 0; font-family: var(--deco); font-size: 30px; color: var(--plus); }
.winner-card__pt small { margin-left: 4px; font-family: var(--font); font-weight: 900; font-size: 15px; }

.awards { display: grid; gap: 6px; margin-top: 16px; }
.awards:empty { display: none; }
.awards__sum { margin: 0; text-align: center; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--pitch-dd); }
.awards__sum b { color: #FFE38A; font-size: 20px; }
.award { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.award__title {
  flex: none; min-width: 6.8em; padding: 3px 10px; border-radius: 999px; text-align: center;
  background: var(--pitch-d); color: #fff; font-size: 12px; font-weight: 900; line-height: 1.5;
}
.award__body { min-width: 0; }
.award b { display: block; font-size: 16px; line-height: 1.35; color: var(--ink); }
.award small { font-size: 11px; }
.award--gold { background: linear-gradient(180deg, #FFF8DC, #fff); box-shadow: inset 0 0 0 2px var(--gold), 0 3px 0 rgba(0, 0, 0, .1); }
.award--gold .award__title { background: var(--gold); color: #4A2400; }
.award--miss { background: #F2F3F6; }
.award--miss .award__title { background: #2B2F36; }

.recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recap__item { padding: 8px 12px 10px; border-radius: var(--radius-m); background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.recap__item p { margin: 0; }
.recap__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.recap__no { font-weight: 900; color: var(--pitch-d); }
.recap__kind { padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1.7; }
.recap__kind.is-eq { background: var(--gold); color: #4A2400; }
.recap__kind.is-wipe { background: #2B2F36; color: #fff; }
.recap__q { font-weight: 900; font-size: 15px; margin-top: 2px !important; }
.recap__score { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px !important; font-size: 13px; }
.recap__skip { font-weight: 900; color: var(--muted); }

/* ---------- ダイアログ ---------- */
.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 4px var(--gold), 0 20px 40px rgba(0, 0, 0, .35);
}
.dialog::backdrop { background: rgba(10, 40, 18, .7); }
.dialog__title { margin: 0; font-size: 19px; text-align: center; font-family: var(--deco); font-weight: 400; color: var(--pitch-d); }
.share-preview { display: block; width: 100%; height: auto; border-radius: 10px; margin-top: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.share-row--sheet { margin-top: 14px; }
.share-row--sheet .btn { margin-top: 0; font-size: 16px; padding: 14px 8px; }
.share-note { font-size: 12px !important; line-height: 1.6; }

/* ---------- 演出の重ね板 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; overflow-x: hidden; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; justify-content: safe center;
  text-align: center; padding: 24px;
  background: radial-gradient(circle, rgba(47, 168, 80, .97), rgba(17, 92, 40, .98));
}
.overlay__art { position: relative; z-index: 1; width: min(72vw, 340px); }
.overlay__art img { display: block; width: 100%; height: auto; max-height: 40vh; object-fit: contain; margin: 0 auto; }
.overlay__art:empty { display: none; }
.overlay__art img.overlay__emblem { width: min(62vw, 250px); margin-bottom: 10px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.overlay--gold .overlay__art img { filter: drop-shadow(0 8px 16px rgba(120, 60, 0, .35)); }
/* イコラ！・NO MATCH の絵（横長の写真ふう） */
.overlay__art--photo { width: min(94vw, 640px); }
.overlay__art--photo img.overlay__photo {
  width: auto; max-width: 100%; max-height: 50vh; border-radius: 18px;
  box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(0, 0, 0, .45); filter: none;
}
.overlay--miss .overlay__art--photo img.overlay__photo { box-shadow: 0 0 0 4px #D5DCE2, 0 14px 30px rgba(0, 0, 0, .6); }
.overlay__art--photo img.overlay__photo { animation: photoIn .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes photoIn { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.overlay__date { margin: 0; display: inline-block; padding: 2px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #fff; font-weight: 900; font-size: 16px; }
.overlay__led {
  display: inline-block; margin: 0; padding: 6px 22px; border-radius: 12px; background: var(--led-bg);
  font-family: var(--dot); font-size: 56px; line-height: 1.1; color: var(--led); box-shadow: 0 0 0 4px #3A4550;
}
.overlay__led .t-a { color: var(--led-a); }
.overlay__led .t-b { color: var(--led-b); }
.overlay__word {
  position: relative; z-index: 1;
  font-family: var(--deco); line-height: 1.2; margin: 12px 0 0;
  font-size: clamp(38px, 11vw, 72px); color: #fff;
  text-shadow: 0 4px 0 var(--pitch-dd), 0 0 18px rgba(0, 0, 0, .2);
  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 {
  position: relative; z-index: 1;
  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__sub b { color: var(--a-d); }
.overlay--intro { background: linear-gradient(180deg, #5EC4FF 0, #CDEFFF 45%, var(--pitch) 45.3%, var(--pitch-d) 100%); }
.overlay--intro .overlay__word { font-size: clamp(34px, 10vw, 64px); }
.overlay--vs { background: linear-gradient(90deg, var(--a-d) 0, var(--a) 49.8%, #fff 49.8%, #fff 50.2%, var(--b) 50.2%, var(--b-d) 100%); }
.overlay--vs .overlay__art { width: min(94vw, 560px); }
.overlay--vs .overlay__word { text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(0, 0, 0, .3); }
.overlay--gold { background: radial-gradient(circle, #FFE58F, #F2A922 70%, #C77A00); }
.overlay--gold .overlay__word { text-shadow: 0 4px 0 #8A4D00, 0 0 22px rgba(255, 255, 255, .6); }
.overlay--gold .overlay__sub b { color: var(--gold-d); }
.overlay--miss { background: radial-gradient(circle, #3C4250, #111318); }
.overlay--miss .overlay__word { color: #D5DCE2; font-size: clamp(34px, 10vw, 64px); text-shadow: 0 4px 0 #000; }
.overlay--miss .overlay__word.is-in { animation: word .5s cubic-bezier(.2, 1.5, .4, 1), shake .5s .5s; }
.overlay--miss .overlay__sub b { color: var(--minus); }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.overlay--exact { background: radial-gradient(circle, #FFFFFF, #DDF5E3 55%, #9FDCB0); }
.overlay--exact .overlay__word { color: var(--gold); text-shadow: 0 4px 0 #8A4D00, 0 0 18px rgba(255, 200, 61, .6); }
.overlay--exact .overlay__sub { box-shadow: 0 0 0 3px var(--gold); }
.overlay--exact .overlay__sub b { color: var(--gold-d); }

/* A VS B（キックオフ） */
.vs-big { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.vs-big .team { min-height: 140px; box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(0, 0, 0, .3); }
.vs-big .team__name { font-size: clamp(20px, 6vw, 30px); }
.vs-big .team__tag { width: 38px; height: 38px; font-size: 20px; }
.vs-big__mark { font-family: var(--deco); font-size: 34px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.overlay--vs .vs-big .team { animation: slideA .45s cubic-bezier(.2, 1.3, .4, 1); }
.overlay--vs .vs-big .team--b { animation-name: slideB; }
@keyframes slideA { from { transform: translateX(-60vw); } }
@keyframes slideB { from { transform: translateX(60vw); } }

/* 紙ふぶき */
.confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; width: 10px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); animation: fall 2.6s linear forwards; }
@keyframes fall { to { top: 110vh; transform: rotate(720deg) translateX(40px); } }

/* ---------- プレミアム ---------- */
.premium-banner {
  display: block; width: 100%; margin-top: 14px; padding: 12px 16px;
  border: 2px dashed #FFD0E1; border-radius: 999px;
  background: rgba(255, 79, 139, .22); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.premium-banner b { color: #FFE3EE; }
.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: 17px; font-weight: 900; line-height: 1.7; }
.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%; top: calc(10px + env(safe-area-inset-top));
  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 3px var(--gold), 0 6px 16px rgba(0, 0, 0, .3);
}
.foot { text-align: center; font-size: 12px; color: var(--light-2); margin-top: 36px; }
.foot a { color: #fff; 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; }

/* ---------- 観戦画面（配信・テレビ）は大きく ---------- */
body.is-watch .app { max-width: 1100px; }
body.is-watch .question { font-size: 34px; }
body.is-watch [data-player-only] { display: none !important; }
body.is-watch .q-card, body.is-watch .lead-box, body.is-watch .sb, body.is-watch .kind,
body.is-watch .sides, body.is-watch .talk, body.is-watch .pay-parent, body.is-watch .q-mini,
body.is-watch .winner-card, body.is-watch .ranks, body.is-watch .recap, body.is-watch .awards {
  max-width: 820px; margin-left: auto; margin-right: auto;
}
body.is-watch .team { min-height: 150px; }
body.is-watch .team__name { font-size: 34px; }
body.is-watch .sb__num { font-size: 96px; }
body.is-watch .sb__name { font-size: 24px; }
body.is-watch .pred-list { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
body.is-watch .match-head__name { font-size: 34px; }

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