@charset "UTF-8";

/*
 * ナポレオン用スタイル。
 *
 * 盤面は .felt（楕円のテーブル）を position: relative の土台にして、
 * 5 つの .seat と中央の .pot を絶対配置している。
 * 出されたカードの位置は js/napoleon.js が --dx / --dy で渡す
 * （中心からのずれ px）。狭い画面では --scale で全体を縮める。
 */

:root {
	--felt: #14532d;
	--felt-dark: #0b3a1f;
	--panel: #ffffff;
	--ink: #1f2937;
	--muted: #6b7280;
	--line: #d1d5db;
	--accent: #b91c1c;
	--gold: #d4a13b;
	--on-felt: #eaf3e6;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background: var(--felt);
	color: var(--ink);
	font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	line-height: 1.7;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1rem;
}

.site-header {
	color: #ffffff;
	text-align: center;
	padding: 0.25rem 0 0.75rem;
}

.site-header h1 {
	margin: 0;
	font-size: 1.6rem;
	letter-spacing: 0.2em;
}

.site-header__sub {
	margin: 0.2rem 0 0;
	font-size: 0.8rem;
	color: #cbd5c0;
}

.site-footer {
	color: #cbd5c0;
	font-size: 0.8rem;
	text-align: center;
	padding: 1rem 0 2rem;
}

.site-footer a {
	color: #ffffff;
}

.alert {
	background: #fee2e2;
	border: 1px solid var(--accent);
	color: #7f1d1d;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	margin: 0 0 0.75rem;
}

/* ---- 全体の割り付け ---- */

.game {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 1rem;
	align-items: start;
}

@media (max-width: 900px) {
	.game {
		grid-template-columns: minmax(0, 1fr);
	}
}

.game__main {
	min-width: 0;
}

.game__side {
	min-width: 0;
}

/* ---- テーブル ---- */

.felt {
	position: relative;
	height: 420px;
	margin: 0 0 0.9rem;
	border: 10px solid #4a2f14;
	border-radius: 50% / 32%;
	background: radial-gradient(ellipse at 50% 38%, #1a6b3c 0%, #10502b 55%, #0a3a1e 100%);
	box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.game--idle .felt {
	filter: saturate(0.55) brightness(0.75);
}

/* ---- 席 ---- */

.seat {
	position: absolute;
	width: 124px;
	text-align: center;
	color: var(--on-felt);
	font-size: 0.78rem;
}

.seat--0 {
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
}

.seat--1 {
	left: 4px;
	top: 54%;
	transform: translateY(-50%);
}

.seat--2 {
	left: 11%;
	top: 10px;
}

.seat--3 {
	right: 11%;
	top: 10px;
}

.seat--4 {
	right: 4px;
	top: 54%;
	transform: translateY(-50%);
}

.seat__plate {
	display: inline-block;
	background: rgba(0, 0, 0, 0.34);
	border-radius: 8px;
	padding: 0.15rem 0.5rem;
	line-height: 1.35;
	max-width: 100%;
}

.seat--turn .seat__plate {
	background: var(--gold);
	color: #2b1d05;
	box-shadow: 0 0 0 2px #fff6d8;
}

.seat--out .seat__plate {
	opacity: 0.45;
}

.seat__name {
	display: block;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.seat__meta {
	display: block;
	font-size: 0.66rem;
	opacity: 0.85;
}

.seat__tag {
	display: inline-block;
	font-size: 0.64rem;
	line-height: 1.5;
	border-radius: 3px;
	padding: 0 0.3rem;
	background: #e5e7eb;
	color: #374151;
}

.seat__tag--napoleon {
	background: var(--accent);
	color: #ffffff;
}

.seat__tag--adjutant {
	background: #1d4ed8;
	color: #ffffff;
}

.seat__backs {
	display: flex;
	justify-content: center;
	gap: 1px;
	margin-top: 3px;
	height: 15px;
}

.seat--0 .seat__backs {
	display: none;
}

.back {
	width: 8px;
	height: 15px;
	border: 1px solid #16265c;
	border-radius: 2px;
	background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 2px, #3b5bbf 2px, #3b5bbf 4px);
}

/* ---- 吹き出し（競りの発言） ---- */

.seat__bubble {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translateX(-50%);
	background: #ffffff;
	color: var(--ink);
	border-radius: 10px;
	padding: 0.05rem 0.55rem;
	font-size: 0.75rem;
	font-weight: bold;
	white-space: nowrap;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
	animation: bubble-pop 0.2s ease-out;
}

.seat__bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: #ffffff;
}

/* 奥の席は上に余白がないので下向きに出す */
.seat--2 .seat__bubble,
.seat--3 .seat__bubble {
	bottom: auto;
	top: calc(100% + 6px);
}

.seat--2 .seat__bubble::after,
.seat--3 .seat__bubble::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #ffffff;
}

@keyframes bubble-pop {
	from { opacity: 0; transform: translateX(-50%) scale(0.8); }
	to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* ---- 場（出されたカード） ---- */

.pot {
	position: absolute;
	left: 50%;
	top: 45%;
	width: 0;
	height: 0;
}

.pot__cards {
	--scale: 1;
	position: absolute;
	left: 0;
	top: 0;
}

.play {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%)
		translate(calc(var(--dx) * var(--scale)), calc(var(--dy) * var(--scale)));
	animation: play-in 0.32s ease-out;
}

@keyframes play-in {
	from {
		opacity: 0;
		transform: translate(-50%, -50%)
			translate(calc(var(--dx) * var(--scale) * 2.6), calc(var(--dy) * var(--scale) * 2.6))
			scale(0.85) rotate(5deg);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%)
			translate(calc(var(--dx) * var(--scale)), calc(var(--dy) * var(--scale)))
			scale(1) rotate(0);
	}
}

/* 勝者へ吸い込む。長さは napoleon.js の SWEEP_MS と揃える */
.pot__cards--sweep .play {
	transition: transform 0.42s ease-in, opacity 0.42s ease-in;
	transform: translate(-50%, -50%) translate(var(--wx), var(--wy)) scale(0.7);
	opacity: 0;
}

.play--winner .card {
	box-shadow: 0 0 0 3px #22c55e, 0 0 14px rgba(34, 197, 94, 0.75);
}

.play__who {
	display: block;
	text-align: center;
	font-size: 0.62rem;
	color: var(--on-felt);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.pot__note {
	position: absolute;
	left: 50%;
	bottom: 84px;
	transform: translateX(-50%);
	margin: 0;
	max-width: 88%;
	background: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	border-radius: 6px;
	padding: 0.1rem 0.6rem;
	font-size: 0.75rem;
	line-height: 1.5;
	text-align: center;
}

/* ---- カード ---- */

.card {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 72px;
	border: 1px solid #9ca3af;
	border-radius: 6px;
	background: #ffffff;
	color: #111827;
	font-weight: bold;
	line-height: 1.1;
	vertical-align: middle;
	user-select: none;
}

.card--red {
	color: var(--accent);
}

.card--face {
	border-color: var(--gold);
	box-shadow: inset 0 0 0 2px rgba(212, 161, 59, 0.35);
}

.card--joker {
	color: #1d4ed8;
}

.card__rank {
	font-size: 1.15rem;
}

.card__suit {
	font-size: 1.3rem;
}

.card__joker {
	font-size: 0.62rem;
	letter-spacing: 0.05em;
}

.mini {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5em;
	padding: 0.05rem 0.25rem;
	border: 1px solid #9ca3af;
	border-radius: 4px;
	background: #ffffff;
	color: #111827;
	font-size: 0.8rem;
	font-weight: bold;
	line-height: 1.5;
}

.mini--red {
	color: var(--accent);
}

.mini--joker {
	color: #1d4ed8;
	font-size: 0.6rem;
}

.inline-cards {
	display: inline-flex;
	gap: 0.2rem;
	vertical-align: middle;
}

/* ---- 自分の手札 ---- */

.myhand__cards {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px;
	min-height: 80px;
}

.hand__card {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 0.12s;
}

.hand__card:disabled {
	cursor: default;
}

.hand__card:not(:disabled):hover,
.hand__card:not(:disabled):focus-visible {
	transform: translateY(-9px);
}

.hand__card--dead .card {
	opacity: 0.34;
}

.hand__card--picked {
	transform: translateY(-10px);
}

.hand__card--picked .card {
	outline: 3px solid var(--accent);
	opacity: 0.6;
}

.myhand__foot {
	margin: 0.4rem 0 0;
	text-align: right;
}

button.link {
	padding: 0;
	border: 0;
	background: none;
	color: #cbd5c0;
	font: inherit;
	font-size: 0.78rem;
	text-decoration: underline;
	cursor: pointer;
}

/* ---- 操作列 ---- */

.controls {
	margin-top: 0.6rem;
	background: var(--panel);
	border-radius: 10px;
	padding: 0.6rem 0.9rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.controls:empty {
	display: none;
}

.controls__msg {
	margin: 0;
	font-size: 0.9rem;
}

.controls__buttons {
	margin: 0.5rem 0 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.dots i {
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-left: 2px;
	border-radius: 50%;
	background: currentColor;
	animation: dot 1s infinite;
}

.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot {
	0%, 60%, 100% { opacity: 0.2; }
	30%           { opacity: 1; }
}

/* ---- 競りの操作 ---- */

.bid__state {
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
}

.bid__row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin: 0.3rem 0;
}

.bid__label {
	width: 5.2em;
	font-size: 0.8rem;
	color: var(--muted);
}

.bid__suits {
	display: flex;
	gap: 0.25rem;
}

.suit-button {
	width: 2.3rem;
	padding: 0.15rem 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

.suit-button.suit-button--on {
	background: var(--felt);
	border-color: var(--felt-dark);
	color: #ffffff;
}

.step {
	width: 2.2rem;
	padding: 0.15rem 0;
}

.bid__count {
	display: inline-block;
	min-width: 1.9em;
	text-align: center;
	font-size: 1.15rem;
}

.pick {
	padding: 0.15rem 0.35rem;
}

.bid__buttons {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0.6rem 0 0;
}

/* ---- ダイアログ ---- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(6, 20, 12, 0.72);
	overflow: auto;
}

.modal[hidden] {
	display: none;
}

.modal__box {
	display: flex;
	justify-content: center;
	width: 100%;
}

.dialog {
	width: 100%;
	max-width: 32rem;
	background: var(--panel);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.dialog--wide {
	max-width: 44rem;
}

.dialog h2 {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
	border-bottom: 2px solid var(--line);
	padding-bottom: 0.3rem;
}

.dialog p {
	margin: 0.4rem 0;
}

.dialog__verdict {
	font-size: 1.05rem;
	font-weight: bold;
}

.dialog__buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.9rem;
}

.picker {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0.6rem 0;
	overflow-x: auto;
}

.picker__row {
	display: flex;
	gap: 0.2rem;
	min-width: 26rem;
}

.picker__card {
	flex: 1 1 0;
	padding: 0.15rem 0.1rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #f9fafb;
	cursor: pointer;
}

/* 自分の手札にある札。指名しても副官は自分になってしまう */
.picker__card--mine {
	background: #fef3c7;
	border-color: var(--gold);
}

.picker__card--on {
	background: var(--felt);
	border-color: var(--felt-dark);
}

.picker__card--on .mini {
	outline: 2px solid #ffffff;
}

/* ---- 右の情報欄 ---- */

.panel {
	background: var(--panel);
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	margin: 0 0 0.75rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.panel h2 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	border-bottom: 2px solid var(--line);
	padding-bottom: 0.3rem;
}

.panel h3 {
	margin: 0.8rem 0 0.3rem;
	font-size: 0.95rem;
}

details.panel > summary {
	cursor: pointer;
	font-weight: bold;
	font-size: 1rem;
}

.panel__count {
	font-weight: normal;
	font-size: 0.8rem;
	color: var(--muted);
}

.note {
	margin: 0.4rem 0 0;
	font-size: 0.78rem;
	color: var(--muted);
}

.status {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.status__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.15rem 0;
	border-bottom: 1px dotted var(--line);
}

.status dt {
	color: var(--muted);
	font-size: 0.76rem;
	white-space: nowrap;
}

.status dd {
	margin: 0;
	font-size: 0.88rem;
	font-weight: bold;
	text-align: right;
}

.suit {
	font-weight: bold;
}

.suit--H,
.suit--D {
	color: var(--accent);
}

.faces {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-top: 0.5rem;
}

.faces__row {
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

.faces__row > .suit {
	width: 1.2rem;
	text-align: center;
	font-size: 1rem;
}

.face-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
	opacity: 0.32;
}

.face-slot--taken {
	opacity: 1;
}

.face-slot__who {
	max-width: 100%;
	font-size: 0.6rem;
	line-height: 1.3;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.game-log {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
	max-height: 12rem;
	overflow-y: auto;
	font-size: 0.82rem;
}

.rule-list {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
	font-size: 0.85rem;
}

/* ---- フォーム部品 ---- */

fieldset {
	border: 1px solid var(--line);
	border-radius: 6px;
	margin: 0.5rem 0;
}

legend {
	font-size: 0.85rem;
	color: var(--muted);
}

fieldset label {
	display: block;
}

button {
	font: inherit;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #f3f4f6;
	color: var(--ink);
	cursor: pointer;
}

button:disabled {
	opacity: 0.5;
	cursor: default;
}

button.primary {
	background: var(--felt);
	border-color: var(--felt-dark);
	color: #ffffff;
	font-weight: bold;
}

/* ---- 入口の「ログインしますか？」 ---- */

/*
 * 共通の 1 枚（template/login_prompt.php）が使う組。hit・scot と同じ
 * 綴り（.lead / .btn / .inline-form）にしてあるので、**名前を変えないこと**
 * ——変えると、あの 1 枚をコンテンツごとに分けることになる。
 * 色だけはナポレオンの地（緑の卓）に合わせてある。
 */
/* 卓の代わりに 1 枚だけ出るので、盤と違って読みやすい幅に詰める */
.panel--login {
	max-width: 34rem;
	margin-left: auto;
	margin-right: auto;
}

.panel--login h2 {
	font-size: 1.2rem;
}

.lead {
	margin: 0 0 0.5rem;
}

.inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0.6rem 0 0;
}

.btn {
	display: inline-block;
	font: inherit;
	font-size: 0.9rem;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #f3f4f6;
	color: var(--ink);
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	background: #e5e7eb;
}

.btn--primary {
	font-weight: bold;
	background: var(--felt);
	border-color: var(--felt-dark);
	color: #ffffff;
}

.btn--primary:hover {
	background: var(--felt-dark);
}

/* ---- 狭い画面 ---- */

@media (max-width: 560px) {
	.wrap {
		padding: 0.6rem;
	}

	.felt {
		height: 340px;
		border-width: 6px;
	}

	.pot__cards {
		--scale: 0.7;
	}

	.pot__note {
		bottom: 70px;
	}

	.seat {
		width: 92px;
		font-size: 0.72rem;
	}

	.seat--1,
	.seat--4 {
		width: 84px;
	}

	.card {
		width: 42px;
		height: 60px;
	}

	.card__rank {
		font-size: 0.95rem;
	}

	.card__suit {
		font-size: 1.05rem;
	}

	.back {
		width: 6px;
		height: 12px;
	}

	.seat__backs {
		height: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.play,
	.seat__bubble {
		animation: none;
	}

	.pot__cards--sweep .play {
		transition: opacity 0.2s;
		transform: translate(-50%, -50%)
			translate(calc(var(--dx) * var(--scale)), calc(var(--dy) * var(--scale)));
	}

	.hand__card {
		transition: none;
	}

	.dots i {
		animation: none;
		opacity: 0.6;
	}
}

/* ---- ヘッダのログイン案内 ---- */

/*
 * ログインは任意なので、盤面の邪魔をしないよう小さく 1 行にまとめる。
 * ログアウトだけは POST が要るのでフォームだが、見た目はリンクに寄せる。
 */

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin-top: 0.4rem;
	font-size: 0.8rem;
	color: #cbd5c0;
}

.site-nav a {
	color: #ffffff;
}

.site-nav__name {
	color: var(--gold);
	font-weight: bold;
}

.site-nav__logout {
	display: inline;
	margin: 0;
}

.site-nav__logout button {
	padding: 0;
	border: 0;
	background: none;
	color: #ffffff;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---- ログイン・新規登録・戦績に共通の白い紙 ---- */

.auth,
.stats {
	background: var(--panel);
	border-radius: 10px;
	padding: 1.25rem;
	margin: 0 0 1rem;
}

.auth {
	max-width: 420px;
	margin-inline: auto;
}

.auth__title,
.stats__title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	border-bottom: 2px solid var(--gold);
	padding-bottom: 0.35rem;
}

.auth__lead {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.auth__note {
	margin: 1rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--line);
	font-size: 0.8rem;
	color: var(--muted);
}

.auth-notice {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #065f46;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
}

.auth-errors {
	background: #fee2e2;
	border: 1px solid var(--accent);
	color: #7f1d1d;
	border-radius: 6px;
	padding: 0.5rem 0.75rem 0.5rem 1.6rem;
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
}

.auth-form {
	margin: 0;
}

.auth-field {
	margin: 0 0 0.9rem;
}

.auth-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: bold;
	margin-bottom: 0.2rem;
}

.auth-field input {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 1rem;
}

.auth-field small {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.75rem;
	color: var(--muted);
}

.auth-form button {
	width: 100%;
	padding: 0.6rem;
	border: 0;
	border-radius: 6px;
	background: var(--felt);
	color: #ffffff;
	font-size: 1rem;
	cursor: pointer;
}

.auth-form button:hover {
	background: var(--felt-dark);
}

.auth-links {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	text-align: center;
	line-height: 2;
}

/*
 * 復活コードは紙に書き写してもらうものなので、桁が数えられるように
 * 等幅・大きめ・字間を空けて出す（コードそのものには 0 と O のような
 * 読み違えやすい字を入れていない。App\RecoveryCode を参照）。
 */
.recovery-code {
	display: block;
	margin: 0.5rem 0;
	padding: 0;
	background: none;
	font-family: "Courier New", Consolas, monospace;
	font-size: 1.3rem;
	font-weight: bold;
	letter-spacing: 0.12em;
	text-align: center;
	word-break: break-all;
}

/* ---- 戦績 ---- */

.stats__empty {
	margin: 0;
	color: var(--muted);
}

.stats__heading {
	margin: 1.5rem 0 0.5rem;
	font-size: 1rem;
}

.stats__note {
	margin: 0.6rem 0 0;
	font-size: 0.75rem;
	color: var(--muted);
}

.stats__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stat {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	text-align: center;
}

.stat__label {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
}

.stat__value {
	display: block;
	font-size: 1.4rem;
	font-weight: bold;
	line-height: 1.3;
}

.stat__value small {
	font-size: 0.75rem;
	font-weight: normal;
	color: var(--muted);
}

/* 表は狭い画面で横にはみ出すので、この枠の中だけで横スクロールさせる */
.stats__scroll {
	overflow-x: auto;
}

.stats-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	white-space: nowrap;
}

.stats-table th,
.stats-table td {
	border: 1px solid var(--line);
	padding: 0.35rem 0.6rem;
	text-align: right;
}

.stats-table thead th {
	background: #f3f4f6;
	text-align: center;
}

.stats-table tbody th {
	text-align: left;
}

.stats-table .trump {
	text-align: center;
	font-size: 1.1rem;
}

.stats-table .trump--red {
	color: var(--accent);
}

.stats-table--recent td:last-child {
	text-align: center;
	font-weight: bold;
}

.stats-table--recent .is-win td:last-child {
	color: #065f46;
}

.stats-table--recent .is-lose td:last-child {
	color: var(--muted);
}

/* 相手の名前。数字の列と違って左寄せにする */
.stats-table__who {
	text-align: left;
}

/* ---- 上位一覧 ---- */

.stats-table__rank {
	text-align: center;
	color: var(--muted);
}

/* 自分の行。順位表の中から自分を探さずに済むように */
.stats-table--ranking .is-you {
	background: #fff7ed;
}

.stats-table--ranking .is-you th,
.stats-table--ranking .is-you td {
	font-weight: bold;
}

/* ---- 神様たちの成績 ---- */

.god {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.god__face {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.god__name {
	font-weight: bold;
}
