/* HOJ Samson Run — page wrapper only. Every rule is scoped to .hoj-sr so nothing touches the
 * theme or the other HOJ plugins (the hoj-bible-search / hoj-members modal classes in particular). */

.hoj-sr {
	--hoj-sr-ink: #1a1009;
	--hoj-sr-bronze: #d9a04a;
	--hoj-sr-bronze-dark: #8d5f26;
	--hoj-sr-cream: #f3e6c4;
	margin: 1.5em auto;
	max-width: 1200px;
}

/* keep the whole 16:9 frame (plus the button bar) on screen on wide monitors */
.hoj-sr .hoj-sr-stage {
	position: relative;
	width: 100%;
	max-width: calc((100vh - 170px) * 16 / 9);
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: #120a05;
	border: 3px solid var(--hoj-sr-ink);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
	.hoj-sr .hoj-sr-stage { height: 0; padding-top: 56.25%; }
}

.hoj-sr .hoj-sr-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* full screen: the stage fills the screen and the game letterboxes itself */
.hoj-sr .hoj-sr-stage:fullscreen { border: 0; border-radius: 0; width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; }
.hoj-sr .hoj-sr-stage:-webkit-full-screen { border: 0; border-radius: 0; width: 100vw; height: 100vh; max-width: none; }

/* phones: a cover over the frame so the page still scrolls; tapping it opens the game full screen */
.hoj-sr .hoj-sr-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: radial-gradient(ellipse at center, #3a1446 0%, #1c0822 55%, #070205 100%);
	color: var(--hoj-sr-cream);
	cursor: pointer;
	font-family: Georgia, "Times New Roman", serif;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
}
.hoj-sr .hoj-sr-cover[hidden] { display: none; }
.hoj-sr .hoj-sr-cover-pic { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); margin-bottom: 4px; }
.hoj-sr .hoj-sr-noscript { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffe7a3; font: 700 20px Georgia, serif; }
/* small frames (a phone held upright): the portrait doubles as the play button */
@media (max-width: 600px) {
	.hoj-sr .hoj-sr-cover { gap: 3px; }
	.hoj-sr .hoj-sr-cover-play { display: none; }
	.hoj-sr .hoj-sr-cover-pic { width: 64px; height: 64px; outline: 3px solid #e3b465; outline-offset: 2px; }
	.hoj-sr .hoj-sr-cover-text { font-size: 19px; }
	.hoj-sr .hoj-sr-cover-sub { font-size: 12px; }
}
.hoj-sr .hoj-sr-cover-play {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid var(--hoj-sr-ink);
	background: radial-gradient(circle at 35% 30%, #ffe2a0 0%, var(--hoj-sr-bronze) 45%, var(--hoj-sr-bronze-dark) 100%);
	color: var(--hoj-sr-ink);
	font-size: 26px;
	line-height: 58px;
	padding-left: 5px;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}
.hoj-sr .hoj-sr-cover-text { font-size: 22px; font-weight: 700; letter-spacing: 1px; color: #ffe7a3; text-shadow: 0 2px 0 var(--hoj-sr-ink); }
.hoj-sr .hoj-sr-cover-sub { font-size: 14px; font-style: italic; opacity: 0.9; }

.hoj-sr .hoj-sr-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 12px;
}
.hoj-sr .hoj-sr-btn {
	appearance: none;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid var(--hoj-sr-ink);
	border-radius: 8px;
	background: linear-gradient(180deg, #a8402a 0%, #6e1e10 100%);
	color: #ffe7a3;
	font: 700 15px/1.2 Georgia, "Times New Roman", serif;
	letter-spacing: 0.5px;
	cursor: pointer;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.hoj-sr .hoj-sr-btn:hover { filter: brightness(1.12); }
.hoj-sr .hoj-sr-btn:focus-visible,
.hoj-sr .hoj-sr-link:focus-visible,
.hoj-sr .hoj-sr-cover:focus-visible { outline: 3px solid var(--hoj-sr-bronze); outline-offset: 2px; }
.hoj-sr .hoj-sr-link { font-size: 15px; }
.hoj-sr .hoj-sr-hint { flex-basis: 100%; font-size: 13px; opacity: 0.75; }
.hoj-sr .hoj-sr-copy { margin: 10px 0 0; font-size: 13px; opacity: 0.8; text-align: center; }

@media (max-width: 600px) {
	.hoj-sr .hoj-sr-stage { max-width: 100%; }
	.hoj-sr .hoj-sr-stage { border-radius: 6px; border-width: 2px; }
	.hoj-sr .hoj-sr-hint { display: none; }
}
