:root {
  --yellow:  #FFE033;
  --coral:   #FF5757;
  --mint:    #00D4AA;
  --sky:     #3FBCF4;
  --pink:    #FF7EB3;
  --lime:    #8FE000;
  --purple:  #C084FC;
  --orange:  #FF9500;
  --bg:      #FFF8E7;
  --ink:     #1A1A1A;
  --white:   #FFFFFF;
  --shadow:    5px 5px 0px var(--ink);
  --shadow-lg: 7px 7px 0px var(--ink);
  --shadow-sm: 3px 3px 0px var(--ink);
  --border:  3px solid var(--ink);
  --radius:    20px;
  --radius-lg: 28px;
  --font: 'Hiragino Rounded Gothic Pro', 'Rounded Mplus 1c', 'Yu Gothic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  font-family: var(--font);
  overflow: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,87,87,0.18) 0%, transparent 50%),
    radial-gradient(circle, rgba(63,188,244,0.15) 0%, transparent 50%);
  background-size: 300px 300px, 400px 400px;
  background-position: 0 0, 150px 150px;
  animation: bgDrift 16s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { background-position: 0 0, 150px 150px; }
  100% { background-position: 60px 40px, 200px 100px; }
}
.floaties { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floaty {
  position: absolute; border-radius: 50%; border: 3px solid var(--ink);
  animation: floatUp linear infinite; opacity: 0.5;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-20vh) rotate(360deg); }
}
#app {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
}
.screen {
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  opacity: 0;
  transform: scale(0.85) rotate(-2deg);
  transition: opacity 0.4s cubic-bezier(.34,1.56,.64,1),
              transform 0.4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  position: absolute;
}
.screen.active  { opacity: 1; transform: none; pointer-events: all; }
.screen.exit    { opacity: 0; transform: scale(1.1) rotate(2deg); pointer-events: none; }
#screen-category,
#screen-genre {
  max-width: 760px; max-height: 94vh;
  overflow-y: auto; scrollbar-width: none; padding-bottom: 12px;
}
#screen-category::-webkit-scrollbar,
#screen-genre::-webkit-scrollbar { display: none; }

/* TITLE */
.sticker-tag {
  background: var(--yellow); border: var(--border); border-radius: 100px;
  padding: 6px 20px; font-size: 12px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase;
  box-shadow: var(--shadow-sm); transform: rotate(-1.5deg); display: inline-block;
}
.title-main {
  font-size: clamp(30px, 7vw, 60px); font-weight: 900;
  line-height: 1.0; letter-spacing: -0.02em; display: inline-block;
}
.title-main span {
  display: inline-block; color: var(--coral); text-shadow: 4px 4px 0 var(--ink);
  animation: titleWobble 3s ease-in-out infinite;
}
.title-main span:nth-child(2)  { animation-delay: .15s; color: var(--sky); }
.title-main span:nth-child(3)  { animation-delay: .30s; color: var(--mint); }
.title-main span:nth-child(4)  { animation-delay: .45s; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
.title-main span:nth-child(5)  { animation-delay: .60s; color: var(--pink); }
.title-main span:nth-child(6)  { animation-delay: .75s; color: var(--lime); }
.title-main span:nth-child(7)  { animation-delay: .90s; color: var(--purple); }
.title-main span:nth-child(8)  { animation-delay: 1.05s; color: var(--orange); }
.title-main span:nth-child(9)  { animation-delay: 1.20s; color: var(--coral); }
.title-main span:nth-child(10) { animation-delay: 1.35s; color: var(--sky); }
.title-main span:nth-child(11) { animation-delay: 1.50s; color: var(--mint); }
.title-main span:nth-child(12) { animation-delay: 1.65s; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
@keyframes titleWobble {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25%     { transform: translateY(-6px) rotate(-3deg); }
  75%     { transform: translateY(3px) rotate(2deg); }
}
.title-sub-box {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 16px 28px; font-size: clamp(14px, 2.5vw, 17px); font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow); line-height: 1.7;
  text-align: center; transform: rotate(0.5deg);
}
.title-sub-box em { font-style: normal; background: var(--yellow); padding: 0 4px; }
.btn-start {
  padding: 22px 72px; font-size: clamp(20px, 4vw, 26px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--coral); color: var(--white); box-shadow: var(--shadow-lg);
  transition: transform .12s, box-shadow .12s; letter-spacing: .06em;
  position: relative; overflow: hidden;
}
.btn-start::after {
  content: '✦'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 18px; animation: starSpin 2s linear infinite;
}
@keyframes starSpin { 0%{ transform: translateY(-50%) rotate(0deg);} 100%{ transform: translateY(-50%) rotate(360deg);} }
@keyframes shake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  20%     { transform: translateX(-8px) rotate(-1deg); }
  40%     { transform: translateX(8px) rotate(1deg); }
  60%     { transform: translateX(-6px) rotate(0deg); }
  80%     { transform: translateX(6px) rotate(0deg); }
}
.btn-start:hover  { transform: translateY(-5px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.btn-start:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }

/* SHARED HEADER */
.screen-header {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.screen-title-badge {
  background: var(--ink); color: var(--yellow); border-radius: 100px;
  padding: 8px 22px; font-size: clamp(14px, 3vw, 20px); font-weight: 900;
}
.header-btns { display: flex; gap: 8px; }
.btn-back {
  padding: 10px 22px; font-size: 14px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.btn-back:hover  { transform: translateY(-3px); box-shadow: 5px 8px 0 var(--ink); }
.btn-back:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-exit {
  padding: 10px 22px; font-size: 14px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: #E0E0E0; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.btn-exit:hover  { transform: translateY(-3px); box-shadow: 5px 8px 0 var(--ink); background: var(--purple); color: white; }
.btn-exit:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* ── END STREAM ── */
.btn-end-stream {
  padding: 10px 20px; font-size: clamp(12px, 2.8vw, 14px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--ink); color: var(--yellow); box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.btn-end-stream:hover  { transform: translateY(-3px); box-shadow: 5px 8px 0 var(--coral); }
.btn-end-stream:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
#end-stream-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.65); align-items: center; justify-content: center; padding: 20px;
}
#end-stream-overlay.visible { display: flex; }
.end-stream-modal {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.end-stream-modal-title {
  font-size: clamp(20px, 5vw, 26px); font-weight: 900; line-height: 1.3;
}
.end-stream-modal-body {
  font-size: 14px; font-weight: 700; color: rgba(0,0,0,.6);
  line-height: 1.8; text-align: center;
}
.end-stream-modal-caution {
  background: #FFF0F0; border: 2px solid var(--coral); border-radius: var(--radius);
  padding: 12px 18px; font-size: 13px; font-weight: 900; color: var(--coral);
  width: 100%;
}
.end-stream-archive-notice {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; background: #F0FFF8;
  border: 2.5px solid var(--mint); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: 3px 3px 0 var(--mint);
}
.archive-notice-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.archive-notice-title { font-size: 14px; font-weight: 900; color: #006644; margin-bottom: 4px; }
.archive-notice-sub   { font-size: 12px; font-weight: 700; color: #00885A; line-height: 1.6; }
.end-stream-url-box {
  width: 100%; background: #F8F8FF;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.end-stream-url-label {
  font-size: 12px; font-weight: 900; color: var(--ink); letter-spacing: .04em;
}
.end-stream-url-row {
  display: flex; align-items: center; gap: 8px;
}
.end-stream-url-text {
  flex: 1; font-size: 12px; font-weight: 700; color: #333;
  word-break: break-all; line-height: 1.5;
}
.end-stream-copy-btn { padding: 6px 14px !important; font-size: 12px !important; }
.end-stream-modal-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%;
}
.end-stream-modal-not-game-end {
  width: 100%; background: #FFF3CD;
  border: 2px solid #E6A817; border-radius: var(--radius);
  padding: 12px 16px; font-size: 13px; font-weight: 800;
  color: #7A4F00; line-height: 1.7; text-align: center;
}
.end-stream-modal-not-game-end strong { color: var(--coral); }

/* ゲーム選択画面の配信終了セクション */
.end-stream-section {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-top: 12px; padding-top: 20px;
  border-top: 2px dashed rgba(0,0,0,.13);
}
.end-stream-divider {
  font-size: 12px; font-weight: 800; color: rgba(0,0,0,.35); letter-spacing: .06em;
}
.btn-end-stream-game-select {
  width: 100%; padding: 16px; font-size: 15px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px;
  cursor: pointer; background: var(--ink); color: var(--yellow);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn-end-stream-game-select:hover  { transform: translateY(-3px); box-shadow: 5px 8px 0 var(--coral); }
.btn-end-stream-game-select:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.end-stream-note {
  width: 100%; padding: 12px 16px;
  background: #FFF9EE; border: 2px solid rgba(255,149,0,.5); border-radius: var(--radius);
  font-size: 12px; font-weight: 800; color: rgba(0,0,0,.55);
  line-height: 1.8; text-align: center;
}
.end-stream-note strong { color: var(--coral); }

/* CATEGORY SCREEN */
.category-grid {
  width: 100%; display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 520px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card-random-all { grid-column: 1 / -1; }
.category-card {
  position: relative; overflow: hidden;
  border: var(--border); border-radius: var(--radius-lg);
  padding: 22px 20px 20px; cursor: pointer; text-align: left;
  box-shadow: var(--shadow-lg);
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .14s;
  background: var(--white);
  display: flex; flex-direction: column; gap: 10px; font-family: var(--font);
}
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--cc, var(--coral));
}
.category-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 11px 13px 0 var(--ink); }
.category-card:active { transform: translate(5px, 5px) scale(.97); box-shadow: 2px 2px 0 var(--ink); }
.category-card-random-all .cat-emoji { font-size: 32px; }
.cat-emoji { font-size: 36px; line-height: 1; }
.cat-name { font-size: clamp(18px, 3.5vw, 24px); font-weight: 900; color: var(--ink); line-height: 1.2; }
.cat-desc { font-size: 12px; font-weight: 700; color: rgba(0,0,0,0.45); line-height: 1.5; }
.cat-genre-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cat-pill {
  background: var(--cc, var(--coral)); border: 2px solid var(--ink); border-radius: 100px;
  padding: 3px 10px; font-size: 11px; font-weight: 800; color: var(--ink); opacity: 0.85;
}

/* GENRE SCREEN */
.genre-section-label {
  width: 100%; font-size: 11px; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(0,0,0,0.4); padding: 0 4px;
}
.btn-random-genre {
  width: 100%; padding: 18px 28px;
  border: var(--border); border-radius: var(--radius-lg);
  cursor: pointer; font-family: var(--font);
  font-size: clamp(16px, 3vw, 20px); font-weight: 900;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .14s;
  position: relative; overflow: hidden;
}
.btn-random-genre::after {
  content: '✦'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 18px; animation: starSpin 2s linear infinite;
}
.btn-random-genre:hover  { transform: translateY(-5px); box-shadow: 9px 11px 0 var(--ink); }
.btn-random-genre:active { transform: translate(5px,5px); box-shadow: 2px 2px 0 var(--ink); }
.random-dice { font-size: 28px; animation: diceSpin 3s linear infinite; }
@keyframes diceSpin {
  0%,100% { transform: rotate(0deg) scale(1); }
  50%     { transform: rotate(20deg) scale(1.15); }
}
.random-label-wrap { display: flex; flex-direction: column; gap: 2px; }
.random-main { font-size: clamp(16px, 3vw, 20px); font-weight: 900; }
.random-sub  { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: rgba(0,0,0,0.45); }
.genre-grid {
  width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 520px) { .genre-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 680px) { .genre-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.genre-card {
  position: relative; overflow: hidden;
  border: var(--border); border-radius: var(--radius);
  padding: 18px 10px 16px; cursor: pointer; text-align: center;
  box-shadow: var(--shadow);
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .14s;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: var(--font);
}
.genre-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--gc, var(--coral));
}
.genre-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gc, var(--coral)); opacity: 0; transition: opacity .15s;
}
.genre-card:hover             { transform: translateY(-6px) scale(1.04); box-shadow: 9px 11px 0 var(--ink); }
.genre-card:hover::after      { opacity: 0.09; }
.genre-card:active            { transform: translate(5px, 5px) scale(.97); box-shadow: 2px 2px 0 var(--ink); }
.genre-emoji {
  font-size: clamp(26px, 5vw, 36px); line-height: 1; display: block;
  transition: transform .2s cubic-bezier(.34,1.8,.64,1); position: relative; z-index: 1;
}
.genre-card:hover .genre-emoji { transform: scale(1.3) rotate(-8deg); }
.genre-name {
  font-size: clamp(11px, 2vw, 14px); font-weight: 900; color: var(--ink); line-height: 1.3;
  position: relative; z-index: 1;
}
.genre-count {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: rgba(0,0,0,.4); text-transform: uppercase; position: relative; z-index: 1;
}

/* PROGRESS */
.progress-wrap { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; }
.progress-dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dot {
  width: 15px; height: 15px; border-radius: 50%; border: var(--border);
  background: var(--bg); transition: background .3s, transform .3s;
}
.dot.done    { background: var(--coral); transform: scale(1.15); }
.dot.current { background: var(--yellow); transform: scale(1.25); animation: dotPop .6s cubic-bezier(.34,1.8,.64,1) forwards; }
@keyframes dotPop { 0% { transform: scale(.5); } 100% { transform: scale(1.25); } }
.q-counter {
  background: var(--ink); color: var(--yellow); font-weight: 900;
  font-size: 13px; padding: 4px 14px; border-radius: 100px; letter-spacing: 2px;
}
.active-genre-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: var(--border); border-radius: 100px;
  padding: 5px 14px 5px 10px; font-size: 12px; font-weight: 900; box-shadow: var(--shadow-sm);
}

/* QUESTION */
.q-wrap { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.question-card {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px);
  text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.question-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(
    90deg, var(--coral) 0, var(--coral) 20px, var(--yellow) 20px, var(--yellow) 40px,
    var(--mint) 40px, var(--mint) 60px, var(--sky) 60px, var(--sky) 80px,
    var(--pink) 80px, var(--pink) 100px);
}
.question-card::after {
  content: '？'; position: absolute; right: -8px; bottom: -12px;
  font-size: 80px; font-weight: 900; color: rgba(0,0,0,.04); line-height: 1; pointer-events: none;
}
.question-num-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); border: var(--border); border-radius: 100px;
  padding: 4px 14px; font-size: 12px; font-weight: 900;
  letter-spacing: 2px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.question-text {
  font-size: clamp(22px, 5vw, 36px); font-weight: 900;
  line-height: 1.45; color: var(--ink); white-space: pre-line;
}
.vs-label {
  margin-top: 14px; display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 6px;
  color: rgba(0,0,0,.35); text-transform: uppercase;
}
.choices { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-choice {
  position: relative; overflow: hidden;
  padding: clamp(22px, 4vw, 36px) clamp(16px, 3vw, 24px);
  border: var(--border); border-radius: var(--radius-lg); cursor: pointer;
  font-family: var(--font); font-size: clamp(15px, 3vw, 20px); font-weight: 900;
  line-height: 1.4; text-align: center; color: var(--ink);
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
}
.choice-label { display: block; font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.choice-body  { display: block; }
.btn-a { background: var(--sky);  box-shadow: var(--shadow-lg); }
.btn-b { background: var(--pink); box-shadow: var(--shadow-lg); }
.btn-choice:hover  { transform: translateY(-6px) scale(1.03); box-shadow: 9px 12px 0 var(--ink); }
.btn-choice:active { transform: translate(5px, 5px) scale(.97); box-shadow: 2px 2px 0 var(--ink); }
.q-wrap.slide-out { animation: slideOut .28s cubic-bezier(.4,0,.2,1) forwards; }
.q-wrap.slide-in  { animation: slideIn  .38s cubic-bezier(.34,1.4,.64,1) forwards; }
@keyframes slideOut { 0%{opacity:1;transform:translateX(0) rotate(0deg);} 100%{opacity:0;transform:translateX(-60px) rotate(-3deg);} }
@keyframes slideIn  { 0%{opacity:0;transform:translateX(60px) rotate(3deg) scale(.95);} 100%{opacity:1;transform:none;} }

/* ══ RESULT SCREEN ══ */
#screen-result {
  max-height: 94vh; overflow-y: auto;
  scrollbar-width: none; padding-bottom: 12px;
}
#screen-result::-webkit-scrollbar { display: none; }

/* ── VIEWER REVEAL VIEW ── */
#reveal-view {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}

.reveal-progress-row {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.reveal-prog-dots { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.reveal-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink);
  background: var(--bg); transition: background .3s, transform .3s, box-shadow .3s;
}
.reveal-dot.done {
  background: var(--coral); transform: scale(1.1);
}
.reveal-dot.current {
  background: var(--yellow); transform: scale(1.3);
  animation: dotPop .6s cubic-bezier(.34,1.8,.64,1) forwards;
  box-shadow: 0 0 0 4px rgba(255,224,51,0.35);
}

/* Genre pill */
.reveal-genre-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: var(--border); border-radius: 100px;
  padding: 5px 14px 5px 10px; font-size: 12px; font-weight: 900; box-shadow: var(--shadow-sm);
}

/* Main Reveal Card */
.reveal-card {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  text-align: center;
}
.reveal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(
    90deg, var(--coral) 0, var(--coral) 20px, var(--yellow) 20px, var(--yellow) 40px,
    var(--mint) 40px, var(--mint) 60px, var(--sky) 60px, var(--sky) 80px,
    var(--pink) 80px, var(--pink) 100px);
}

@keyframes revealCardIn {
  0%   { opacity: 0; transform: translateX(90px) rotate(5deg) scale(.9); }
  100% { opacity: 1; transform: none; }
}
@keyframes revealCardOut {
  0%   { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-90px) rotate(-5deg) scale(.9); }
}
.reveal-card.card-in  { animation: revealCardIn  .45s cubic-bezier(.34,1.3,.64,1) forwards; }
.reveal-card.card-out { animation: revealCardOut .22s cubic-bezier(.4,0,.2,1) forwards; }

.reveal-q-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); border: var(--border); border-radius: 100px;
  padding: 5px 18px; font-size: 13px; font-weight: 900; letter-spacing: 2px;
  box-shadow: var(--shadow-sm); margin-top: 4px;
}
@keyframes badgePop {
  0% { transform: scale(0) rotate(-12deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.badge-pop { animation: badgePop .4s cubic-bezier(.34,1.8,.64,1) .1s both; }

.reveal-question-text {
  font-size: clamp(20px, 4.5vw, 32px); font-weight: 900;
  line-height: 1.45; color: var(--ink);
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}
.fade-up-1 { animation: fadeUp .38s ease .2s both; }
.fade-up-2 { animation: fadeUp .38s ease .3s both; }
.fade-up-3 { animation: fadeUp .38s ease .42s both; }

.reveal-vs-label {
  font-size: 11px; font-weight: 800; letter-spacing: 6px;
  color: rgba(0,0,0,.32);
}

/* ── FLIP CARD ── */
.reveal-flip-wrap {
  width: 100%;
  perspective: 1200px;
}
.reveal-flip-inner {
  width: 100%; min-height: 240px;
  position: relative; transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  border-radius: var(--radius); border: var(--border);
  box-shadow: var(--shadow-lg);
}
.reveal-flip-inner.flipped { transform: rotateY(180deg); }
.reveal-flip-front,
.reveal-flip-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: calc(var(--radius) - 2px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
.reveal-flip-front {
  background: repeating-linear-gradient(
    -45deg,
    #f0f0f0 0, #f0f0f0 12px,
    #f8f8f8 12px, #f8f8f8 24px);
}
.reveal-flip-front-mark {
  font-size: 72px; font-weight: 900;
  color: rgba(0,0,0,0.12); line-height: 1; user-select: none;
  animation: markPulse 1.2s ease-in-out infinite;
}
@keyframes markPulse {
  0%,100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.06) rotate(2deg); }
}

/* ── 視聴者投票結果フリップ裏面 ── */
.reveal-flip-back {
  transform: rotateY(180deg);
  background: var(--white);
  gap: 10px; padding: 18px 20px;
  align-items: stretch;
}
.reveal-vote-inner {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.reveal-streamer-badge {
  display: inline-block; align-self: center;
  padding: 4px 14px; border: 2px solid var(--ink); border-radius: 100px;
  font-size: 12px; font-weight: 900;
}
.reveal-vote-row {
  display: flex; align-items: center; gap: 8px;
}
.reveal-vote-label {
  font-size: 13px; font-weight: 900; padding: 3px 8px;
  border: 2px solid var(--ink); border-radius: 6px; flex-shrink: 0; min-width: 28px; text-align: center;
}
.reveal-vote-label-a { background: var(--sky); }
.reveal-vote-label-b { background: var(--pink); }
.reveal-vote-bar-bg {
  flex: 1; height: 26px; background: #f0f0f0;
  border: 2px solid var(--ink); border-radius: 100px; overflow: hidden;
}
.reveal-vote-bar-fill {
  height: 100%; border-radius: 100px; width: 0%;
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.reveal-fill-a { background: var(--sky); }
.reveal-fill-b { background: var(--pink); }
.reveal-vote-pct { font-size: 13px; font-weight: 900; min-width: 40px; text-align: right; }
.reveal-vote-count { font-size: 10px; color: rgba(0,0,0,.4); font-weight: 700; min-width: 34px; }
.reveal-result-label {
  text-align: center; font-size: 12px; font-weight: 900; padding-top: 2px;
}
/* アニメーション: 裏面コンテンツ */
@keyframes ansIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}
.reveal-ans-in { animation: ansIn .4s ease .28s both; }

/* ── WAIT-RESULT SCREEN ── */
.wait-result-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: 100%; max-width: 480px;
}
.wait-title-tag {
  background: var(--ink); color: var(--yellow);
  border-radius: 100px; padding: 8px 28px;
  font-size: clamp(13px, 3vw, 16px); font-weight: 900;
  letter-spacing: 3px; box-shadow: var(--shadow);
}
.wait-counter-card {
  width: 100%;
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.wait-counter-label {
  font-size: 13px; font-weight: 900; letter-spacing: 3px;
  color: rgba(0,0,0,.4); text-transform: uppercase;
}
.wait-counter-num-row {
  display: flex; align-items: baseline; gap: 8px; justify-content: center;
}
.wait-counter-num {
  font-size: clamp(72px, 18vw, 100px); font-weight: 900; line-height: 1;
  color: var(--coral); letter-spacing: -0.04em;
  animation: numPop .35s cubic-bezier(.34,1.8,.64,1);
}
@keyframes numPop {
  0%   { transform: scale(0.7); }
  100% { transform: scale(1); }
}
.wait-counter-unit {
  font-size: clamp(20px, 5vw, 28px); font-weight: 900; color: var(--ink);
}
.wait-counter-sub {
  font-size: 13px; font-weight: 700; color: rgba(0,0,0,.5);
}
.wait-comment-card {
  width: 100%;
  background: var(--yellow); border: var(--border); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 12px;
}
.wait-comment-icon { font-size: 28px; flex-shrink: 0; }
.wait-comment-body { display: flex; flex-direction: column; gap: 4px; }
.wait-comment-title {
  font-size: clamp(14px, 3vw, 16px); font-weight: 900; color: var(--ink); line-height: 1.4;
}
.wait-comment-sub {
  font-size: 12px; font-weight: 700; color: rgba(0,0,0,.55); line-height: 1.5;
}

/* ── NEXT BUTTON ── */
.btn-reveal-next {
  padding: 20px 60px; font-size: clamp(17px, 3.5vw, 22px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--coral); color: var(--white); box-shadow: var(--shadow-lg);
  letter-spacing: .04em; position: relative; overflow: hidden;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s,
              opacity .35s ease, translate .35s ease;
}
.btn-reveal-next.hidden-btn {
  opacity: 0; translate: 0 24px; pointer-events: none;
}
.btn-reveal-next:hover  { transform: translateY(-5px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.btn-reveal-next:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }

/* ── SUMMARY VIEW ── */
#summary-view {
  width: 100%; display: none; flex-direction: column;
  align-items: center; gap: 18px;
}
.summary-header {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.summary-title-big {
  font-size: clamp(32px, 7vw, 52px); font-weight: 900;
  animation: titleWobble 3s ease-in-out infinite;
}
.summary-subtitle {
  background: var(--ink); color: var(--yellow); border-radius: 100px;
  padding: 6px 20px; font-size: 12px; font-weight: 900; letter-spacing: 3px;
}
.summary-list {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
  max-height: 50vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  padding: 4px 2px;
}
.summary-list::-webkit-scrollbar { width: 5px; }
.summary-list::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 10px; }
.summary-item {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
@keyframes summaryItemIn {
  0% { opacity: 0; transform: translateX(30px) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
.summary-item-in { animation: summaryItemIn .4s cubic-bezier(.34,1.3,.64,1) both; }

.summary-item-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.summary-q-num-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 2px; color: rgba(0,0,0,.4);
}
.summary-streamer-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 900; padding: 3px 10px;
  border: 2px solid var(--ink); border-radius: 8px;
}
.summary-streamer-badge.badge-a { background: var(--sky); }
.summary-streamer-badge.badge-b { background: var(--pink); }
.summary-q-text {
  font-size: 14px; font-weight: 900; color: var(--ink); line-height: 1.4;
}
.summary-vote-wrap { display: flex; flex-direction: column; gap: 6px; }
.summary-vote-row  { display: flex; align-items: center; gap: 8px; }
.summary-vote-label {
  font-size: 12px; font-weight: 900; width: 20px; text-align: center;
  padding: 2px 6px; border: 2px solid var(--ink); border-radius: 6px; flex-shrink: 0;
}
.summary-vote-label-a { background: var(--sky); }
.summary-vote-label-b { background: var(--pink); }
.summary-vote-bar-bg {
  flex: 1; height: 22px; background: #f0f0f0;
  border: 2px solid var(--ink); border-radius: 100px; overflow: hidden;
}
.summary-vote-bar-fill {
  height: 100%; border-radius: 100px;
  transition: width 1s cubic-bezier(.22,1,.36,1); width: 0%;
}
.summary-fill-a { background: var(--sky); }
.summary-fill-b { background: var(--pink); }
.summary-vote-pct { font-size: 12px; font-weight: 900; min-width: 40px; text-align: right; color: rgba(0,0,0,.6); }
.summary-vote-count { font-size: 10px; color: rgba(0,0,0,.35); font-weight: 700; }
.summary-choice-text {
  font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.35;
}
.summary-tie-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 100px;
  padding: 3px 12px; font-size: 11px; font-weight: 900;
}
.summary-no-vote {
  font-size: 12px; font-weight: 700; color: rgba(0,0,0,.35); text-align: center;
  padding: 8px;
}
.summary-total-voters {
  background: var(--ink); color: var(--yellow); border-radius: 100px;
  padding: 6px 20px; font-size: 12px; font-weight: 900; letter-spacing: 2px;
}

/* Effects */
.confetti { position: fixed; pointer-events: none; z-index: 200; font-size: 18px; animation: confettiFall .9s ease-out forwards; }
@keyframes confettiFall { 0%{opacity:1;transform:translateY(0) rotate(0deg) scale(1);} 100%{opacity:0;transform:translateY(-80px) rotate(720deg) scale(0);} }
.flash { position: fixed; inset: 0; z-index: 100; pointer-events: none; animation: flashPop .3s ease-out forwards; }
@keyframes flashPop { 0%{opacity:.3;} 100%{opacity:0;} }

/* Result action buttons */
.btn-retry {
  padding: 16px 40px; font-size: clamp(15px, 3vw, 18px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--mint); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .12s, box-shadow .12s;
}
.btn-change-genre {
  padding: 16px 40px; font-size: clamp(15px, 3vw, 18px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .12s, box-shadow .12s;
}
.btn-retry:hover, .btn-change-genre:hover { transform: translateY(-4px) rotate(1deg); box-shadow: 9px 9px 0 var(--ink); }
.btn-retry:active, .btn-change-genre:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }
.btn-viewer-stats {
  padding: 16px 40px; font-size: clamp(15px, 3vw, 18px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--purple); color: var(--white); box-shadow: var(--shadow-lg);
  transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden;
}
.btn-viewer-stats::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 2.2s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.btn-viewer-stats:hover  { transform: translateY(-4px) rotate(1deg); box-shadow: 9px 9px 0 var(--ink); }
.btn-viewer-stats:active { transform: translate(5px,5px); box-shadow: 2px 2px 0 var(--ink); }

/* ══ VIEWER STATS SCREEN ══ */
#screen-viewer-stats {
  max-width: 760px; max-height: 94vh;
  overflow-y: auto; scrollbar-width: none; padding-bottom: 12px;
}
#screen-viewer-stats::-webkit-scrollbar { display: none; }
.vstats-card {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
}
.vstats-center { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.vstats-loading-text { font-size: clamp(16px,3vw,20px); font-weight: 900; line-height: 1.5; }
.vstats-loading-sub  { font-size: 13px; font-weight: 700; color: rgba(0,0,0,.45); line-height: 1.6; }
@keyframes spin { 100%{ transform: rotate(360deg); } }
.vstats-title-tag {
  display: inline-block;
  background: var(--ink); color: var(--purple);
  border-radius: 100px; padding: 8px 28px;
  font-size: clamp(14px,3vw,18px); font-weight: 900;
  letter-spacing: 3px; box-shadow: var(--shadow);
  animation: tagPop .5s cubic-bezier(.34,1.8,.64,1);
}
@keyframes tagPop { 0%{transform:scale(0) rotate(-5deg);} 100%{transform:scale(1) rotate(0deg);} }
.vstats-summary-card {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.vstats-gauge-label { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: rgba(0,0,0,.4); }
.vstats-gauge-outer {
  width: 100%; background: #f0f0f0; border: var(--border);
  border-radius: 100px; padding: 5px; box-shadow: var(--shadow); overflow: hidden;
}
.vstats-gauge-inner {
  height: 28px; border-radius: 100px; width: 0%;
  background: var(--purple);
  transition: width 1.8s cubic-bezier(.22,1,.36,1);
  position: relative; overflow: hidden;
}
.vstats-gauge-inner::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.15) 0, rgba(255,255,255,.15) 8px, transparent 8px, transparent 16px);
  animation: gaugeStripes 1s linear infinite;
}
@keyframes gaugeStripes { 0%{background-position:0 0} 100%{background-position:24px 0} }
.vstats-percent-row { display: flex; align-items: center; gap: 8px; justify-content: center; }
.vstats-percent-num { font-size: clamp(64px,16vw,100px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.vstats-percent-sign { font-size: clamp(28px,7vw,44px); font-weight: 900; vertical-align: super; }
.vstats-emoji { font-size: clamp(40px,10vw,60px); line-height: 1; animation: emojiPop .5s cubic-bezier(.34,1.8,.64,1) both; animation-delay: 1.6s; opacity: 0; }
@keyframes emojiPop { 0%{opacity:0;transform:scale(0) rotate(-30deg);} 100%{opacity:1;transform:scale(1);} }
.vstats-msg-title { font-size: clamp(16px,3.5vw,22px); font-weight: 900; text-align: center; }
.vstats-msg-sub   { font-size: 13px; font-weight: 700; color: rgba(0,0,0,.5); text-align: center; line-height: 1.6; }
.vstats-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
.vstats-badge {
  background: var(--bg); border: var(--border); border-radius: var(--radius);
  padding: 10px 16px; text-align: center; box-shadow: var(--shadow-sm); flex: 1; min-width: 90px;
}
.vstats-badge-num   { font-size: 26px; font-weight: 900; display: block; line-height: 1; }
.vstats-badge-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; color: rgba(0,0,0,.4); margin-top: 2px; display: block; }
.vstats-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(0,0,0,.4); text-align: center;
}
.vstats-q-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  animation: cardSlideIn .4s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes cardSlideIn { 0%{opacity:0;transform:translateY(16px)} 100%{opacity:1;transform:none} }
.vstats-q-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.vstats-q-card.matched::before { background: var(--mint); }
.vstats-q-card.diffed::before  { background: var(--coral); }
.vstats-q-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vstats-q-num    { font-size: 10px; font-weight: 800; letter-spacing: 3px; color: rgba(0,0,0,.4); }
.vstats-match-badge {
  font-size: 11px; font-weight: 900; padding: 3px 12px;
  border: 2px solid var(--ink); border-radius: 100px;
}
.vstats-match-badge.match { background: var(--mint); }
.vstats-match-badge.diff  { background: var(--coral); color: var(--white); }
.vstats-q-text   { font-size: 14px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.vstats-streamer-ans {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px;
  padding: 3px 10px; font-size: 12px; font-weight: 900;
}
.vstats-vote-wrap { display: flex; flex-direction: column; gap: 6px; }
.vstats-vote-row  { display: flex; align-items: center; gap: 8px; }
.vstats-vote-label {
  font-size: 12px; font-weight: 900; width: 20px; text-align: center;
  padding: 2px 6px; border: 2px solid var(--ink); border-radius: 6px; flex-shrink: 0;
}
.vote-label-a { background: var(--sky); }
.vote-label-b { background: var(--pink); }
.vstats-vote-bar-bg {
  flex: 1; height: 22px; background: #f0f0f0;
  border: 2px solid var(--ink); border-radius: 100px; overflow: hidden;
}
.vstats-vote-bar-fill {
  height: 100%; border-radius: 100px;
  transition: width 1s cubic-bezier(.22,1,.36,1); width: 0%;
}
.fill-a { background: var(--sky); }
.fill-b { background: var(--pink); }
.vstats-vote-pct { font-size: 12px; font-weight: 900; min-width: 40px; text-align: right; color: rgba(0,0,0,.6); }
.vstats-vote-count { font-size: 10px; color: rgba(0,0,0,.35); font-weight: 700; }
.btn-back-stats {
  padding: 14px 36px; font-size: clamp(14px,3vw,17px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .12s, box-shadow .12s;
}
.btn-back-stats:hover  { transform: translateY(-3px); box-shadow: 7px 9px 0 var(--ink); }
.btn-back-stats:active { transform: translate(5px,5px); box-shadow: 2px 2px 0 var(--ink); }
.share-card {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 22px;
}
.share-url-label {
  font-size: 11px; font-weight: 800; letter-spacing: 4px;
  color: rgba(0,0,0,.4); margin-bottom: 10px;
}
.share-url-box {
  display: flex; gap: 10px; align-items: center;
  background: #F5F0E8; border: var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}
.share-url-text {
  flex: 1; font-size: clamp(12px, 2.5vw, 14px); font-weight: 700;
  color: var(--ink); word-break: break-all; line-height: 1.4;
  user-select: all;
}
.btn-copy {
  flex-shrink: 0; padding: 10px 20px; font-size: 14px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px;
  cursor: pointer; background: var(--yellow); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}
.btn-copy:hover  { transform: translateY(-2px); box-shadow: 5px 6px 0 var(--ink); }
.btn-copy:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-copy.copied { background: var(--mint); }
 
.share-steps-wrap { display: flex; flex-direction: column; gap: 16px; }
.share-step {
  display: flex; align-items: flex-start; gap: 14px;
  animation: shareStepIn .4s cubic-bezier(.34,1.3,.64,1) both;
}
.share-step:nth-child(1) { animation-delay: .05s; }
.share-step:nth-child(2) { animation-delay: .12s; }
.share-step:nth-child(3) { animation-delay: .19s; }
@keyframes shareStepIn {
  0%   { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: none; }
}
.share-step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: var(--border); font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); color: var(--white);
}
.share-step-num.n1 { background: var(--coral); }
.share-step-num.n2 { background: var(--sky); }
.share-step-num.n3 { background: var(--mint); }
.share-step-body { display: flex; flex-direction: column; gap: 3px; padding-top: 7px; }
.share-step-title { font-size: clamp(14px, 3vw, 17px); font-weight: 900; color: var(--ink); }
.share-step-sub   { font-size: 12px; font-weight: 700; color: rgba(0,0,0,.45); line-height: 1.5; }
 
.btn-share-next {
  width: 100%; padding: 22px; font-size: clamp(18px, 3.5vw, 22px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--coral); color: var(--white); box-shadow: var(--shadow-lg);
  letter-spacing: .04em; position: relative; overflow: hidden;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
}
.btn-share-next::after {
  content: '✦'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 18px; animation: starSpin 2s linear infinite;
}
.btn-share-next:hover  { transform: translateY(-5px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.btn-share-next:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }
/* ══ MODE SELECT ══ */
.mode-select-wrap {
  width: 100%; display: flex; flex-direction: column; gap: 16px;
}
.mode-card {
  width: 100%; padding: 24px 28px; border: var(--border); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow); cursor: pointer;
  display: flex; align-items: center; gap: 20px;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
  text-align: left; font-family: var(--font); position: relative; overflow: hidden;
}
.mode-card:hover  { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mode-card:active { transform: translate(3px,3px); box-shadow: var(--shadow-sm); }
.mode-card-normal.selected {
  background: rgba(63, 188, 244, 0.12);
  outline: 3px solid var(--sky);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.mode-card-predict.selected {
  background: rgba(255, 87, 87, 0.08);
  outline: 3px solid var(--coral);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.mode-card-emoji { font-size: 44px; flex-shrink: 0; }
.mode-card-body  { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mode-card-title { font-size: clamp(16px, 3.5vw, 20px); font-weight: 900; color: var(--ink); }
.mode-card-desc  { font-size: 13px; font-weight: 700; color: rgba(0,0,0,.5); line-height: 1.5; }
.mode-card-badge {
  position: absolute; top: 12px; right: 14px;
  font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 3px 10px;
  border: 2px solid var(--ink); border-radius: 100px;
}
.mode-card-normal   { border-left: 8px solid var(--sky); }
.mode-card-predict  { border-left: 8px solid var(--coral); }
.mode-card-normal .mode-card-badge  { background: var(--sky);   color: var(--ink); }
.mode-card-predict .mode-card-badge { background: var(--coral); color: var(--white); }
.mode-select-next {
  width: 100%; padding: 20px; font-size: clamp(16px, 3.5vw, 20px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
}
.mode-select-next:hover  { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mode-select-next:active { transform: translate(3px,3px); box-shadow: var(--shadow-sm); }
.share-hint {
  font-size: 12px; font-weight: 700; color: rgba(0,0,0,.4); text-align: center;
}

/* Summary loading spinner */
.summary-loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px;
}
.summary-loading-spinner {
  font-size: 36px; animation: spin 1s linear infinite;
}
.summary-loading-text {
  font-size: 14px; font-weight: 700; color: rgba(0,0,0,.45);
}
/* ══ CUSTOM SCREEN ══ */
#screen-custom {
  max-width: 760px; max-height: 94vh;
  overflow-y: auto; scrollbar-width: none; padding-bottom: 80px;
}
#screen-custom::-webkit-scrollbar { display: none; }

.custom-add-card {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 20px 20px 16px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px;
}
.custom-field-label {
  font-size: 11px; font-weight: 800; letter-spacing: 3px;
  color: rgba(0,0,0,.4); margin-bottom: 4px;
}
.custom-input {
  width: 100%; padding: 12px 16px; font-size: 15px; font-weight: 700;
  font-family: var(--font); border: var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm);
  outline: none; transition: box-shadow .15s;
}
.custom-input:focus { box-shadow: 5px 5px 0 var(--ink); }
.custom-ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.custom-input-a { border-left: 5px solid var(--sky); }
.custom-input-b { border-left: 5px solid var(--pink); }
.btn-add-q {
  width: 100%; padding: 14px; font-size: 16px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--mint); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.btn-add-q:hover  { transform: translateY(-3px); box-shadow: 7px 8px 0 var(--ink); }
.btn-add-q:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-add-q:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

.custom-q-count-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px;
}
.custom-q-count-label { font-size: 12px; font-weight: 800; color: rgba(0,0,0,.45); }
.custom-q-count-num   { font-size: 13px; font-weight: 900; background: var(--ink); color: var(--yellow);
  border-radius: 100px; padding: 3px 14px; }

.custom-q-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.custom-q-item {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  animation: summaryItemIn .35s cubic-bezier(.34,1.3,.64,1) both;
}
.custom-q-item-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.custom-q-num  { font-size: 10px; font-weight: 800; letter-spacing: 3px; color: rgba(0,0,0,.4); }
.custom-q-btns { display: flex; gap: 6px; }
.btn-edit-q, .btn-del-q {
  padding: 4px 12px; font-size: 12px; font-weight: 900; font-family: var(--font);
  border: 2px solid var(--ink); border-radius: 100px; cursor: pointer;
  transition: transform .12s, box-shadow .12s; box-shadow: 2px 2px 0 var(--ink);
}
.btn-edit-q { background: var(--yellow); color: var(--ink); }
.btn-del-q  { background: var(--coral);  color: var(--white); }
.btn-edit-q:hover, .btn-del-q:hover { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--ink); }
.btn-edit-q:active,.btn-del-q:active{ transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.custom-q-text { font-size: 15px; font-weight: 900; color: var(--ink); }
.custom-q-choices {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.custom-q-choice {
  font-size: 12px; font-weight: 800; padding: 4px 12px;
  border: 2px solid var(--ink); border-radius: 8px;
}
.custom-q-choice-a { background: var(--sky); }
.custom-q-choice-b { background: var(--pink); }

.btn-start-custom {
  width: 100%; padding: 30px; font-size: clamp(20px, 3.5vw, 20px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--coral); color: var(--white); box-shadow: var(--shadow-lg);
  letter-spacing: .04em; position: relative; overflow: hidden;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
}
.btn-start-custom::after {
  content: '✦'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 18px; animation: starSpin 2s linear infinite;
}
.btn-start-custom:hover  { transform: translateY(-5px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.btn-start-custom:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }
.btn-start-custom:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: var(--shadow-lg); }

.custom-empty-hint {
  text-align: center; font-size: 13px; font-weight: 700;
  color: rgba(0,0,0,.35); padding: 16px; border: 2px dashed rgba(0,0,0,.2);
  border-radius: var(--radius);
}

/* ── 確認オーバーレイ ── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.confirm-overlay.active {
  opacity: 1; pointer-events: all;
}
.confirm-box {
  background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-lg); max-width: 400px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  transform: scale(0.88);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
}
.confirm-overlay.active .confirm-box {
  transform: scale(1);
}
.confirm-icon { font-size: 48px; line-height: 1; }
.confirm-title {
  font-size: clamp(18px,4vw,22px); font-weight: 900; color: var(--ink);
  text-align: center; line-height: 1.4;
}
.confirm-sub {
  font-size: 13px; font-weight: 700; color: rgba(0,0,0,.45);
  text-align: center; line-height: 1.7;
}
.confirm-btns { display: flex; gap: 12px; width: 100%; }
.btn-confirm-ok {
  flex: 1; padding: 16px; font-size: 16px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px;
  cursor: pointer; background: var(--coral); color: var(--white);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn-confirm-ok:hover  { transform: translateY(-3px); box-shadow: 7px 8px 0 var(--ink); }
.btn-confirm-ok:active { transform: translate(4px,4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-confirm-cancel {
  flex: 1; padding: 16px; font-size: 16px; font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px;
  cursor: pointer; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn-confirm-cancel:hover  { transform: translateY(-3px); box-shadow: 7px 8px 0 var(--ink); }
.btn-confirm-cancel:active { transform: translate(4px,4px); box-shadow: 2px 2px 0 var(--ink); }

/* ══ PREDICT MODE ══ */
.predict-mode-tag {
  display: none;
  background: var(--coral); color: var(--white);
  border: var(--border); border-radius: 100px;
  padding: 7px 20px; font-size: 12px; font-weight: 900; letter-spacing: 1px;
  text-align: center; box-shadow: var(--shadow-sm);
}
#screen-game.predict-active .predict-mode-tag { display: block; }

/* 回答後：両方のボタンを同じ濃度でグレーアウト（どちらを選んだか分からない） */
#screen-game.predict-active #choices-wrap.answered .btn-choice {
  opacity: 0.38;
  pointer-events: none;
  transform: none !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
  filter: grayscale(40%);
}

.predict-answered-badge {
  display: none;
  justify-content: center;
  margin-top: 16px;
}
.predict-answered-badge.show { display: flex; }
.predict-answered-inner {
  background: var(--lime); border: var(--border); border-radius: 100px;
  padding: 12px 32px; font-size: 15px; font-weight: 900; color: var(--ink);
  box-shadow: var(--shadow-sm);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.btn-predict-next {
  display: none;
  width: 100%; padding: 20px; font-size: clamp(16px, 3vw, 19px); font-weight: 900;
  font-family: var(--font); border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
}
#screen-game.predict-active .btn-predict-next { display: block; }
.btn-predict-next:disabled {
  opacity: .35; cursor: not-allowed;
  transform: none !important; box-shadow: var(--shadow) !important;
}
.btn-predict-next:not(:disabled):hover  { transform: translateY(-5px); box-shadow: 7px 10px 0 var(--ink); }
.btn-predict-next:not(:disabled):active { transform: translate(4px,4px); box-shadow: 2px 2px 0 var(--ink); }

/* ══ COMPAT CHART ══ */
.btn-compat-chart { background: var(--pink) !important; }

/* ══ COMPAT CHART SCREEN ══ */
#screen-compat-chart {
  max-height: 94vh; overflow-y: auto;
  scrollbar-width: none; padding-bottom: 12px;
}
#screen-compat-chart::-webkit-scrollbar { display: none; }

.compat-chart-container {
  width: 100%; display: flex; flex-direction: column; gap: 16px;
  padding: 4px 0 16px;
}
.compat-chart-empty {
  text-align: center; padding: 40px 20px;
  font-size: 14px; font-weight: 700; color: rgba(0,0,0,.45);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.compat-chart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px;
}
.compat-chart-title-tag {
  background: var(--pink); border: var(--border); border-radius: 100px;
  padding: 6px 16px; font-size: 13px; font-weight: 900; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.compat-chart-count {
  font-size: 13px; font-weight: 800; color: rgba(0,0,0,.45);
}
.compat-chart-svg-wrap {
  width: 100%;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 8px 4px;
}
.compat-stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.compat-stat-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-top: 5px solid var(--stat-color, var(--sky));
}
.compat-stat-label {
  font-size: 11px; font-weight: 900; color: rgba(0,0,0,.45); letter-spacing: .5px;
}
.compat-stat-value {
  font-size: clamp(26px, 6vw, 34px); font-weight: 900; color: var(--ink); line-height: 1;
}
.compat-stat-unit { font-size: 14px; font-weight: 900; }
.compat-stat-value-sm {
  font-size: clamp(26px, 6vw, 34px); font-weight: 900; color: var(--ink);
  text-align: center; line-height: 1;
}

/* ══ GAME TYPE SELECT ══ */
.game-type-select-wrap {
  width: 100%; display: flex; flex-direction: column; gap: 14px;
}
.game-type-card {
  width: 100%; background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow); cursor: pointer; position: relative; text-align: left;
  font-family: var(--font); transition: transform .12s, box-shadow .12s;
}
.game-type-card:hover  { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-type-card:active { transform: translate(5px,5px); box-shadow: 2px 2px 0 var(--ink); }
.game-type-emoji { font-size: 44px; flex-shrink: 0; }
.game-type-body  { flex: 1; }
.game-type-title { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.game-type-desc  { font-size: 13px; font-weight: 700; color: rgba(0,0,0,.5); line-height: 1.5; }

/* ══ BINGO MODE SELECT ══ */
#screen-bingo-mode, #screen-bingo-setup, #screen-bingo-game {
  max-height: 94vh; overflow-y: auto; scrollbar-width: none; padding-bottom: 12px;
}
#screen-bingo-mode::-webkit-scrollbar, #screen-bingo-setup::-webkit-scrollbar, #screen-bingo-game::-webkit-scrollbar { display: none; }

.bingo-mode-section {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.bingo-mode-section-title {
  font-size: 15px; font-weight: 900; color: var(--ink);
}
.bingo-mode-section-desc {
  font-size: 12px; font-weight: 700; color: rgba(0,0,0,.45); line-height: 1.5;
}
.bingo-mode-toggle-row {
  display: flex; gap: 10px; margin-top: 4px;
}
.bingo-toggle-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 16px 10px; font-size: 16px; font-weight: 900;
  background: #f0f0f0; border: var(--border); border-radius: var(--radius);
  cursor: pointer; font-family: var(--font); box-shadow: var(--shadow-sm);
  transition: all .12s;
}
.bingo-toggle-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bingo-toggle-btn:active { transform: translate(2px,2px); box-shadow: none; }
.bingo-toggle-btn.selected { background: var(--yellow); box-shadow: var(--shadow); }
.bingo-toggle-hint {
  font-size: 11px; font-weight: 700; color: rgba(0,0,0,.4);
}
.bingo-toggle-btn.selected .bingo-toggle-hint { color: rgba(0,0,0,.55); }

/* ══ BINGO SETUP ══ */

.bingo-size-select { width: 100%; }
.bingo-size-label {
  font-size: 12px; font-weight: 900; color: rgba(0,0,0,.5);
  letter-spacing: 1px; margin-bottom: 10px;
}
.bingo-size-btns { display: flex; gap: 10px; }
.bingo-size-btn {
  flex: 1; padding: 14px 8px; font-size: 16px; font-weight: 900;
  border: var(--border); border-radius: var(--radius); cursor: pointer;
  background: var(--white); font-family: var(--font);
  box-shadow: var(--shadow-sm); transition: all .12s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bingo-size-btn.selected { background: var(--yellow); box-shadow: var(--shadow); }
.bingo-size-btn:hover { transform: translateY(-2px); }
.bingo-size-hint { font-size: 11px; font-weight: 700; color: rgba(0,0,0,.4); }

.bingo-topic-add-card {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
}
.bingo-topic-input-row {
  display: flex; gap: 10px; margin-top: 10px;
}
.bingo-topic-input-row .custom-input { flex: 1; min-width: 0; }
.bingo-topic-input-row .btn-add-q {
  flex-shrink: 0; width: auto; padding: 12px 18px; font-size: 14px;
}

/* ══ BINGO GAME (HOST) ══ */
.bingo-stats-row {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.bingo-stat-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 10px; text-align: center;
  border-top: 5px solid var(--sky);
}
.bingo-stat-bingo { border-top-color: var(--coral); }
.bingo-stat-num   { font-size: clamp(36px, 8vw, 52px); font-weight: 900; line-height: 1; }
.bingo-stat-label { font-size: 12px; font-weight: 900; color: rgba(0,0,0,.45); margin-top: 4px; }

.bingo-topic-clear-list {
  width: 100%; display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px;
}
.bingo-clear-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm); transition: opacity .25s;
}
.bingo-clear-item.cleared { opacity: 0.45; }
.bingo-clear-text { flex: 1; font-size: 14px; font-weight: 800; }
.bingo-clear-btn {
  padding: 8px 18px; font-size: 13px; font-weight: 900;
  border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--mint); font-family: var(--font);
  box-shadow: var(--shadow-sm); white-space: nowrap; transition: all .12s;
}
.bingo-clear-btn:not(:disabled):hover { transform: translateY(-2px); }
.bingo-clear-btn:disabled {
  background: #e8e8e8; cursor: not-allowed;
  box-shadow: none; border-color: #ccc; color: #999;
}

/* ══ STREAMER CARD SCREENS ══ */
#screen-streamer-card-create, #screen-streamer-place {
  max-height: 94vh; overflow-y: auto; scrollbar-width: none; padding-bottom: 12px;
}
#screen-streamer-card-create::-webkit-scrollbar,
#screen-streamer-place::-webkit-scrollbar { display: none; }

.bingo-create-title { font-size: clamp(22px, 6vw, 32px); font-weight: 900; }
.bingo-create-sub   { font-size: 14px; font-weight: 700; color: rgba(0,0,0,.5); }
.bingo-select-bar {
  width: 100%; text-align: center; font-size: 15px; font-weight: 900;
  background: var(--ink); color: var(--yellow); border-radius: 100px; padding: 8px 24px;
}
.bingo-topic-choices {
  width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.bingo-choice-btn {
  padding: 10px 16px; font-size: 13px; font-weight: 800;
  border: var(--border); border-radius: var(--radius); cursor: pointer;
  background: var(--white); font-family: var(--font); box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.bingo-choice-btn.selected { background: var(--yellow); box-shadow: var(--shadow); transform: scale(1.05); }
.bingo-choice-btn:active { transform: scale(.96); }
.btn-create-card {
  width: 100%; padding: 22px; font-size: 18px; font-weight: 900;
  border: var(--border); border-radius: 100px; cursor: pointer;
  background: var(--coral); color: var(--white); font-family: var(--font);
  box-shadow: var(--shadow-lg); transition: transform .12s, box-shadow .12s;
}
.btn-create-card:hover  { transform: translateY(-4px); }
.btn-create-card:active { transform: translate(5px,5px); box-shadow: 2px 2px 0 var(--ink); }
.btn-create-card:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* ══ BINGO GRID (HOST) ══ */
.bingo-grid-wrap { width: 100%; display: flex; justify-content: center; }
.bingo-grid { display: grid; gap: 6px; width: 100%; max-width: 400px; }
.bingo-grid.size-3 { grid-template-columns: repeat(3, 1fr); }
.bingo-grid.size-5 { grid-template-columns: repeat(5, 1fr); }
.bingo-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: var(--border); border-radius: 12px;
  font-size: clamp(9px, 2.5vw, 13px); font-weight: 800; text-align: center;
  padding: 4px; line-height: 1.2; cursor: default;
  box-shadow: var(--shadow-sm); transition: all .2s;
  word-break: break-all; overflow: hidden;
}
.bingo-cell.available {
  background: var(--yellow); cursor: pointer;
  animation: hostCellPulse .6s ease-in-out infinite alternate;
}
@keyframes hostCellPulse {
  from { box-shadow: var(--shadow-sm); }
  to   { box-shadow: var(--shadow); transform: scale(1.04); }
}
.bingo-cell.marked    { background: var(--coral); color: #fff; cursor: default; animation: none; }
.bingo-cell.bingo-line { background: var(--mint); color: #fff; animation: none; }

/* ── 配置画面 (HOST) ── */
.bingo-place-topics { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bingo-cell.place-empty {
  background: var(--white); border: 3px dashed rgba(0,0,0,.22);
  color: rgba(0,0,0,.15); cursor: pointer;
}
.bingo-cell.place-empty.can-place {
  border-color: var(--coral); background: rgba(255,87,87,.08);
  animation: hostCellPulse .55s ease-in-out infinite alternate;
}
.bingo-cell.place-filled { background: var(--sky); cursor: pointer; transition: background .15s; }
.bingo-cell.place-filled:hover { background: var(--pink); }
.bingo-cell.place-filled.is-active { background: var(--coral); color: #fff; }

/* ── 配信者カード (ゲーム画面内) ── */
.streamer-card-section {
  width: 100%; background: var(--white); border: var(--border);
  border-radius: var(--radius-lg); padding: 16px 16px 20px; box-shadow: var(--shadow);
}
.streamer-card-title {
  font-size: 12px; font-weight: 900; color: rgba(0,0,0,.45);
  letter-spacing: 1px; text-align: center; margin-bottom: 10px;
}
.streamer-bingo-tag {
  margin-top: 12px; text-align: center; font-size: clamp(20px, 5vw, 28px); font-weight: 900;
  background: var(--yellow); border: var(--border); border-radius: var(--radius);
  padding: 10px 20px; box-shadow: var(--shadow);
  animation: achievePop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes achievePop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
