/* Original interface styling: © 2026 202ch.com. */
html {
	max-width: 100%;
	overflow-x: clip;
}
.tool-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
}
.tool-title-row .tool-title {
	margin: 0;
}
#vs-entry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 7px 14px;
	border: 1px solid #c8d9f7;
	border-radius: 10px;
	background: #edf3ff;
	color: #265bcc;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	text-decoration: none;
}
#vs-entry:focus-visible {
	outline: 3px solid #2866dd;
	outline-offset: 3px;
}
:root {
	color-scheme: dark;
	--bg: #0b0e0d;
	--panel: #171b18;
	--line: #343b35;
	--cream: #f2e8d5;
	--muted: #929b93;
	--gold: #d8b875;
	--green: #287a57;
	--red: #a83b41;
}

.mode-card,
.result-card,
.arrangement-card {
	margin-bottom: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #121513;
	box-shadow: 0 12px 28px #0005;
}
.game-selector {
	margin: 5px 11px 3px;
	padding: 8px;
	border-radius: 10px;
	background: #101311;
	box-shadow: none;
}
.finish-message {
	margin: 2px 11px 5px;
	padding: 10px;
	border: 1px solid #48a47b;
	border-radius: 9px;
	color: #6fe0a7;
	background: #163b2b;
	text-align: center;
	font-weight: 900;
}
.result-card {
	margin-top: 10px;
	margin-bottom: 0;
}
.inline-card {
	margin: 5px 11px 0;
	box-shadow: none;
}
.result-card.inline-card {
	margin-top: 5px;
	padding-block: 9px;
}
.arrangement-card {
	margin-top: 10px;
	margin-bottom: 0;
	border-color: #75623e;
	background: linear-gradient(135deg, #1b1a14, #121513);
}
.arrangement-card > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.arrangement-card span {
	color: var(--gold);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.15em;
}
.arrangement-card small {
	color: var(--muted);
	font-size: 9px;
	font-weight: 800;
}
.arrangement-card > strong {
	display: block;
	margin-top: 6px;
	color: #fff8e8;
	font-size: 23px;
	line-height: 1.25;
}
.arrangement-card p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 10px;
	line-height: 1.55;
}
.result-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.result-head h2 {
	margin: 2px 0 7px;
	font-size: 17px;
}
.stats {
	display: grid;
	text-align: right;
}
.stats span {
	color: var(--gold);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.12em;
}
.stats strong {
	font-size: 16px;
}
.stats small {
	color: var(--muted);
	font-size: 9px;
}
.empty-result {
	margin: 4px 0;
	color: var(--muted);
	font-size: 12px;
}
.result-list {
	max-height: 190px;
	overflow-y: auto;
	scrollbar-color: #596159 transparent;
	scrollbar-width: thin;
}
.result-row {
	padding: 9px 0;
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	gap: 8px;
	align-items: center;
	border-top: 1px solid var(--line);
	font-size: 12px;
}
.round-summary {
	display: flex;
	align-items: baseline;
	gap: 4px;
	white-space: nowrap;
}
.round-summary strong {
	color: var(--gold);
	font-size: 13px;
}
.round-summary b {
	color: var(--cream);
	font-weight: 900;
}
.dart-result {
	color: var(--muted);
	line-height: 1.45;
}
.round-ppd {
	display: grid;
	text-align: right;
	white-space: nowrap;
}
.round-ppd small {
	color: var(--gold);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.08em;
}
.round-ppd strong {
	color: #fff;
	font-size: 13px;
}
.result-row.bust .round-summary b {
	color: #ff777d;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: radial-gradient(circle at 50% -15%, #29332c 0, transparent 35rem), var(--bg);
	color: var(--cream);
	font-family: Arial, "Noto Sans JP", sans-serif;
}
button,
input {
	font: inherit;
}
button {
	cursor: pointer;
	touch-action: manipulation;
}
button:disabled {
	cursor: not-allowed;
	opacity: 0.3;
}
.app {
	width: min(560px, 100%);
	min-height: 100dvh;
	margin: auto;
	padding: 12px;
}
.calculator {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(145deg, #1e231f, var(--panel));
	box-shadow: 0 20px 48px #0007;
}
header {
	min-height: 65px;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	background: #101311;
}
header > div {
	display: flex;
	align-items: baseline;
	gap: 9px;
}
header span,
.round-score span {
	color: var(--gold);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.15em;
}
header strong {
	font-family: Georgia, serif;
	font-size: 26px;
}
.total strong {
	color: #fff;
	font-size: 39px;
}
.round-score {
	padding: 10px 16px 2px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.remaining-score {
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 12px;
}
.remaining-score strong {
	color: #fff9ec;
	font-family: Georgia, serif;
	font-size: 58px;
	line-height: 1;
}
.current-ppd {
	display: grid;
	flex: 0 0 auto;
	text-align: right;
}
.current-ppd strong {
	color: #fff;
	font-family: Georgia, serif;
	font-size: 28px;
	line-height: 1;
}
.current-ppd span {
	font-size: 9px;
}
.throws {
	padding: 8px 11px 11px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.throws > div {
	min-height: 44px;
	padding: 5px 7px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 5px;
	border: 1px dashed #465047;
	border-radius: 10px;
	color: #717a72;
	background: #111412;
}
.throws > div.filled {
	border-style: solid;
	border-color: #657067;
	color: var(--cream);
	background: #272d28;
}
.throws span,
.throws small {
	font-size: 10px;
	font-weight: 800;
}
.throws strong {
	font-size: 19px;
	text-align: center;
}
.manual {
	padding: 8px 11px;
	display: grid;
	grid-template-columns: 1fr 106px;
	gap: 6px;
	border-block: 1px solid var(--line);
	background: #101311;
}
.manual input {
	min-width: 0;
	height: 45px;
	padding: 0 11px;
	border: 1px solid #4a534c;
	border-radius: 9px;
	outline: 0;
	color: var(--cream);
	background: #171b18;
	font-size: 16px;
}
.manual input:focus {
	border-color: var(--gold);
}
.manual button {
	border: 0;
	border-radius: 9px;
	color: #181b19;
	background: var(--cream);
	font-size: 13px;
	font-weight: 900;
}
.multipliers {
	padding: 9px 11px 6px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}
.multipliers button {
	min-height: 47px;
	border: 1px solid #4b544d;
	border-radius: 9px;
	color: #fff;
	background: #292f2a;
	font-weight: 900;
	font-size: 15px;
}
.multipliers small {
	margin-left: 5px;
	opacity: 0.7;
}
.multipliers .triple.selected {
	border-color: #4fc28c;
	background: var(--green);
	box-shadow: 0 0 0 2px #35a77633;
}
.multipliers .double.selected {
	border-color: #ec7479;
	background: var(--red);
	box-shadow: 0 0 0 2px #df555a33;
}
.numbers {
	padding: 0 11px 7px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}
.numbers button {
	min-height: 50px;
	border: 1px solid #d5c9b3;
	border-radius: 9px;
	color: #161916;
	background: var(--cream);
	box-shadow: inset 0 -3px #0002;
	font-family: Georgia, serif;
	font-size: 25px;
	font-weight: 900;
}
.numbers button:active,
.bull button:active {
	transform: translateY(1px);
	box-shadow: none;
}
.bull,
.actions {
	padding: 0 11px 7px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}
.bull button {
	min-height: 42px;
	border: 1px solid #46a57a;
	border-radius: 9px;
	color: #fff;
	background: #225f46;
	font-weight: 900;
	font-size: 14px;
}
.bull button:last-child {
	border-color: #d9656a;
	background: #86343a;
}
.actions button {
	min-height: 39px;
	border: 1px solid #505a52;
	border-radius: 9px;
	color: var(--cream);
	background: transparent;
	font-weight: 800;
	font-size: 14px;
}
.confirm {
	width: calc(100% - 22px);
	min-height: 48px;
	margin: 0 11px 4px;
	border: 0;
	border-radius: 10px;
	color: #fff;
	background: var(--green);
	font-size: 15px;
	font-weight: 900;
}
.reset {
	width: calc(100% - 22px);
	min-height: 48px;
	margin: 5px 11px 4px;
	border: 1px solid #75623e;
	border-radius: 10px;
	color: #fff8e8;
	background: #393326;
	font-size: 15px;
	font-weight: 900;
}
.mode-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 5px;
}
.mode-title span,
.mode-line > span {
	color: var(--gold);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
}
.mode-line {
	display: grid;
	grid-template-columns: 18px 70px 1fr;
	gap: 5px;
	align-items: center;
	margin-top: 4px;
}
.language-line {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 5px;
	align-items: center;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
}
.language-line > span {
	color: var(--gold);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
}
.language-buttons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3px;
}
.mode-line > strong {
	color: var(--gold);
	text-align: center;
}
.zero-one-buttons {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 3px;
}
.rule-buttons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}
.zero-one-buttons button,
.rule-buttons button,
.countup-button,
.compact-mode,
.language-buttons button {
	min-height: 30px;
	padding: 3px;
	border: 1px solid #465048;
	border-radius: 6px;
	color: var(--muted);
	background: #1c211d;
	font-size: 11px;
	font-weight: 900;
}
.countup-button {
	width: 100%;
}
.compact-mode {
	min-height: 25px;
	padding-inline: 10px;
}
.zero-one-buttons button.active,
.rule-buttons button.active,
.countup-button.active,
.compact-mode.active,
.language-buttons button.active {
	border-color: var(--cream);
	color: #171a18;
	background: var(--cream);
}
.related-tool {
	display: flex;
	justify-content: center;
	margin: 12px 0 0;
}
.related-tool a {
	padding: 7px 12px;
	border: 1px solid #465048;
	border-radius: 999px;
	color: var(--gold);
	background: #121513;
	font-size: 11px;
	font-weight: 900;
	text-decoration: none;
}
.related-tool a:hover,
.related-tool a:focus-visible {
	border-color: var(--gold);
	color: var(--cream);
}
.site-footer {
	padding: 11px 4px 3px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	color: #6f7871;
	font-size: 9px;
}

@media (max-width: 430px) {
	.app {
		padding: 3px;
	}
	.mode-card {
		margin: 3px 4px 2px;
		padding: 4px 5px;
	}
	.result-card {
		padding: 8px;
		border-radius: 12px;
	}
	.inline-card {
		margin: 3px 4px 0;
	}
	.mode-title {
		margin-bottom: 1px;
	}
	.mode-title span,
	.mode-line > span {
		font-size: 8px;
	}
	.mode-line {
		grid-template-columns: 14px 58px 1fr;
		gap: 2px;
		margin-top: 2px;
	}
	.language-line {
		grid-template-columns: 72px 1fr;
		gap: 2px;
		margin-top: 3px;
		padding-top: 3px;
	}
	.language-line > span {
		font-size: 8px;
	}
	.language-buttons {
		gap: 2px;
	}
	.zero-one-buttons {
		gap: 2px;
	}
	.zero-one-buttons button,
	.rule-buttons button,
	.countup-button,
	.language-buttons button {
		min-height: 24px;
		border-radius: 4px;
		font-size: 8px;
	}
	.compact-mode {
		min-height: 21px;
		font-size: 8px;
	}
	.arrangement-card {
		padding: 8px;
		border-radius: 12px;
	}
	.arrangement-card > strong {
		font-size: 20px;
	}
	.arrangement-card p {
		font-size: 8px;
	}
	header {
		min-height: 42px;
		padding: 3px 8px;
	}
	header strong {
		font-size: 19px;
	}
	.total strong {
		font-size: 27px;
	}
	.round-score {
		padding: 2px 8px 0;
		gap: 7px;
	}
	.remaining-score {
		gap: 7px;
	}
	.remaining-score strong {
		font-size: 36px;
	}
	.current-ppd strong {
		font-size: 23px;
	}
	.current-ppd span {
		font-size: 8px;
	}
	.throws {
		padding: 1px 4px 3px;
		gap: 3px;
	}
	.throws > div {
		min-height: 34px;
		padding: 2px 4px;
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 3px;
	}
	.throws span,
	.throws small {
		font-size: 9px;
	}
	.throws strong {
		font-size: 17px;
		text-align: center;
	}
	.manual {
		padding: 3px 4px;
		grid-template-columns: 1fr 82px;
	}
	.manual input {
		height: 31px;
		font-size: 13px;
	}
	.manual button {
		font-size: 11px;
	}
	.multipliers {
		padding: 3px 4px 2px;
		gap: 3px;
	}
	.multipliers button {
		min-height: 31px;
		font-size: 13px;
	}
	.numbers {
		padding: 0 4px 2px;
		gap: 2px;
	}
	.numbers button {
		min-height: 34px;
		border-radius: 5px;
		font-size: 20px;
	}
	.bull,
	.actions {
		padding: 0 4px 2px;
		gap: 2px;
	}
	.bull button,
	.actions button {
		min-height: 28px;
		font-size: 12px;
	}
	.confirm {
		width: calc(100% - 8px);
		min-height: 35px;
		margin: 0 4px 1px;
		font-size: 13px;
	}
	.reset {
		width: calc(100% - 8px);
		min-height: 35px;
		margin: 3px 4px 2px;
		font-size: 13px;
	}
	.result-row {
		grid-template-columns: max-content minmax(0, 1fr) max-content;
		gap: 4px;
		font-size: 10px;
	}
	.round-summary {
		display: grid;
		gap: 0;
	}
	.round-summary strong,
	.round-ppd strong {
		font-size: 11px;
	}
	.dart-result {
		font-size: 10px;
	}
	.result-list {
		max-height: 154px;
	}
	.site-footer {
		padding-inline: 2px;
		font-size: 7px;
	}
}

/* 202ch bright brand sample: 2026-09-01 */
:root {
	color-scheme: light;
	--bg: #f4f8fb;
	--panel: #ffffff;
	--line: #d9e6ef;
	--cream: #ffffff;
	--muted: #64748b;
	--gold: #2563eb;
	--green: #14835f;
	--red: #be4451;
	--brand: #2563eb;
	--brand-dark: #163d72;
	--brand-soft: #eaf4ff;
	--slate: #0f2740;
}

body {
	background:
		radial-gradient(circle at 12% 0%, rgba(125, 211, 252, 0.28), transparent 30rem),
		linear-gradient(180deg, #f8fbff 0%, #edf4f8 100%);
	color: var(--slate);
	font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
}

.app {
	width: min(640px, 100%);
	padding: 8px;
}

.site-header {
	min-height: 0;
	margin-bottom: 8px;
	padding: 8px;
	display: grid;
	gap: 7px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 30px rgba(30, 64, 175, 0.08);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #172033;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.site-brand strong {
	color: var(--brand);
	font: inherit;
}

.site-brand > span:last-child {
	color: #172033;
	font-size: 14px;
	letter-spacing: -0.01em;
}

.brand-icon {
	display: block;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	object-fit: contain;
}

.top-tool-nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
}

.top-tool-nav a {
	min-width: 0;
	min-height: 36px;
	padding: 5px 3px;
	display: grid;
	place-items: center;
	border: 1px solid #dce8f2;
	border-radius: 10px;
	color: #52657b;
	background: #fff;
	box-shadow: 0 2px 7px rgba(15, 39, 64, 0.05);
	text-align: center;
	text-decoration: none;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.15;
}

.top-tool-nav a:hover,
.top-tool-nav a:focus-visible {
	border-color: #93c5fd;
	color: #1d4ed8;
	background: #eff6ff;
}

.top-tool-nav a.active {
	border-color: var(--brand);
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22);
}

.calculator {
	border-color: #d9e6ef;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 42px rgba(15, 39, 64, 0.1);
}

.score-overview {
	margin: 8px;
	overflow: hidden;
	border: 1px solid #bfdbfe;
	border-radius: 16px;
	background: linear-gradient(145deg, #ffffff, #edf6ff);
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.09);
}

.game-head {
	min-height: 36px;
	padding: 5px 10px;
	border-bottom: 1px solid #dbeafe;
	background: rgba(255, 255, 255, 0.72);
}

.game-head span,
.round-score span {
	color: #4b6f9c;
}

.game-head strong {
	color: #163d72;
	font-family: inherit;
	font-size: 19px;
	font-weight: 900;
}

.game-head .total strong {
	color: #0f2740;
	font-size: 25px;
}

.round-score {
	padding: 7px 10px 4px;
}

.remaining-score strong {
	color: #0f2740;
	font-family: inherit;
	font-size: 48px;
	font-weight: 900;
	letter-spacing: -0.04em;
}

.current-ppd strong {
	color: var(--brand);
	font-family: inherit;
	font-size: 26px;
	font-weight: 900;
}

.throws {
	padding: 2px 8px 8px;
	gap: 5px;
}

.throws > div {
	min-height: 38px;
	border: 1px solid #d6e4ef;
	color: #8493a7;
	background: rgba(255, 255, 255, 0.88);
}

.throws > div.filled {
	border-color: #93c5fd;
	color: #172b45;
	background: #eff6ff;
}

.throws span,
.throws small {
	color: #64748b;
}

.throws strong {
	color: #163d72;
}

.manual {
	border-color: #e2e8f0;
	background: #f8fafc;
}

.manual input {
	border-color: #cbd9e5;
	color: #172b45;
	background: #fff;
}

.manual input:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.28);
}

.manual button {
	color: #fff;
	background: #335f8f;
}

.multipliers button {
	color: #42566e;
	border-color: #d7e2ec;
	background: #f8fafc;
}

.multipliers .triple {
	border-color: #fecdd3;
	color: #be123c;
	background: #fff1f2;
}

.multipliers .double {
	border-color: #bae6fd;
	color: #0369a1;
	background: #f0f9ff;
}

.multipliers .triple.selected {
	border-color: #f43f5e;
	background: #ffe4e6;
	box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.12);
}

.multipliers .double.selected {
	border-color: #0ea5e9;
	background: #e0f2fe;
	box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.12);
}

.numbers button {
	border-color: #cbd9e5;
	color: #14283f;
	background: #fff;
	box-shadow: 0 3px 0 #dce7ef;
}

.bull button {
	border-color: #6ee7b7;
	color: #065f46;
	background: #d1fae5;
}

.bull button:last-child {
	border-color: #fda4af;
	color: #9f1239;
	background: #ffe4e6;
}

.actions button {
	border-color: #cbd9e5;
	color: #40556d;
	background: #fff;
}

.confirm {
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.reset {
	border-color: #2563eb;
	color: #fff;
	background: #1e4f8a;
}

.mode-card,
.result-card,
.arrangement-card {
	border-color: #d9e6ef;
	color: #172b45;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 25px rgba(15, 39, 64, 0.07);
}

.game-selector {
	border-color: #dce8f2;
	background: #f8fbfe;
	box-shadow: none;
}

.mode-title span,
.mode-line > span,
.language-line > span,
.mode-line > strong {
	color: #46719f;
}

.language-line {
	border-color: #dce8f2;
}

.zero-one-buttons button,
.rule-buttons button,
.countup-button,
.compact-mode,
.language-buttons button {
	border-color: #d7e2ec;
	color: #607086;
	background: #eef3f7;
}

.zero-one-buttons button.active,
.rule-buttons button.active,
.countup-button.active,
.compact-mode.active,
.language-buttons button.active {
	border-color: #93c5fd;
	color: #1d4ed8;
	background: #fff;
	box-shadow:
		0 1px 4px rgba(37, 99, 235, 0.12),
		inset 0 0 0 1px #dbeafe;
}

.arrangement-card {
	border-color: #bfdbfe;
	background: linear-gradient(145deg, #eff6ff, #fff);
}

.arrangement-card span,
.stats span,
.round-summary strong,
.round-ppd small {
	color: #2563eb;
}

.arrangement-card small,
.arrangement-card p,
.stats small,
.empty-result,
.dart-result {
	color: #64748b;
}

.arrangement-card > strong,
.stats strong,
.round-ppd strong,
.round-summary b {
	color: #172b45;
}

.result-row {
	border-color: #e2e8f0;
}

.finish-message {
	border-color: #86efac;
	color: #166534;
	background: #dcfce7;
}

.related-tool a {
	border-color: #bfdbfe;
	color: #1d4ed8;
	background: #eff6ff;
}

.related-tool a:hover,
.related-tool a:focus-visible {
	border-color: #60a5fa;
	color: #1e40af;
	background: #fff;
}

.footer-tool-links {
	width: min(470px, calc(100% - 16px));
	margin: 12px auto 6px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.footer-tool-links a {
	min-height: 42px;
	padding: 8px 10px;
	display: grid;
	place-items: center;
	border: 1px solid #bfdbfe;
	border-radius: 11px;
	color: #1d4ed8;
	background: #eff6ff;
	box-shadow: 0 5px 12px rgba(37, 99, 235, 0.09);
	text-align: center;
	text-decoration: none;
	font-size: 12px;
	font-weight: 900;
}

.footer-tool-links a.home-link {
	border-color: #2563eb;
	color: #fff;
	background: #2563eb;
}

.site-footer {
	color: #8091a5;
}

@media (min-width: 620px) {
	.site-header {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
	}
}

@media (max-width: 430px) {
	.app {
		padding: 4px;
	}

	.site-header {
		margin-bottom: 4px;
		padding: 6px;
		gap: 5px;
		border-radius: 12px;
	}

	.site-brand {
		font-size: 12px;
	}

	.site-brand > span:last-child {
		font-size: 12px;
	}

	.brand-icon {
		width: 28px;
		height: 28px;
		flex-basis: 28px;
	}

	.top-tool-nav {
		gap: 2px;
	}

	.top-tool-nav a {
		min-height: 31px;
		padding: 3px 2px;
		border-radius: 7px;
		font-size: 8px;
	}

	.score-overview {
		margin: 4px;
		border-radius: 12px;
	}

	.game-head {
		min-height: 30px;
		padding: 3px 8px;
	}

	.game-head strong {
		font-size: 17px;
	}

	.game-head .total strong {
		font-size: 21px;
	}

	.round-score {
		padding: 3px 8px 1px;
	}

	.remaining-score strong {
		font-size: 40px;
	}

	.current-ppd strong {
		font-size: 22px;
	}

	.throws {
		padding: 2px 5px 5px;
	}

	.throws > div {
		min-height: 32px;
	}

	.footer-tool-links {
		width: calc(100% - 8px);
		margin-top: 8px;
		gap: 4px;
	}

	.footer-tool-links a {
		min-height: 36px;
		padding-inline: 6px;
		font-size: 10px;
	}
}

/* Layout refinement sample: settings first, ad-safe spacing, unified score card. */
.game-selector {
	margin-top: 8px;
}

.game-selector .language-line {
	margin: 0 0 7px;
	padding: 0 0 7px;
	border-top: 0;
	border-bottom: 1px solid #dce8f2;
}

.ad-slot-calculator {
	min-height: 90px;
	margin: 12px 14px;
	display: grid;
	place-items: center;
	border: 1px dashed #c8d9e7;
	border-radius: 12px;
	color: #90a1b4;
	background: rgba(248, 251, 254, 0.55);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.game-head {
	padding-bottom: 1px;
	border-bottom: 0;
	background: transparent;
}

.round-score {
	padding-top: 1px;
}

.remaining-score {
	position: relative;
}

.score-edit-button {
	position: relative;
	min-width: 0;
	padding: 0 18px 1px 0;
	border: 0;
	border-bottom: 1px dashed #93b7d8;
	color: #0f2740;
	background: transparent;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 50px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.025em;
}

.score-edit-button::after {
	content: "✎";
	position: absolute;
	right: 1px;
	bottom: 5px;
	color: #60a5fa;
	font-family: Arial, sans-serif;
	font-size: 11px;
}

.score-edit-button:hover,
.score-edit-button:focus-visible {
	color: #1d4ed8;
	border-bottom-color: #2563eb;
	outline: 0;
}

.score-edit-button[aria-disabled="true"] {
	cursor: default;
	border-bottom-color: transparent;
}

.score-edit-button[aria-disabled="true"]::after {
	content: none;
}

.current-ppd strong {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -0.01em;
}

.remaining-editor {
	margin: 2px 8px 7px;
	padding: 7px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 62px 52px;
	gap: 5px;
	align-items: center;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 5px 14px rgba(37, 99, 235, 0.08);
}

.remaining-editor[hidden] {
	display: none;
}

.remaining-editor label {
	grid-column: 1 / -1;
	color: #42658c;
	font-size: 10px;
	font-weight: 900;
}

.remaining-editor input {
	min-width: 0;
	height: 36px;
	padding: 0 9px;
	border: 1px solid #93c5fd;
	border-radius: 8px;
	outline: 0;
	color: #0f2740;
	background: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 900;
}

.remaining-editor input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}

.remaining-editor button {
	height: 36px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 900;
}

.remaining-apply {
	border: 1px solid #2563eb;
	color: #fff;
	background: #2563eb;
}

.remaining-cancel {
	border: 1px solid #cbd9e5;
	color: #53667c;
	background: #fff;
}

.remaining-editor small {
	grid-column: 1 / -1;
	color: #718196;
	font-size: 9px;
	line-height: 1.35;
}

@media (max-width: 430px) {
	.game-selector {
		margin-top: 4px;
	}

	.game-selector .language-line {
		margin-bottom: 4px;
		padding-bottom: 4px;
	}

	.ad-slot-calculator {
		min-height: 84px;
		margin: 10px 12px;
		border-radius: 9px;
		font-size: 8px;
	}

	.game-head {
		padding-bottom: 0;
	}

	.round-score {
		padding-top: 0;
	}

	.score-edit-button {
		padding-right: 15px;
		font-size: 40px;
	}

	.score-edit-button::after {
		bottom: 3px;
		font-size: 9px;
	}

	.remaining-editor {
		margin: 1px 5px 5px;
		padding: 5px;
		grid-template-columns: minmax(0, 1fr) 54px 46px;
		gap: 3px;
	}

	.remaining-editor input,
	.remaining-editor button {
		height: 32px;
	}

	.remaining-editor input {
		font-size: 19px;
	}

	.remaining-editor button,
	.remaining-editor label {
		font-size: 9px;
	}

	.remaining-editor small {
		font-size: 8px;
	}
}

/* Compact score summary and policy-conscious ad placement: 2026-09-01. */
.score-summary {
	min-height: 70px;
	display: grid;
	grid-template-columns: minmax(80px, 0.78fr) minmax(145px, 1.35fr) minmax(118px, 0.92fr);
	align-items: stretch;
	border-bottom: 1px solid #dbeafe;
	background: linear-gradient(100deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.score-summary-round {
	min-width: 0;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	gap: 7px;
	border-right: 1px solid #dbeafe;
	color: #163d72;
}

.score-summary-round span,
.score-summary-main > span,
.score-summary-meta span {
	color: #4b6f9c;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.score-summary-round strong {
	color: #163d72;
	font-size: 20px;
	font-weight: 900;
}

.score-summary-main {
	min-width: 0;
	padding: 5px 8px;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1px;
	text-align: center;
}

.score-button-line {
	min-width: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
}

.score-edit-button {
	padding: 0 0 1px;
}

.score-edit-button::after,
.score-edit-button[aria-disabled="true"]::after {
	content: none;
}

.score-button-line small {
	max-width: 64px;
	margin-bottom: 4px;
	color: #4f78a6;
	font-size: 8px;
	font-weight: 800;
	line-height: 1.25;
	text-align: left;
}

.score-button-line small[hidden] {
	display: none;
}

.score-summary-meta {
	min-width: 0;
	display: grid;
	grid-template-rows: 1fr 1fr;
	border-left: 1px solid #dbeafe;
	background: rgba(255, 255, 255, 0.6);
}

.score-summary-meta > div {
	min-width: 0;
	padding: 4px 9px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
}

.score-summary-meta > div + div {
	border-top: 1px solid #dbeafe;
}

.score-summary-meta .total strong {
	color: #0f2740;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	line-height: 1;
}

.score-summary-meta .current-ppd {
	display: flex;
	text-align: initial;
}

.score-summary-meta .current-ppd strong {
	color: #2563eb;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1;
}

.ad-slot-calculator {
	min-height: 90px;
	margin: 26px 14px 8px;
	background: rgba(248, 251, 254, 0.72);
}

@media (max-width: 430px) {
	.score-summary {
		min-height: 61px;
		grid-template-columns: 70px minmax(119px, 1fr) 105px;
	}

	.score-summary-round {
		padding: 5px 6px;
		gap: 4px;
	}

	.score-summary-round span,
	.score-summary-main > span,
	.score-summary-meta span {
		font-size: 8px;
		letter-spacing: 0.08em;
	}

	.score-summary-round strong {
		font-size: 17px;
	}

	.score-summary-main {
		padding: 3px 5px;
	}

	.score-edit-button {
		padding-right: 0;
		font-size: 38px;
	}

	.score-button-line {
		gap: 4px;
	}

	.score-button-line small {
		max-width: 48px;
		margin-bottom: 3px;
		font-size: 7px;
	}

	.score-summary-meta > div {
		padding: 3px 6px;
		gap: 4px;
	}

	.score-summary-meta .total strong {
		font-size: 19px;
	}

	.score-summary-meta .current-ppd strong {
		font-size: 16px;
	}

	.ad-slot-calculator {
		min-height: 84px;
		margin: 22px 12px 6px;
	}
}

/* Unified calculator interaction sample: 2026-09-01. */
[hidden] {
	display: none !important;
}

.ad-slot {
	display: grid;
	place-items: center;
	border: 1px dashed #c8d9e7;
	border-radius: 12px;
	color: #8b9daf;
	background: rgba(248, 251, 254, 0.76);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.ad-slot-top {
	min-height: 90px;
	margin: 28px 14px;
}

.ad-slot-finish {
	min-height: 250px;
	margin: 32px 11px 10px;
}

.mode-title {
	min-height: 31px;
	gap: 10px;
}

.bull-setting {
	min-width: 145px;
	margin: 0;
	padding: 2px;
	display: grid;
	grid-template-columns: auto 1fr 1fr;
	align-items: center;
	gap: 2px;
	border: 1px solid #d5e3ee;
	border-radius: 8px;
	background: #eef4f8;
}

.bull-setting legend {
	display: none;
}

.bull-setting::before {
	content: "BULL";
	padding: 0 4px;
	color: #46719f;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.bull-setting button {
	min-height: 24px;
	padding: 2px 5px;
	border: 1px solid transparent;
	border-radius: 5px;
	color: #64748b;
	background: transparent;
	font-size: 9px;
	font-weight: 900;
}

.bull-setting button.active {
	border-color: #93c5fd;
	color: #1d4ed8;
	background: #fff;
	box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12);
}

.score-summary {
	grid-template-columns: minmax(82px, 0.76fr) minmax(140px, 1.45fr) minmax(120px, 0.94fr);
}

.score-summary-round {
	padding-right: 2px;
	border-right: 0;
}

.score-summary-round strong {
	white-space: nowrap;
}

.score-summary-main {
	padding-left: 0;
}

.score-edit-button {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 900;
}

.score-summary-meta .total strong,
.score-summary-meta .current-ppd strong {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 900;
}

.throws > div.pending {
	border-color: #60a5fa;
	color: #1d4ed8;
	background: #eff6ff;
	box-shadow: inset 0 0 0 1px #dbeafe;
}

.throws span,
.throws small {
	font-size: 11px;
}

.throws strong {
	font-size: 20px;
}

.throws small {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.play-controls {
	display: block;
}

.multipliers {
	grid-template-columns: repeat(3, 1fr);
}

.multipliers .single {
	border-color: #bbf7d0;
	color: #047857;
	background: #ecfdf5;
}

.multipliers button.active,
.multipliers button.suggested {
	border-width: 2px;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.13);
}

.multipliers .triple.active {
	border-color: #f43f5e;
	background: #ffe4e6;
}

.multipliers .double.active {
	border-color: #0ea5e9;
	background: #e0f2fe;
}

.multipliers .single.active {
	border-color: #10b981;
	background: #d1fae5;
}

.numbers button.pending {
	border-color: #2563eb;
	color: #1d4ed8;
	background: #dbeafe;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.numbers button.suggested,
.bull button.suggested {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.bull.one-bull {
	grid-template-columns: 1fr;
}

.dart-actions {
	padding: 0 11px 9px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.dart-actions button {
	min-height: 40px;
	padding: 4px;
	border: 1px solid #cbd9e5;
	border-radius: 9px;
	color: #40556d;
	background: #fff;
	font-size: 12px;
	font-weight: 900;
}

.dart-actions .next-dart {
	border-color: #93c5fd;
	color: #1d4ed8;
	background: #eff6ff;
}

.dart-actions #manual-bust {
	border-color: #fecdd3;
	color: #be123c;
	background: #fff1f2;
}

.arrangement-card > div:first-child {
	display: flex;
}

.candidate-grid {
	margin-top: 9px;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.candidate-card {
	min-width: 0;
	min-height: 104px;
	padding: 7px 5px;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 5px;
	border: 1px solid #d7e4ef;
	border-radius: 10px;
	color: #163d72;
	background: #fff;
	text-align: left;
}

.candidate-card.selected {
	border-color: #3b82f6;
	background: #eff6ff;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.candidate-head,
.candidate-foot,
.candidate-route {
	min-width: 0;
	display: flex;
	align-items: center;
}

.candidate-head {
	justify-content: space-between;
	gap: 3px;
	color: #476d98 !important;
	font-size: 8px !important;
	letter-spacing: 0.04em !important;
}

.candidate-head b {
	padding: 2px 4px;
	border-radius: 999px;
	color: #fff;
	background: #2563eb;
	font-size: 7px;
}

.candidate-route {
	justify-content: center;
	gap: 3px;
}

.route-step {
	min-width: 27px;
	padding: 5px 3px;
	border-radius: 6px;
	color: #fff;
	background: #64748b;
	text-align: center;
	font-size: 11px;
	line-height: 1;
}

.route-step.triple {
	background: #e11d48;
}
.route-step.double {
	background: #0284c7;
}
.route-step.single {
	background: #059669;
}
.route-step.bull {
	background: #7c3aed;
}

.candidate-foot {
	color: #526f8f !important;
	font-size: 8px !important;
	line-height: 1.25;
	letter-spacing: 0 !important;
}

.result-row > strong {
	color: #163d72;
	font-size: 13px;
	white-space: nowrap;
}

.result-row.bust > strong {
	color: #be123c;
}

.result-throws {
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	color: #64748b;
	font-size: 11px;
	line-height: 1.35;
}

.result-row > .round-ppd {
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 900;
}

.finish-zone .finish-message {
	margin-top: 10px;
}

.finish-zone .result-card {
	margin: 8px 11px 0;
	box-shadow: none;
}

.finish-zone .reset {
	margin-top: 8px;
	border-color: #2563eb;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

@media (max-width: 430px) {
	.ad-slot-top {
		min-height: 80px;
		margin: 24px 12px;
	}

	.ad-slot-finish {
		min-height: 220px;
		margin: 32px 7px 8px;
	}

	.mode-title {
		min-height: 27px;
	}

	.bull-setting {
		min-width: 132px;
	}

	.bull-setting button {
		min-height: 21px;
		font-size: 8px;
	}

	.score-summary {
		grid-template-columns: 76px minmax(108px, 1fr) 105px;
	}

	.score-summary-round {
		padding-left: 7px;
	}

	.score-summary-round strong {
		font-size: 15px;
	}

	.score-edit-button {
		font-size: 38px;
	}

	.throws span,
	.throws small {
		font-size: 10px;
	}

	.throws strong {
		font-size: 18px;
	}

	.multipliers button {
		min-height: 42px;
		padding-inline: 2px;
		font-size: 11px;
	}

	.multipliers small {
		margin-left: 2px;
	}

	.dart-actions {
		padding-inline: 6px;
		gap: 3px;
	}

	.dart-actions button {
		min-height: 38px;
		font-size: 9px;
	}

	.candidate-grid {
		gap: 3px;
	}

	.candidate-card {
		min-height: 96px;
		padding: 5px 3px;
	}

	.route-step {
		min-width: 24px;
		padding: 5px 2px;
		font-size: 9px;
	}

	.result-row {
		grid-template-columns: 1fr max-content;
		gap: 5px;
	}

	.result-throws {
		grid-column: 1 / -1;
		grid-row: 2;
		font-size: 10px;
	}

	.result-row > .round-ppd {
		grid-column: 2;
		grid-row: 1;
	}
}

/* Round emphasis and clearly placed score-edit guidance: 2026-09-05. */
.score-summary {
	grid-template-columns: 9rem minmax(0, 1fr) 7.75rem;
}

.score-summary-round {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
}

.round-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.125rem 0.375rem;
	max-width: 100%;
}

.score-summary-round .round-label {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

#round-number {
	display: inline-flex;
	align-items: baseline;
	gap: 0.0625rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

#round-current {
	color: #163d72;
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
}

#round-number .round-limit,
#round-limit {
	color: #4b6f9c;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
}

#score-edit-hint {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.25em;
	max-width: 100%;
	margin: 0;
	color: #24578a;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
}

#score-edit-hint > span {
	color: inherit;
	font: inherit;
	letter-spacing: 0;
	white-space: normal;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.score-edit-button:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
	border-radius: 4px;
}

@media (max-width: 430px) {
	.score-summary {
		grid-template-columns: 7.25rem minmax(0, 1fr) 6.375rem;
	}

	.score-summary-round {
		padding: 0.375rem;
	}

	.round-line {
		column-gap: 0.25rem;
	}

	#round-current {
		font-size: 1.75rem;
	}

	.score-edit-button {
		font-size: clamp(1.75rem, 10vw, 2.375rem);
	}
}

/* Keep the score readable when zoom or a very narrow viewport reduces space. */
@media (max-width: 359px) {
	.score-summary {
		grid-template-columns: 7rem minmax(0, 1fr) 5.875rem;
	}
}

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

	.score-summary-round {
		grid-column: 1 / -1;
	}
}

/* Shared branding, distinct input/reset actions and a compact help section. */
.tool-title {
	margin: 2px 0 0;
	color: #163d72;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.4;
}

.manual {
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: stretch;
}

.manual input,
.manual button {
	min-height: 44px;
	height: auto;
}

.manual input {
	font-size: 1rem;
}

.manual button {
	padding: 0.375rem 0.625rem;
	font-size: 0.875rem;
	line-height: 1.3;
}

.manual .game-reset {
	margin-left: 0.25rem;
	border: 1px solid #aac5de;
	color: #24578a;
	background: #eef6fd;
}

.manual .game-reset:hover {
	border-color: #5688b5;
	background: #dfedfa;
}

.manual button:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.tool-guide {
	margin-top: 1rem;
	padding: 0.875rem;
	border: 1px solid #d9e6ef;
	border-radius: 12px;
	color: #42566e;
	background: #f8fbff;
}

.tool-guide h2 {
	margin: 0;
	color: #163d72;
	font-size: 1rem;
}

.tool-guide p {
	margin: 0.625rem 0 0;
	font-size: 0.875rem;
	line-height: 1.7;
}

.page-language-links a {
	color: #24578a;
	text-underline-offset: 0.2em;
}

@media (max-width: 430px) {
	.manual {
		gap: 0.25rem;
	}

	.manual button {
		padding-inline: 0.375rem;
	}
}

@media (max-width: 359px) {
	.manual {
		grid-template-columns: 1fr 1fr;
	}

	.manual input {
		grid-column: 1 / -1;
	}
}
