/* TG Dice Roller — verified roll badges and help box. */

.tgdice-roll {
	--tgdice-accent: #1a7f37;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em;
	max-width: 100%;
	margin: 0.15em 0;
	padding: 0.3em 0.6em;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border-left: 4px solid var(--tgdice-accent);
	border-radius: 6px;
	background: rgba(127, 127, 127, 0.1);
	line-height: 1.5;
	vertical-align: middle;
	font-size: 0.95em;
}

.tgdice-roll.tgdice-crit {
	--tgdice-accent: #b58900;
	background: rgba(181, 137, 0, 0.14);
}

.tgdice-roll.tgdice-fumble {
	--tgdice-accent: #c62828;
	background: rgba(198, 40, 40, 0.1);
}

.tgdice-icon {
	font-size: 1.1em;
}

.tgdice-label {
	font-weight: 600;
}

.tgdice-roll .tgdice-expr {
	padding: 0 0.3em;
	border-radius: 3px;
	background: rgba(127, 127, 127, 0.18);
	font-size: 0.9em;
}

.tgdice-terms {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15em;
}

.tgdice-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.2em;
}

.tgdice-die {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 0.25em;
	border: 1px solid rgba(127, 127, 127, 0.55);
	border-radius: 4px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.tgdice-die.tgdice-max {
	border-color: #1a7f37;
	color: #1a7f37;
	font-weight: 700;
}

.tgdice-die.tgdice-min {
	border-color: #c62828;
	color: #c62828;
}

.tgdice-die.tgdice-dropped {
	opacity: 0.45;
	text-decoration: line-through;
}

.tgdice-total {
	font-size: 1.15em;
	font-variant-numeric: tabular-nums;
}

.tgdice-flag {
	padding: 0 0.4em;
	border-radius: 999px;
	background: var(--tgdice-accent);
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
}

.tgdice-verified {
	color: var(--tgdice-accent);
	font-size: 0.8em;
	white-space: nowrap;
}

.tgdice-removed {
	display: block;
	margin-top: 0.75em;
	padding: 0.5em 0.6em;
	border: 1px dashed rgba(198, 40, 40, 0.6);
	border-radius: 6px;
	font-size: 0.9em;
}

.tgdice-removed-title {
	display: block;
	margin-bottom: 0.25em;
	font-weight: 600;
}

.tgdice-roll.tgdice-is-removed {
	opacity: 0.75;
}

.tgdice-help {
	margin: 0.5em 0 1em;
	font-size: 0.9em;
}

.tgdice-help summary {
	cursor: pointer;
	font-weight: 600;
}

.tgdice-help ul {
	margin: 0.25em 0 0.5em 1.25em;
	padding: 0;
}

.tgdice-help p {
	margin: 0.4em 0;
}

.tgdice-help-note {
	opacity: 0.8;
}
