/* Sign-language video button + modal — mobile-first, loaded only on game pages. */

.sv-chrome {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 0.5rem;
}

.sv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 2px solid #287b9b;
	border-radius: 999px;
	background: #fff;
	color: #287b9b;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	font: 400 14px/1 system-ui, "Segoe UI", sans-serif;
}

.sv-btn--labeled {
	padding: 0 0.85rem 0 0.55rem;
}

.sv-btn:hover,
.sv-btn:focus-visible {
	background: #287b9b;
	color: #fff;
	outline: none;
	transform: translateY(-1px);
}

.sv-btn__text {
	white-space: nowrap;
}

.sv-icon {
	display: block;
	flex: 0 0 auto;
}

body.sv-dialog-open {
	overflow: hidden;
}

/* The pop-up look is the shared .sh-dialog (shturko-soft-ui.css); only its width and layer are its own. */
.sv-dialog {
	z-index: 100040;
}
.sv-dialog .sv-dialog__panel {
	width: min(640px, 100%);
}

.sv-dialog__bar {
	padding-right: 48px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0.35rem;
}

.sv-dialog__kicker {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #287b9b;
}

.sv-lang-menu {
	position: relative;
	flex: 0 0 auto;
}

.sv-lang-menu__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 44px;
	padding: 0 0.7rem 0 0.75rem;
	border: 2px solid #287b9b;
	border-radius: 999px;
	background: #fff;
	color: #287b9b;
	font: 400 13px/1 system-ui, "Segoe UI", sans-serif;
	cursor: pointer;
}

.sv-lang-menu__flag {
	font-size: 1.05rem;
	line-height: 1;
}

.sv-lang-menu__caret {
	width: 0.45rem;
	height: 0.45rem;
	margin-left: 0.1rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-0.12rem);
	flex: 0 0 auto;
}

.sv-lang-menu__btn[aria-expanded="true"] .sv-lang-menu__caret {
	transform: rotate(225deg) translateY(-0.05rem);
}

.sv-lang-menu__btn[aria-expanded="true"],
.sv-lang-menu__btn:focus-visible {
	background: #287b9b;
	color: #fff;
	outline: none;
}

.sv-lang-menu__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 3;
	min-width: min(260px, 72vw);
	padding: 6px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(18, 59, 100, 0.22);
}

.sv-lang-menu__list[hidden] {
	display: none;
}

.sv-lang-menu__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #123b64;
	font: 400 14px/1.25 system-ui, "Segoe UI", sans-serif;
	text-align: left;
	cursor: pointer;
}

.sv-lang-menu__item[aria-current="true"],
.sv-lang-menu__item:hover,
.sv-lang-menu__item:focus-visible {
	background: #e8f3f8;
	outline: none;
}

.sv-dialog__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.2rem, 4.5vw, 1.6rem);
	font-weight: 400;
}

.sv-on-card {
	position: absolute;
	top: var(--shturko-pic-sign-inset, 5px);
	right: var(--shturko-pic-sign-inset, 5px);
	z-index: 4;
	width: var(--shturko-pic-sign, 44px);
	height: var(--shturko-pic-sign, 44px);
	min-width: var(--shturko-pic-sign, 44px);
	min-height: var(--shturko-pic-sign, 44px);
	padding: 0;
	border: 2px solid #287b9b !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #287b9b;
}

.sv-on-card:hover,
.sv-on-card:focus,
.sv-on-card:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border-color: #123b64 !important;
	color: #123b64 !important;
	box-shadow: none !important;
	transform: none;
	outline: 2px solid #287b9b;
	outline-offset: 2px;
}

.shturko-pic-box {
	--shturko-pic-sign: 44px;
	--shturko-pic-sign-inset: 5px;
	--shturko-pic-sign-clear: calc(var(--shturko-pic-sign) + var(--shturko-pic-sign-inset) + 12px);
	position: relative;
	display: grid;
	grid-template-rows: var(--shturko-pic-sign-clear) minmax(0, 1fr);
	align-items: stretch;
	justify-items: stretch;
	width: min(100%, 280px);
	aspect-ratio: 1;
	margin: 0.5rem auto;
	padding: 0 0.32rem 0.32rem;
	box-sizing: border-box;
	background: #f7f4fc;
	border: 1px solid rgba(100, 80, 160, 0.18);
	border-radius: 12px;
	overflow: hidden;
}

.shturko-pic-box::before {
	content: "";
	grid-row: 1;
	grid-column: 1;
}

.shturko-pic-box > img,
.shturko-pic-box > .ng-word-img,
.shturko-pic-box > .ng-word-img--missing,
.shturko-pic-box > .dp-card-img {
	grid-row: 2;
	grid-column: 1;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	object-fit: contain;
	object-position: center center;
}

.shturko-pic-box > .sv-on-card,
.shturko-pic-box > .sv-btn.sv-on-card {
	grid-row: 1 / -1;
	grid-column: 1;
}

.dp-card-visual.shturko-pic-box {
	width: clamp(140px, 60vw, 280px);
	height: clamp(140px, 60vw, 280px);
	aspect-ratio: auto;
	overflow: visible;
}

.pg-card-wrap.shturko-pic-box {
	width: clamp(130px, 22vw, 180px);
	aspect-ratio: auto;
	margin: 0;
	overflow: visible;
}

.pg-card-wrap.shturko-pic-box > .pg-card {
	grid-row: 2;
	grid-column: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	min-height: 0;
	padding: 0.2rem 0.25rem 0.45rem;
}

.pg-card-wrap.shturko-pic-box > .pg-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	object-position: center center;
}

.sv-dialog__frame {
	border-radius: 14px;
	overflow: hidden;
	background: #0b2744;
}

.sv-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin: 0 0 0.75rem;
	border-radius: 999px;
	background: #e7d7c4;
}

.sv-tabs[hidden],
.sv-dialog__frame[hidden] {
	display: none;
}

.sv-tabs__tab {
	min-height: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #0b2744;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

.sv-tabs__tab[aria-selected="true"] {
	background: #ff8a00;
	color: #fff;
	box-shadow: 0 3px 10px rgba(255, 138, 0, 0.35);
}

.sv-dialog__frame--3d {
	background: #fffdf8;
}

.sv-dialog__iframe {
	display: block;
	width: 100%;
	height: min(60dvh, 520px);
	border: 0;
	background: #fffdf8;
}

.sv-dialog__video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 56dvh;
	background: #0b2744;
}

.sv-dialog__note {
	margin: 0.75rem 0 0;
	font-size: 14px;
	line-height: 1.45;
}

.sv-dialog__page {
	display: inline-block;
	margin-top: 0.65rem;
	font-size: 13px;
	font-weight: 400;
	color: #287b9b;
}

.shturko-levels__play-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0 0 0.35rem;
}

.shturko-levels__play-head .shturko-levels__heading {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.shturko-demo-memory__sign.sv-on-card,
.shturko-demo-memory__sign.sv-btn {
	width: var(--mem-sign, 44px);
	height: var(--mem-sign, 44px);
	min-width: var(--mem-sign, 44px);
	min-height: var(--mem-sign, 44px);
	top: var(--mem-sign-inset, 5px);
	right: var(--mem-sign-inset, 5px);
	padding: 0;
	border: 2px solid #287b9b !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #287b9b;
}

.shturko-demo-memory__sign.sv-btn:hover,
.shturko-demo-memory__sign.sv-btn:focus,
.shturko-demo-memory__sign.sv-btn:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border-color: #123b64 !important;
	color: #123b64 !important;
	box-shadow: none !important;
	transform: none;
}

@media (max-width: 480px) {
	.sv-btn--labeled .sv-btn__text {
		font-size: 13px;
	}
}
