/* 卓まわりの共通スタイル（瞬間決着麻雀。身内用は friends/shared の写し）。画面ごとのスタイルは public/style.css */
/* 色は雀卓の緑 × 金（2026-10-20 に紺から変更） */
:root {
  --bg: #0a2a1b;
  --felt-1: #2a7d52;
  --felt-2: #0f3d26;
  --ink: #f3f4ef;
  --muted: #b9d3c3;
  --accent: #f6c453;
  --danger: #ff6b5b;
  --tile-face: #fbf8f0;
  --tile-side: #d7c49a;
  --tile-back-1: #f2a93b;
  --tile-back-2: #d9861a;
}
* { box-sizing: border-box; }
/* display を指定した要素でも hidden 属性で隠れるようにする */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, #1f6e48 0%, var(--bg) 80%);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button {
  font: inherit;
  border: 1px solid #ffffff40;
  background: #ffffff18;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}
button.primary { background: var(--accent); color: #2a1d00; border-color: transparent; font-weight: 700; }
button:disabled { opacity: .4; cursor: default; }

/* ---------- 牌 ---------- */
/* --tw で幅を決める。高さは実物に近い比率 */
.tile {
  --tw: 52px;
  position: relative;
  flex: none;
  width: var(--tw);
  height: calc(var(--tw) * 1.36);
  border-radius: calc(var(--tw) * .12);
  background: var(--tile-face) url(tiles/Front.svg) center / 100% 100% no-repeat;
  box-shadow:
    0 calc(var(--tw) * .07) 0 var(--tile-side),
    0 calc(var(--tw) * .09) calc(var(--tw) * .14) #0007;
  margin-bottom: calc(var(--tw) * .07);
}
.tile img {
  position: absolute;
  left: 10%;
  top: 8%;
  width: 80%;
  height: 84%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.tile.back {
  background: linear-gradient(160deg, var(--tile-back-1), var(--tile-back-2));
  box-shadow:
    0 calc(var(--tw) * .07) 0 #f4efe2,
    0 calc(var(--tw) * .09) calc(var(--tw) * .14) #0007;
}
.tile.called { filter: brightness(.55); }
/* ツモ切りした牌（天鳳と同じく少し暗く。鳴かれた牌ほどは暗くしない） */
.tile.tsumogiri { filter: grayscale(.35) brightness(.78); }
/* 身内用の牌：花牌 */
.tile.flower img { left: 12%; top: 12%; width: 76%; height: 76%; }
.tile.last::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 0 3px var(--accent);
}
/* 横向き（リーチ宣言牌・鳴いた牌）
   牌ごと回すと厚みの影まで横に回って隣にかぶるので、横長の牌を描いて図柄だけ回す */
.tile.sideways {
  width: calc(var(--tw) * 1.36);
  height: var(--tw);
  background: var(--tile-face);
}
.tile.sideways img {
  left: 50%;
  top: 50%;
  width: calc(var(--tw) * .8);
  height: calc(var(--tw) * 1.14);
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ---------- 卓 ---------- */
#table { position: fixed; inset: 0; }
.stage {
  position: absolute;
  width: 1000px;
  height: 1150px;
  transform-origin: 0 0;
}
.board {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 45%, var(--felt-1) 0%, var(--felt-2) 78%);
  box-shadow: inset 0 0 0 10px #2b1d12, inset 0 0 0 13px #6b4a2a, inset 0 0 70px #000a, 0 10px 40px #000c;
}
.area { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.area[data-pos="left"] { transform: rotate(90deg); }
.area[data-pos="right"] { transform: rotate(-90deg); }
.area[data-pos="across"] { transform: rotate(180deg); }

/* 四麻：対面の手牌が卓の上の辺に来るので、卓の上に帯を作って音・設定のボタンをそこへ出す */
.stage.yonma { height: 1220px; }
.stage.yonma .board { top: 70px; }
.stage.yonma .hand-strip { top: 1070px; }
.stage.yonma > .prefs-bar, .stage.yonma > .sound-settings { top: 6px; }
.stage.yonma .prefs-bar .pref { padding: 8px 16px; font-size: 20px; }
.stage.yonma .mute-button { width: 56px; height: 56px; font-size: 26px; }
/* 四麻：局・山の残り・ドラ表示は真ん中の枠の中（4辺に席の点数が並ぶので、その内側に収める） */
.stage.yonma .center-box { gap: 6px; }
.stage.yonma .center-box .info-box { position: static; transform: none; padding: 0; background: none; box-shadow: none; gap: 6px; }
.stage.yonma .info-box .round { gap: 10px; }
.stage.yonma .info-box .round .round-name { font-size: 20px; }
.stage.yonma .info-box .round .remain { font-size: 15px; }
.stage.yonma .info-box .round b { font-size: 20px; }
.stage.yonma .info-box .dora .tile { --tw: 27px; }
.stage.yonma .center-box .pot { font-size: 15px; min-height: 18px; }

/* 河：6枚・6枚・残り全部の3列。リーチ宣言牌のある列は右にはみ出す */
.river {
  position: absolute;
  left: 344px;
  top: 652px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.river-row { display: flex; align-items: flex-end; }
.river .tile { --tw: 52px; }

.seat-label {
  position: absolute;
  left: 380px;
  top: 586px;
  width: 240px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: #dbe5f2;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.seat-label .wind { color: var(--accent); }
.seat-label .oya { font-size: 15px; padding: 1px 5px; border-radius: 4px; background: var(--danger); color: #fff; }
.seat-label.turn { background: #f6c45333; box-shadow: 0 0 0 2px var(--accent); }

.seat-label .stick.labeled {
  top: -16px;
  width: auto;
  min-width: 100px;
  height: 18px;
  margin-left: 0;
  transform: translateX(-50%);
  padding: 0 8px;
  border-radius: 9px;
  background-image: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  color: #2a1d00;
  white-space: nowrap;
}
.seat-label .stick.shuba { background-color: #d9dee6; box-shadow: 0 0 0 2px #9aa6b8, 0 1px 3px #0008; }
.seat-label .stick.zoma { background-color: #ffe08a; box-shadow: 0 0 0 2px #d4a72c, 0 1px 3px #0008; }
.seat-label .stick.fever { background-color: #ffb3a8; box-shadow: 0 0 0 2px #ff6b5b, 0 0 10px #ff6b5b, 0 1px 3px #0008; }
.nameplate .status.shuba-stick { color: #9fd0ff; }
.seat-label .stick {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 10px;
  margin-left: -60px;
  border-radius: 5px;
  background: #f7f7f2 radial-gradient(circle, var(--danger) 0 3px, transparent 4px) center / 10px 10px no-repeat;
  box-shadow: 0 1px 3px #0008;
}

.nameplate {
  position: absolute;
  left: 86px;
  top: 906px;
  max-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 22px;
  line-height: 1.2;
}
.nameplate.tappable { pointer-events: auto; cursor: pointer; }
/* 自分の札は、左下の持ち時間（.timer）の右に出す */
.area[data-pos="me"] .nameplate { left: 126px; }
/* 相手の札は、アイコンを名前の上に縦に並べる（卓の角に広がって、自分の副露と重ならないように） */
.area:not([data-pos="me"]) .nameplate { left: 150px; top: 880px; max-width: 130px; flex-direction: column; align-items: flex-start; gap: 4px; }
.area:not([data-pos="me"]) .nameplate .avatar { width: 46px; height: 46px; }
.nameplate .plate-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* アイコン（正方形の枠。いまは仮の絵） */
.nameplate .avatar { flex: none; width: 54px; height: 54px; border-radius: 9px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #f6e7c8, #d9b77a); border: 3px solid var(--accent); box-shadow: 0 2px 6px #0008; }
.nameplate .avatar svg { width: 78%; height: 78%; fill: #7a5a2a; margin-top: 16%; }
.nameplate .avatar.bot { background: linear-gradient(160deg, #cfd8e3, #8d9bb0); border-color: #c8d2df; }
.nameplate .avatar.bot svg { fill: #3d4a5e; margin-top: 4%; }
.nameplate .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nameplate .status { font-size: 17px; color: var(--muted); }
.nameplate .status.riichi { color: var(--danger); font-weight: 700; }

/* 相手の手牌（左）と副露・抜いた牌（右）は1行に並べて重ならないようにする。入りきらない副露は内側の段へ */
.opp-row {
  position: absolute;
  left: 290px;
  right: 150px; /* 右上・左下の角（音のボタンなど）にかからないよう、端は空ける */
  bottom: 38px; /* 外側の辺（1段なら top: 905px と同じ）を基準にし、副露が2段になったら内側へ伸ばす */
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.opp-hand { --tw: 32px; flex: none; display: flex; gap: 1px; }
.opp-hand .tile { --tw: 32px; }

.area-melds {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 10px;
}
.opp-row .area-melds { flex: 1; min-width: 0; flex-wrap: wrap-reverse; row-gap: 6px; }
.meld { position: relative; display: flex; align-items: flex-end; gap: 1px; }
/* 鳴いた順番の番号（2つ以上鳴いたら、1から全部に。右上に小さく） */
.meld .meld-no { position: absolute; top: -10px; right: -8px; z-index: 1; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; line-height: 1; color: #2a1d00; background: var(--accent); box-shadow: 0 1px 3px #0009; }
.area-melds .tile { --tw: 40px; }
/* 自分の副露・抜き北は卓（マット）の右下。天鳳と同じ配置。自分の名前の札と下家の札（右の角）のあいだに収め、入りきらなければ上の段へ */
.area[data-pos="me"] .area-melds { position: absolute; left: 340px; right: 128px; bottom: 34px; flex-wrap: wrap-reverse; row-gap: 6px; }
.area[data-pos="me"] .area-melds .tile { --tw: 40px; }

.center-box {
  position: absolute;
  left: 360px;
  top: 360px;
  width: 280px;
  height: 280px;
  border-radius: 18px;
  background: #08200fdd;
  box-shadow: inset 0 0 0 2px #ffffff22, 0 6px 20px #0008;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* 局・山の残り・ドラ表示（卓の上側。三麻で北家がいない所。ドラが最大7枚でも横の点数表示とかぶらない） */
.info-box {
  position: absolute;
  left: 50%;
  top: 150px; /* 上の真ん中にある身内用の「対局を中止」・観戦中の表示（top: 84px）の下 */
  transform: translateX(-50%);
  z-index: 3;
  padding: 12px 20px 14px;
  border-radius: 18px;
  background: #08200fdd;
  box-shadow: inset 0 0 0 2px #ffffff22, 0 6px 20px #0008;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.info-box .round { display: flex; align-items: baseline; gap: 18px; color: var(--muted); }
.info-box .round .round-name { font-size: 24px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.info-box .round .remain { font-size: 18px; white-space: nowrap; }
.info-box .round b { color: var(--ink); font-size: 24px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.info-box .dora { display: flex; gap: 3px; }
.info-box .dora .tile { --tw: 32px; }
.center-box .pot { font-size: 18px; color: var(--muted); min-height: 22px; }

.controls {
  position: absolute;
  z-index: 3; /* 河（.area）より上に出す */
  left: 24px;
  right: 24px;
  top: 900px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.controls > * { pointer-events: auto; }
.timer { width: 90px; text-align: center; font-variant-numeric: tabular-nums; }
.timer.hidden { visibility: hidden; }
.timer-sec { font-size: 40px; font-weight: 800; text-shadow: 0 2px 6px #000a; }
.timer-bank { margin-left: 4px; font-size: 22px; font-weight: 800; color: var(--accent); text-shadow: 0 2px 6px #000a; } /* 1手の時間の横の、持ち時間の残り */
.bank { height: 8px; background: #00000055; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bank-bar { height: 100%; background: var(--accent); width: 100%; }
.hint { position: absolute; left: 0; right: 0; top: 70px; text-align: center; font-size: 20px; color: var(--muted); pointer-events: none; }
.actions {
  position: absolute;
  left: 0;
  right: 0;
  top: -215px; /* 卓の y=685 あたり（真ん中やや下） */
  display: flex;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}
.actions button {
  pointer-events: auto;
  min-width: 140px;
  padding: 16px 26px;
  font-size: 30px;
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid #ffffff80;
  background: #1d5c3fd0;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 14px #0008;
}
/* リーチの種類を選ぶときは、小さめのボタンを2段まで並べる */
.actions.menu { flex-wrap: wrap-reverse; gap: 10px; left: 40px; right: 40px; }
.actions.menu button { min-width: 0; padding: 12px 18px; font-size: 24px; white-space: nowrap; }
.actions button.fever-choice { background: #d6372ad0; border-color: #ffd0c4; }
.actions button.win { background: #d6372ac4; border-color: #ffd0c4; }
.actions button.pass { background: #3f4950b0; }
/* チー・ポンの形を選ぶボタン：手牌から出す2枚の絵 */
.actions button.tiles { min-width: 0; padding: 10px 16px; display: flex; gap: 3px; align-items: flex-end; }
.actions button.tiles .tile { --tw: 46px; margin-bottom: calc(var(--tw) * .07); }
.actions button.on { background: #e9ac2fd0; color: #2a1d00; }

.hand-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 1000px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
}
.hand { display: flex; gap: 2px; align-items: flex-end; }
.hand .tile { --tw: 64px; cursor: pointer; transition: transform .08s; }
.hand .tile.drawn, .hand .slot { margin-left: 18px; }
/* 自動理牌オフのときは、牌をドラッグして並べ替えられる */
.hand .tile.draggable { touch-action: none; }
.hand .tile.dragging { z-index: 5; transition: none; box-shadow: 0 10px 20px #000a; cursor: grabbing; }
/* 自動理牌がオフのときの「理牌」ボタン */
.hand-strip .sort-now { position: absolute; right: 16px; top: 4px; padding: 6px 16px; font-size: 18px; font-weight: 700; border-radius: 999px; }
/* ツモ牌が来る場所。空のときも幅を取っておき、他の牌が動かないようにする */
.hand .slot { width: 64px; flex: none; }
.hand .tile.selected { transform: translateY(-22px); }
.hand .tile.disabled { filter: brightness(.55); cursor: default; }

/* 鳴きなし・自動和了（卓の左上） */
.prefs-bar { position: absolute; left: 24px; top: 24px; z-index: 8; display: flex; gap: 10px; }
.prefs-bar .pref {
  padding: 10px 18px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 999px;
  background: #00000040;
  border: 1px solid #ffffff33;
  color: var(--muted);
}
.prefs-bar .pref.on { background: #f6c453; color: #2a1d00; border-color: transparent; }


/* 音の設定（卓の右上） */
.sound-settings {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sound-panel {
  width: 300px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #08200ff2;
  box-shadow: 0 8px 24px #000c, inset 0 0 0 1px #ffffff22;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 22px;
}
.sound-row { display: flex; align-items: center; gap: 12px; }
.sound-row span { width: 4.5em; }
.sound-row input { flex: 1; accent-color: var(--accent); height: 28px; }
.sound-mute { font-size: 20px; padding: 10px; }
.mute-button {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  font-size: 30px;
  background: #00000040;
  border: 1px solid #ffffff33;
}

/* ---------- サイコロ（チンチロ） ---------- */
.dice-panel {
  position: absolute;
  left: 250px;
  top: 300px;
  width: 500px;
  z-index: 6;
  padding: 18px;
  border-radius: 24px;
  background: #08200fee;
  box-shadow: 0 10px 40px #000c, inset 0 0 0 2px #ffffff22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dice-title { margin: 0; font-size: 24px; font-weight: 800; color: #ffd98a; }
.bowl {
  width: 300px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #f4efe6 0 38%, #c9b48d 52%, #5b3a1e 70%, #2a1a0c 100%);
  box-shadow: inset 0 -12px 24px #0006, 0 8px 18px #000a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.die {
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #e3e3e3);
  box-shadow: 0 4px 0 #b9b9b9, 0 6px 10px #0007;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
}
.die .pip { width: 11px; height: 11px; border-radius: 50%; background: #1b1b1b; }
.die .pip.one { width: 18px; height: 18px; background: #d6302a; }
.die.rolling { animation: die-roll .25s linear infinite; }
.die.rolling:nth-child(2) { animation-duration: .3s; animation-direction: reverse; }
@keyframes die-roll {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(6px, -10px) rotate(90deg); }
  50% { transform: translate(-4px, 4px) rotate(180deg); }
  75% { transform: translate(5px, 8px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}
.dice-result { margin: 0; min-height: 30px; font-size: 24px; font-weight: 800; }
.dice-roll { padding: 14px 28px; font-size: 26px; font-weight: 800; border-radius: 999px; background: var(--accent); color: #2a1d00; border: none; }

/* ---------- アリス ---------- */
.alice { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: #00000030; }
.alice-title { text-align: center; font-weight: 800; color: #9fd0ff; font-size: 15px; }
.alice-row { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.alice-col { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; animation: alice-in .3s ease-out forwards; }
.alice-col .tile { --tw: 24px; }
.alice-col .tile.hit { box-shadow: 0 0 0 2px var(--accent), 0 0 8px var(--accent); }
.alice-empty { width: 24px; height: 33px; }
.alice-hits { font-size: 12px; font-weight: 800; color: #ffd98a; }
@keyframes alice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 結果 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: #000000b0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.result-card {
  background: linear-gradient(#1d4a33, #0d2a1c);
  border: 1px solid #ffffff30;
  border-radius: 16px;
  padding: 18px 16px;
  width: min(460px, 100%);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 40px #000c;
}
.result-card h2 {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-weight: 900;
  font-size: 40px;
  text-align: center;
  letter-spacing: .2em;
  color: #fff;
  filter: drop-shadow(0 2px 4px #000a);
}
.who { text-align: center; }
.yaku { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.yaku-row { display: flex; justify-content: space-between; gap: 12px; }
/* 結果を順番に出す */
.reveal { opacity: 0; animation: reveal-in .3s ease-out forwards; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.score-line { text-align: center; font-size: 20px; font-weight: 800; color: var(--accent); }
.chip-line { text-align: center; font-size: 15px; color: #ffd98a; }
.nameplate .status.chips { color: #ffd98a; }
.nameplate .status.total.plus { color: #8fe3a8; }
.nameplate .status.total.minus { color: var(--danger); }
.ranks { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranks td { padding: 7px 4px; border-top: 1px solid #ffffff20; }
.ranks td:nth-child(n+2) { text-align: right; }
.ranks .plus { color: #8fe3a8; }
.ranks .minus { color: var(--danger); }
.ranks .me td { font-weight: 700; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.result-actions .result-sub { display: flex; gap: 8px; }
/* 結果の表：対戦相手の名前（押すと成績） */
.ranks .name-link { padding: 0; border: none; background: none; color: inherit; font: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-width: 0; width: auto; }
.result-actions .primary { width: 100%; padding: 12px; font-size: 18px; }
.result-actions label { font-size: 14px; color: var(--muted); }
.result-actions .next-hand-note { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.result-actions .next-hand-count { font-size: 22px; font-weight: 700; color: var(--accent, #f6c453); }
.win-hand { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; align-items: flex-end; }
.win-hand .tile { --tw: 26px; }
.win-hand .gap { width: 8px; }
.win-dora { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }
.win-dora-row { display: flex; align-items: center; gap: 2px; }
.win-dora-label { font-size: 12px; font-weight: 700; opacity: .8; margin-right: 4px; }
.win-dora .tile { --tw: 22px; }

/* ---------- ポン・ロンなどの発声 ---------- */
.callout {
  position: absolute;
  left: 150px;
  right: 150px;
  top: 340px;
  padding: 40px 0;
  border-radius: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.callout .word {
  /* 白一色。卓の上でも読めるよう、暗い縁取りと影だけ付ける */
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 170px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #fff;
  filter:
    drop-shadow(0 0 2px #000c) drop-shadow(0 0 1px #000)
    drop-shadow(3px 3px 0 #0009) drop-shadow(0 12px 18px #000d);
  animation: callout-pop .28s cubic-bezier(.2, 1.6, .4, 1);
}
.callout .who {
  margin-top: 10px;
  padding: 4px 18px;
  border-radius: 999px;
  background: #000a;
  font-size: 30px;
  font-weight: 700;
}
.callout:not(:empty) { background: radial-gradient(ellipse at center, #000000b0 0%, #00000070 45%, transparent 70%); }
.callout.fade { opacity: 0; transition: opacity .3s; }
@keyframes callout-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .die.rolling, .alice-col, .reveal { animation: none; opacity: 1; }
  .callout .word { animation: none; }
  .spinner { animation: none; }
  .hand .tile { transition: none; }
}
