/*
 * ============================================================
 *  TNT | Yahtzee SPARK Edition — Styles
 *  File:    yahtzeeSPARKStyles.css
 *  Coder:   KLP
 *  Created: 2026-06-14
 *
 *  Single stylesheet for the Yahtzee SPARK Edition.
 *  Requires CSS custom properties from tnt-base-styles.css.
 *  Replaces yahtzee_js_app.css, yahtzee_dicelayout.css,
 *  yahtzee_scorecard.css, and yahtzee_media_styles.css with
 *  a clean TNT amber/dark palette.
 * ============================================================
 */


/* ── Body ── */
body {
	background-color: #f8f5f0;
}

/* ── Game content max-width — adjust this to widen/narrow both panels ── */
#appContent {
	max-width: 600px;
}


/* ═══════════════════════════════════════════════════════════════
   GAME PAGE HEADER
═══════════════════════════════════════════════════════════════ */

#gamePageHeader {
	background: var(--tnt-dark);
	border-bottom: 3px solid var(--tnt-amber);
	color: white;
}

#gamePageHeader h1 {
	color: white;
}

.game-tagline {
	font-style: italic;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.88rem;
}

.spark-badge {
	display: inline-block;
	font-size: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	background: var(--tnt-amber);
	color: var(--tnt-dark);
	padding: 3px 8px;
	border-radius: 12px;
	vertical-align: middle;
	margin-left: 6px;
	line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   DICE LAYOUT
═══════════════════════════════════════════════════════════════ */

div#diceLayout {
	background-color: white;
	border-radius: 12px;
	padding: 0.5rem 1rem 0.25rem 1rem;
	margin-bottom: 0.75rem;
	border: 1px solid #dee2e6;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

div#diceLayout table {
	width: 60%;
	max-width: 320px;
	margin: 0 auto;
}

div#diceLayout table img {
	width: 100%;
	height: auto;
}

div#diceLayout input {
	margin-top: 0;
}

div#diceLayout div#info {
	margin-top: 0;
	margin-bottom: 0;
	text-align: left;
}

div#diceLayout div#info p {
	margin-bottom: 1px;
	text-align: right;
	font-size: 0.82rem;
	color: #666;
}

div#diceLayout div#info p span {
	margin-left: 12px;
	font-weight: 700;
	color: var(--tnt-dark);
}


/* ═══════════════════════════════════════════════════════════════
   ROLL BUTTON
═══════════════════════════════════════════════════════════════ */

input#rollBtn.primaryBtn {
	padding: 5px 18px;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
}

input#rollBtn.ready {
	background-color: var(--tnt-red);
}

input#rollBtn.ready:hover {
	background-color: var(--tnt-red-dark);
	transform: translateY(-1px);
}

input#rollBtn.active {
	background-color: #27AE60;
}

input#rollBtn.inactive {
	background-color: #adb5bd;
	cursor: default;
}


/* ═══════════════════════════════════════════════════════════════
   MESSAGE PARAGRAPH
═══════════════════════════════════════════════════════════════ */

p#msgPara {
	margin: 0.2rem auto 0.1rem auto;
	font-style: italic;
	text-align: center;
	font-size: 0.88rem;
	clear: both;
}

p.encourage {
	color: #27AE60;
	font-weight: 600;
}

p.warn {
	color: var(--tnt-red);
	font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════
   SCORECARD
═══════════════════════════════════════════════════════════════ */

div#scoreCard {
	background-color: #fffbf2;
	border-radius: 12px;
	min-height: 350px;
	padding: 0.75rem 0.5rem 2.5rem 0.5rem;
	border: 2px solid var(--tnt-amber);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	margin-bottom: 2rem;
}

div#scoreCard h2 {
	text-align: center;
	margin-bottom: 6px;
	color: var(--tnt-dark);
	font-family: var(--boogaloo);
	font-size: 1.4rem;
	letter-spacing: 0.5px;
}

div#leftScore,
div#rightScore {
	border: 1px solid #e8c96a;
	border-radius: 10px;
	width: 45%;
	padding: 10px;
}

div#leftScore {
	float: left;
	margin-bottom: 10px;
}

div#rightScore {
	float: right;
	width: 45%;
}

div#leftScore table,
div#rightScore table {
	width: 100%;
	margin: 0;
}

/* All TD cells */
div#leftScore table td,
div#rightScore table td {
	padding-bottom: 2px;
	font-size: 0.88rem;
	background-color: #fdedb0;
}

/* Label column */
div#leftScore table tr td:first-child,
div#rightScore table tr td:first-child {
	text-align: right;
	font-weight: 600;
	padding-right: 5px;
	width: 62%;
	color: #5a3a00;
}

/* Value column */
div#leftScore table tr td:nth-child(2),
div#rightScore table tr td:nth-child(2) {
	background-color: white;
	width: 38%;
	text-align: right;
}

/* Gap rows */
div#leftScore table tr td.gap {
	padding-bottom: 10px;
	background-color: transparent;
}

div#rightScore table tr td.gap {
	padding-bottom: 35px;
	background-color: transparent;
}

/* Grand Total */
div#scoreCard h3#grandTotal {
	text-align: center;
	clear: both;
	padding-top: 12px;
	color: var(--tnt-dark);
	font-family: var(--boogaloo);
	font-size: 1.3rem;
	margin-bottom: 0;
}

/* Inactive scorecard */
div#scoreCard.inactive td {
	cursor: default;
}

/* Clickable scorecard cells */
.clickable {
	cursor: pointer;
	transition: background-color 0.15s;
}

.clickable:hover {
	background-color: var(--tnt-amber) !important;
	color: #fff !important;
}


/* ═══════════════════════════════════════════════════════════════
   STATS OFFCANVAS
═══════════════════════════════════════════════════════════════ */

.tnt-offcanvas {
	background: var(--tnt-dark);
	color: var(--tnt-light);
	width: 320px;
}

.tnt-offcanvas .offcanvas-header {
	border-bottom: 2px solid var(--tnt-amber);
	padding: 1rem 1.25rem;
}

.tnt-offcanvas .offcanvas-title {
	font-family: var(--boogaloo);
	font-size: 1.2rem;
	color: var(--tnt-amber);
}

.offcanvas-intro {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

.offcanvas-section-label {
	color: var(--tnt-amber);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

table#statsTable {
	width: 100%;
	margin-top: 6px;
	border-collapse: collapse;
}

table#statsTable caption {
	color: var(--tnt-amber);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	caption-side: top;
	padding-bottom: 4px;
	text-align: left;
}

table#statsTable tr td:first-child {
	text-align: right;
	padding-right: 14px;
	color: var(--tnt-amber);
	font-weight: 600;
	font-size: 0.88rem;
}

table#statsTable tr td {
	padding: 4px 6px;
	color: var(--tnt-light);
	font-size: 0.88rem;
}

p#previousScoresPara {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
	word-break: break-all;
	line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 400px) {
	div#scoreCard {
		font-size: 0.82em;
	}

	div#leftScore table tr td:first-child,
	div#rightScore table tr td:first-child {
		font-size: 0.75rem;
	}
}
