










* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "M PLUS Rounded 1c", sans-serif;
}

:root {
  --accent: #ffd166;
  --bg1: #0f2027;
  --bg2: #203a43;
  --bg3: #2c5364;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(120deg, var(--bg1), var(--bg2), var(--bg3));
  background-size: 400% 400%;
  animation: bgShift 15s ease infinite;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#titleScreen {
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

#titleScreen h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1rem;
  letter-spacing: .05em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}

#titleScreen button {
  padding: .8rem 2.5rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #333;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: .2s;
}
#titleScreen button:hover {
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
  }
}

#setupWrapper {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

#playerList {
  margin: 1.5rem 0;
  width: min(400px, 90vw);
  font-size: 16px
}

.playerInput {
  display: flex;
  gap: .5rem;
  margin-bottom: .6rem;
}

.playerInput input {
  flex: 1;
  padding: .5rem 1rem;
  border-radius: 8px;
  border: none;
}

.ctrlBtns {
  display: flex;
  gap: .5rem;
}

.ctrlBtns button,
.startBtn {
  padding: .6rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--accent);
  color: #333;
  font-weight: 700;
  transition: .2s;
}
.ctrlBtns button:hover {
  transform: translateY(-1px);
}

.startBtn {
  margin-top: .8rem;
  width: 100%;
  opacity: .4;
  
  bottom: 40%;
}
.startBtn.active {
  opacity: 1;
  pointer-events: auto;
}

#threeCanvas {
  display: none;
  position: fixed;
  inset: 0;
  touch-action: none;
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  z-index: 20;
  text-align: center;
  padding: 1.5rem;
}

.modal-content {
  white-space: pre-line;
  font-size: 1.1rem;
  line-height: 1.4;
}

.modal button {
  margin-top: 1rem;
  padding: .5rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #333;
  font-weight: 700;
  cursor: pointer;
}


/* === iOSの自動ズーム回避 === */
input, select, textarea, .playerInput input {
  font-size: 16px !important;  /* 16px以上で拡大しない */
  line-height: 1.2;
  height: 44px;                 /* タップしやすい高さ（任意） */
}

/* ダブルタップズーム回避（ボタン系）*/
button {
  touch-action: manipulation;
}

/* 文字サイズ自動調整の暴走抑止（iOS対策） */
html { -webkit-text-size-adjust: 100%; }


/* ====================== 会話UI（ダイアログレイヤー） ====================== */
.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  pointer-events: auto;   /* ← none から auto に変更。どこでもタップで進めるように */
}


.dialog-bg {
  position: absolute;
  inset: 0;
  background: #000 center/cover no-repeat;
  filter: none;           /* 画像そのまま */
}

.dialog-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto; /* 上：余白 / 中：選択肢 / 下：テキスト */
  align-items: end;
  pointer-events: none;
}

/* --- 選択肢（テキストボックスの上） --- */
.dialog-choices{
  width: min(1000px, 94vw);
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  /* bottom:50%; ←削除 */
  z-index:6;
  display:none;             /* JSで最初は隠しておく */
  pointer-events:auto;      /* ←これが無いとクリックできません */
  gap: 12px;
}
.dialog-choices button {
  border: none;
  border-radius: 12px;
  padding: .9rem 1rem;
  font-weight: auto;
  font-size: 16px;
  background: var(--accent);
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: transform .1s ease, filter .1s ease;
}
.dialog-choices button:hover { transform: translateY(-1px); }


/* --- テキストボックス --- */
.dialog-textbox {
  position: relative;
  pointer-events: auto;
  width: min(1000px, 94vw);
  margin: 0 auto 12px;
  padding: 16px 18px 18px;
  background: #10131a;                 /* 不透明 */
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  color: #fff;
  line-height: 1.6;
  font-size: 16px;
  min-height: 90px;
}
.dialog-name {
  position: absolute;
  top: -14px;
  left: 16px;
  background: var(--accent);
  color: #333;
  font-weight: 900;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* --- 立ち絵（右下寄せ／複数対応） --- */
.dialog-portraits {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + 90px); /* テキストボックス+余白のすぐ上 */
  display: flex;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
  max-width: 92vw;
  flex-wrap: wrap;
  justify-content: center;
}

.dialog-portraits img {
  max-height: clamp(260px, 58vh, 680px); /* 以前より大きく */
  width: auto;
  border-radius: 8px;
  /*box-shadow: 0 8px 24px rgba(0,0,0,.3);*/
  background: transparent; /* ← これで透過PNGが黒抜けしない */
}
@media (max-width: 640px) {
  .dialog-portraits img { max-height: 36vh; }
}



#dayHUD{
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 50;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .03em;

  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}






















/* ========================================
   ゲーム選択メニュー (横スクロール版)
======================================== */

#gameMenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px 16px;
  overflow: hidden; /* 自身からははみ出さないように */
}

.menu-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0 0 24px 8px;
  font-weight: bold;
}

/* 横一列＋横スクロール */
.game-grid {
  display: flex;
  flex-wrap: nowrap;              /* 折り返さない */
  gap: 16px;
  width: 100%;
  overflow-x: auto;               /* 横スクロールを許可 */
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch; /* スマホでヌルっとスクロール */
  scroll-snap-type: x mandatory;  /* カードごとにパチッと止まる（お好み） */
}

/* カード1枚のサイズ・挙動 */
.game-card {
  flex: 0 0 clamp(220px, 60vw, 280px); /* 端末幅に応じて横幅を調整 */
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;       /* スクロールでカードの左端が揃う */
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.game-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.game-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-icon {
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.game-card h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: #333;
  margin-bottom: 8px;
}

.game-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* レスポンシブ微調整（主に余白だけ） */
@media (max-width: 768px) {
  #gameMenu {
    padding: 20px 10px;
  }

  .menu-title {
    margin-left: 4px;
    margin-bottom: 16px;
  }

  .game-grid {
    gap: 12px;
  }
}







/* ======================
   Backボタン
====================== */

.back-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none; /* ゲーム中のみ表示 */
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.1s;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

/* ======================
   Back確認モーダル用ボタン
====================== */

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.modal-buttons button {
  padding: .5rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #333;
  font-weight: 700;
  cursor: pointer;
}












/* ===== Google ログインエリア ===== */
.login-area {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}

#loginStatus {
  font-size: 0.9rem;
  opacity: 0.85;
}


.auth-area {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.9rem;
}

.logout-btn {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}





.simple-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

.simple-modal-inner {
  background: #fff;
  color: #333;
  padding: 20px 24px;
  border-radius: 16px;
  width: min(320px, 90vw);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
}

.simple-modal-inner h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.simple-modal-inner p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

#usernameInput {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

.simple-modal-buttons {
  display: flex;
  justify-content: center;
}

.simple-modal-buttons button {
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  background: #667eea;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

















#judgementAI{
  width: min(1000px, 94vw);
  text-align: center;
}

.judgement-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin: 16px 0 24px;
}

.judgement-actions button,
.room-buttons button,
.room-subpanel button,
#btnStartJudgementGame{
  padding: .7rem 1.2rem;
  border:none;
  border-radius: 12px;
  cursor:pointer;
  background: var(--accent);
  color:#333;
  font-weight: 800;
}

.room-panel, .waiting-room{
  margin-top: 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 16px;
}

.room-buttons{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin-bottom: 12px;
}

.room-subpanel{
  display:grid;
  gap: 10px;
  justify-items:center;
  margin-top: 10px;
}

.checkbox-line{
  display:flex;
  align-items:center;
  gap: 8px;
}

.muted{
  opacity: .8;
  font-size: 14px;
}

.settings-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  align-items:center;
}

.settings-row input{
  width: 120px;
  border-radius: 10px;
  border: none;
  padding: 8px 10px;
}

#btnStartJudgementGame:disabled{
  opacity: .4;
  cursor: not-allowed;
}

.tiny-back{
  margin-top: 16px;
  opacity: .75;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}















/* 待機部屋ヘッダーの並びを自然に */
.waiting-header{
  align-items: center;
  margin-bottom: 10px;
}

/* 参加者リストも中央寄せで綺麗に */
#waitingMembers, #waitingMembersLocked{
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

/* settings-row: range用に幅を拡張 */
.settings-row.slider-row{
  justify-content: center;
  flex-wrap: wrap;
}

.settings-row.slider-row label{
  font-weight: 800;
}

/* range（スライダー）装飾 */
.settings-row input[type="range"]{
  width: min(420px, 80vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  outline: none;
  padding: 0;         /* rangeにpaddingは効きづらいので0 */
  border: 1px solid rgba(255,255,255,.18);
  accent-color: var(--accent); /* 対応ブラウザはこれで一気に揃う */
}

/* Webkit thumb */
.settings-row input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid rgba(0,0,0,.25);
  cursor: pointer;
}

/* Firefox thumb */
.settings-row input[type="range"]::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid rgba(0,0,0,.25);
  cursor: pointer;
}

/* 待機部屋内の small を少し見やすく */
#hostConfigPanel .muted{
  display: block;
  margin-top: 6px;
}








/* ===== スクロール復活（全体） ===== */
body{
  overflow: hidden; /* 背景演出は固定のまま */
}

/* メニュー画面は縦にスクロールできるように */
#gameMenu{
  overflow-y: auto;
  max-height: 100dvh;
}

/* 断罪AIの画面（中身だけ縦スクロール） */
#judgementAI{
  max-height: 100dvh;
  overflow-y: auto;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

/* iOSのセーフエリア下 */
#judgementAI{
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* ===== 断罪AI：カード一覧 ===== */
.judge-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px){
  .judge-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ★3→2 */
    gap: 10px;
  }
}

.judge-card{
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 10px;
}

.judge-card .answer{
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;     /* ★単語が長くても壊れない */
  overflow-wrap: anywhere;    /* ★さらに強い保険 */
}





/* 断罪AIトップへ戻る：左上固定（ゲーム中のみ表示はJSで制御） */
#btnBackToMenu{
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 80;
  border-radius: 999px;
  padding: .6rem 1rem;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}









/* =========================
   断罪AI：大型モーダル共通
========================= */
.jai-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  padding: 18px;
  align-items: center;
  justify-content: center;
}

.jai-modal.show { display: flex; }

.jai-modal-card {
  width: min(820px, 96vw);
  max-height: min(82dvh, 820px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(20,20,26,.92), rgba(16,18,26,.92));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding: 18px 18px 16px;
  text-align: left;
}

.jai-modal-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.jai-modal-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
}

.jai-modal-sub {
  opacity: .85;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.jai-modal-close {
  border: none;
  border-radius: 999px;
  padding: .55rem .9rem;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.jai-pill {
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, .14);
  border: 1px solid rgba(255, 209, 102, .35);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

/* =========================
   回答モーダル
========================= */
.jai-answer-topic {
  margin: 10px 0 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  line-height: 1.6;
  font-size: 15px;
}

.jai-answer-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 12px 12px;
  line-height: 1.6;
  font-size: 16px;
}

.jai-answer-foot {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.jai-charcount {
  opacity: .85;
  font-weight: 800;
  font-size: 13px;
}

.jai-primary {
  padding: .75rem 1.2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #333;
  font-weight: 900;
}

.jai-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* =========================
   カード一覧：見た目の統一
========================= */
.judge-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px){
  .judge-cards{
    grid-template-columns: 2fr; /* ★スマホは1列 */
    gap: 5px;
  }
}

.judge-card{
  position: relative;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 10px;
  transition: transform .08s ease, box-shadow .12s ease;
}

.judge-card.tapable { cursor: pointer; }
.judge-card.tapable:active { transform: scale(.99); }

.judge-card img{
  width: 100%;
  border-radius: 14px;
  display:block;
}

.judge-card .answer{
  margin-top: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.judge-card .name{
  margin-top: 10px;
  text-align: center;
  opacity: .9;
  font-weight: 900;
  font-size: 14px;
}

/* 自分のカードを目立たせる */
.judge-card.self{
  border-color: rgba(255, 209, 102, .55);
  box-shadow: 0 10px 28px rgba(255, 209, 102, .10);
}
.judge-card.self::after{
  content: "YOU";
  position:absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 209, 102, .95);
  color: #2a2a2a;
  font-weight: 900;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* 狩人の選択 */
.judge-card.selected{
  outline: 3px solid rgba(255,255,255,.55);
}

/* 断罪エフェクト（RESULTで付与） */
@keyframes jaiPulse {
  0% { box-shadow: 0 0 0 rgba(255,209,102,0); }
  45% { box-shadow: 0 0 0 8px rgba(255,209,102,.18); }
  100% { box-shadow: 0 0 0 rgba(255,209,102,0); }
}
.judge-card.picked{
  outline: 3px solid rgba(255, 209, 102, .95);
  animation: jaiPulse .9s ease both;
}

.judge-card.hit{
  outline: 3px solid rgba(0, 255, 170, .85);
}
.judge-card.miss{
  outline: 3px solid rgba(255, 120, 120, .85);
}

/* RESULTの上部バナー */
.jai-banner{
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
  margin-bottom: 12px;
  font-weight: 900;
}








/* ===== 断罪AI: カード一覧を見やすく ===== */
.judge-cards{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin: 10px 0;
}

.judge-card{
  display:grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
}

.judge-card img{
  grid-row: 1 / span 2;
  width:56px;
  height:56px;
  border-radius: 10px;
  object-fit: cover;
}

.judge-card .answer{
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: .95;
}

.judge-card .name{
  font-size: 12px;
  opacity: .75;
}

/* タップ可能なカードの視認性 */
.judge-card.tapable{
  cursor:pointer;
  outline: 1px solid rgba(255,255,255,0.12);
}

.judge-card.selected{
  outline: 2px solid rgba(255,255,255,0.35);
}

/* 自分カードは薄く強調 */
.judge-card.self{
  border-color: rgba(255,255,255,0.35);
}





.jai-reveal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.65);
  z-index: 9999;
}
.jai-reveal-overlay.show{ display: grid; }

.jai-reveal-card{
  width: min(360px, 92vw);
  padding: 16px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.jai-reveal-avatar{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px 0;
}
.jai-reveal-title{ opacity: .85; font-size: 13px; }
.jai-reveal-name{ font-size: 18px; font-weight: 700; margin-top: 6px; }
.jai-reveal-kind{ margin-top: 6px; opacity: .9; }
.jai-reveal-judge{ margin-top: 10px; font-weight: 700; }
