/* Daily Clock-In Wall
 * Layout: scene always fits the viewport — no mobile stacking.
 * All elements are position:absolute overlays at percentage coords.
 */

/* ─── Page shell ─────────────────────────────────────────────── */
.page-daily-clock-in.site-main {
	padding: 0;
	margin: 0;
	background: #0e0804;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	height: 100dvh;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.page-daily-clock-in.site-main::-webkit-scrollbar {
	display: none;
}

/* ─── Scene container ────────────────────────────────────────── */
/* Height = 100dvh. Width = height × (3/4) via aspect-ratio.
 * When that width exceeds the viewport, the parent scrolls
 * horizontally (no scrollbar) to reveal the full scene. */
.dci-scene {
	position: relative;
	height: 100dvh;
	aspect-ratio: 3 / 4;
	flex-shrink: 0;
	overflow: hidden;
	margin-inline: auto;
}

/* ─── Background wall photo ──────────────────────────────────── */
.dci-wall-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	user-select: none;
	pointer-events: none;
}

/* ─── Workbench image overlay ────────────────────────────────── */
.dci-workbench {
	position: absolute;
	left: 23%;
	top: 40%;
	width: 80%;
	height: auto;
	object-fit: contain;
	object-position: left bottom;
	pointer-events: none;
	user-select: none;
}

/* ─── Static sign images ─────────────────────────────────────── */
.dci-sign-be-careful,
.dci-sign-machines,
.dci-time-card-rack {
	position: absolute;
	pointer-events: none;
	user-select: none;
	object-fit: contain;
}

.dci-sign-be-careful {
	left: 3%;
	top: 15%;
	width: 25%;
}

.dci-sign-machines {
	left: 29%;
	top: 11%;
	width: 29%;
}

.dci-time-card-rack {
	left: 76%;
	top: 38%;
	width: 24%;
}

/* ─── Widget base ────────────────────────────────────────────── */
/* Every interactive widget is an absolutely positioned overlay.
 * Coords are % relative to the scene — they scale with the scene. */
.dci-clock-wrap,
.dci-led-wrap,
.dci-calendar-wrap,
.dci-coins-wrap {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ─── Punch Clock ─────────────────────────────────────────────
 * left:28%, top:49%, width:28%, height:32%
 * The clock machine image fills the hotspot; interactive
 * elements are absolutely positioned within it.
 */
.dci-clock-wrap {
	left: 50%;
	top: 36%;
	width: 28%;
	height: 32%;
}

.dci-clock-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	pointer-events: none;
	user-select: none;
}

/* Time display sits over the clock face — top 20% of the clock area */
.dci-time-display {
	position: absolute;
	top: 17%;
	left: 19%;
	width: 64%;
	height: 19%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Courier New', Courier, monospace;
	font-weight: 700;
	color: #e8d090;
	font-size: 2vh;
	letter-spacing: .06em;
	text-shadow: 0 0 6px rgba(232, 208, 144, 0.6);
	/* line-height: 1; */
}

/* CLOCK IN button — bottom portion of the clock machine */
button#dciPunchBtn.dci-punch-btn {
	position: absolute;
	top: 76%;
    left: 50%;
	transform: translate(-50%, -45%);
    padding: 4% 5%;
	background: rgba(20, 10, 5, 0.82);
	color: #e8d090;
	border: 1px solid #7a5020;
	font-family: 'Courier New', Courier, monospace;
	font-size: 1.2vh;
	font-weight: 700;
	letter-spacing: .1em;
	cursor: pointer;
	border-radius: 2px;
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}

button#dciPunchBtn.dci-punch-btn:hover:not(:disabled) {
	background: rgba(50, 25, 5, 0.9);
	border-color: #e8d090;
}

button#dciPunchBtn.dci-punch-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.dci-clocked-badge {
	position: absolute;
	top: 76%;
    left: 50%;
	transform: translate(-50%, -50%) rotate(-10deg);
    padding: 2% 3%;
	font-family: 'Courier New', Courier, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	color: #00ff88;
	border: 1px solid #00aa55;
	border-radius: 2px;
	background: rgba(0, 25, 12, 0.88);
	white-space: nowrap;
}

.dci-home-btn {
	position: absolute;
	top: 10%;
    left: 15%;
    transform: translate(-50%, -50%);
    padding: 1% 1%;
	font-family: 'Courier New', Courier, monospace;
	font-size: 2vh;
	font-weight: 700;
	letter-spacing: .1em;
	color: #000000;
	border: 1px solid #000000;
	border-radius: 2px;
	background: rgba(213, 174, 109, 0.8);
	white-space: nowrap;
}

.dci-vending-machine-btn {
	position: absolute;
	top: 69%;
    left: 88%;
    transform: translate(-50%, -50%);
    padding: 1% 1%;
	font-family: 'Courier New', Courier, monospace;
	font-size: 2vh;
	font-weight: 700;
	letter-spacing: .1em;
	color: #000000;
	border: 1px solid #000000;
	border-radius: 2px;
	background: rgba(213, 174, 109, 0.8);
	white-space: nowrap;
}

/* ─── Days Safe LED Counter ───────────────────────────────────
 * left:43%, top:3%, width:52%, height:24%
 */
.dci-led-wrap {
	left: 59%;
	top: 10%;
	width: 38%;
	aspect-ratio: 1322 / 902;
}

.dci-led-frame-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
	user-select: none;
}

.dci-led-display {
	position: absolute;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 26%;
	display: flex;
	gap: clamp(1px, 0.3vw, 3px);
	align-items: center;
	justify-content: center;
}

.dci-led-digit {
	font-family: 'Courier New', Courier, monospace;
	font-size: 4vh;
	font-weight: 700;
	color: #ff2200;
	text-shadow:
		0 0 3px #ff2200,
		0 0 10px #ff2200,
		0 0 22px rgba(255, 34, 0, 0.5);
	min-width: .6em;
	text-align: center;
	line-height: 1;
}

.dci-led-caption {
	position: absolute;
	top: 58%;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Courier New', Courier, monospace;
	font-size: clamp(4px, 1.4vw, 11px);
	letter-spacing: .18em;
	color: #c09060;
	white-space: nowrap;
	margin: 0;
	text-transform: uppercase;
}

/* ─── Pin-Up Calendar ─────────────────────────────────────────
 * left:60%, top:40%, width:37%, height:47%
 */
.dci-calendar-wrap {
	left: 4%;
	top: 32%;
	width: 43%;
	height: 54%;
}

/* ─── Puzzle modal ───────────────────────────────────────────── */
.dci-puzzle-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 5, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 0 1rem;
}

.dci-puzzle-overlay[hidden] { display: none; }

.dci-puzzle-modal {
	background: #1a0e06;
	border: 2px solid #7a5020;
	border-radius: 4px;
	padding: clamp(10px, 5vw, 24px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(6px, 3vw, 12px);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.4);
	width: 100%;
}

@media (min-width: 640px) {
	.dci-puzzle-modal {
		width: auto;
		max-width: 360px;
	}
}

h2.dci-puzzle-title {
	font-family: 'Courier New', monospace;
	font-size: 16px;
	letter-spacing: .18em;
	color: #e8d090;
	margin: 0;
	text-align: center;
}

.dci-puzzle-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(3px, 0.8vw, 6px);
	width: 100%;
}

button.dci-puzzle-tile {
	aspect-ratio: 1;
	background: #2e1c08;
	border: 2px solid #7a5020;
	border-radius: 3px;
	color: #e8d090;
	font-family: 'Courier New', monospace;
	font-size: clamp(14px, 4vw, 32px);
	font-weight: 700;
	cursor: pointer;
	transition: background .1s;
	display: flex;
	align-items: center;
	justify-content: center;
}

button.dci-puzzle-tile:hover {
	background: #3d2510;
	border-color: #e8d090;
}

.dci-puzzle-blank {
	background: #0e0804;
	border-color: #2a1200;
	cursor: default;
	pointer-events: none;
}

.dci-puzzle-hint {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #806040;
	letter-spacing: .1em;
	margin: 0;
	text-align: center;
}

button.dci-puzzle-cancel {
	background: transparent;
	border: 1px solid #4a2e10;
	color: #806040;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	letter-spacing: .12em;
	padding: 6px clamp(14px, 2vw, 18px);
	cursor: pointer;
	border-radius: 2px;
	transition: color .15s, border-color .15s;
}

button.dci-puzzle-cancel:hover {
	color: #e8d090;
	border-color: #7a5020;
}

.dci-calendar-frame-img {
	position: absolute;
	inset: 0;
	top: 21%;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
	user-select: none;
}

.dci-pinup-img {
	position: absolute;
	/* top: 2%; */
	left: 50%;
	transform: translateX(-50%);
	/* width: 88%; */
	/* height: 56%; */
	object-fit: cover;
	object-position: center top;
	pointer-events: none;
	user-select: none;
}

.dci-calendar-inner {
	position: absolute;
	bottom: 7%;
	left: 4%;
	width: 92%;
	height: 44%;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.dci-cal-month-label {
	font-family: 'Courier New', Courier, monospace;
	font-size: 2vh;
	font-weight: 900;
	letter-spacing: .1em;
	color: #120e01;
	text-align: center;
	text-transform: uppercase;
	line-height: 1;
	flex-shrink: 0;
}

.dci-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	flex-shrink: 0;
}

.dci-cal-weekdays span {
	font-family: 'Courier New', Courier, monospace;
	font-size: 1.5vh;
	color: #5b3510;
	text-align: center;
	letter-spacing: 0;
}

.dci-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	flex: 1;
	min-height: 0;
}

.dci-cal-empty {
	/* aspect-ratio: 1/1; */
}

.dci-cal-day {
	font-family: 'Courier New', Courier, monospace;
	font-size: 1.5vh;
	color: #decca8;
	background: rgba(25, 12, 0, 0.55);
	border: 1px solid rgba(80, 50, 20, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 1px;
	line-height: 1;
	/* aspect-ratio: 1/1; */
}

.dci-cal-day.dci-cal-today {
	outline: 2px solid #d2cab5;
	outline-offset: -1px;
}

.dci-cal-day.dci-cal-clocked {
	background: rgba(31, 20, 2, 0.85);
	color: #fff8e0;
	border-color: rgba(190, 130, 35, 0.6);
}

.dci-cal-day.dci-cal-streak7 {
	background: radial-gradient(circle, #ffd700, #b07000);
	color: #1a0800;
	border-color: #ffd700;
	box-shadow: 0 0 3px rgba(255, 215, 0, 0.55);
	font-weight: 700;
}

/* ─── Coin Counter ────────────────────────────────────────────
 * left:43%, top:24%, width:15%, height:7%
 * Sits just below the Days Safe sign.
 */
.dci-coins-wrap {
	left: 80%;
	top: 10%;
	width: 14%;
	height: 26%;
	flex-direction: column;
	gap: clamp(1px, 0.5vw, 1px);
	align-items: center;
	justify-content: center;
}

.dci-coin-icon {
	height: 75%;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

.dci-coin-count {
	font-family: 'Courier New', Courier, monospace;
	font-size: 1.45vh;
	font-weight: 700;
	color: #ffd700;
	text-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
	line-height: 1;
}

.dci-coins-label {
	display: none; /* hidden at this scale — coin icon + number is sufficient */
}
