@font-face {
	font-family: "Chelsea Market";
	src: url("Chelsea_Market/ChelseaMarket-Regular.ttf");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Chelsea Market";
	src: url("Chelsea_Market/ChelseaMarket-Regular.ttf");
	font-weight: 700;
	font-style: normal;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 400;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	text-align: left;
	font-size: 16px;
	color: #0b1533;
	line-height: 1.5;
	margin: 0;
	background: #ffffff;
}

body.center-page {
	background:
		linear-gradient(#ffffff 0, #ffffff 120px, transparent 310px),
		radial-gradient(circle at 14% 28%, rgba(255, 196, 0, 0.16), transparent 30%),
		radial-gradient(circle at 87% 20%, rgba(75, 188, 249, 0.18), transparent 28%),
		radial-gradient(circle at 50% 100%, rgba(113, 70, 198, 0.10), transparent 34%),
		#fffdf8;
	min-height: 100vh;
}

.content-font {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 400;
	letter-spacing: 0;
}

button,
input,
select,
textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 400;
}

.clear {
	clear: both;
}

h1 {
	font-size: clamp(42px, 6vw, 72px);
	font-weight: 800;
	line-height: 0.98;
	margin: 0 0 22px 0;
	text-align: left;
}

h2 {
	font-size: 22px;
	font-weight: 400;
	margin-bottom: 30px;
	text-align: center;
}

h3 {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 20px;
}

p {
	font-size: 16px;
	margin-bottom: 20px;
}

#header {
	width: min(1380px, calc(100% - 64px));
	margin: 0 auto;
	box-sizing: border-box;
}

.site-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 24px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #0b1533;
	font-weight: 800;
	font-family: 'Chelsea Market', sans-serif;
	font-size: 27px;
	text-decoration: none;
	white-space: nowrap;
}

.brand-dot {
	color: #7146c6;
}

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(135deg, #7146c6, #4bbcf9);
	color: #ffffff;
	font-family: 'Chelsea Market', sans-serif;
	font-size: 18px;
}

.site-nav,
.site-actions {
	display: flex;
	align-items: center;
	gap: 22px;
}

.site-nav {
	justify-content: center;
}

.site-actions {
	justify-content: flex-end;
	gap: 12px;
}

.admin-emulation-form {
	margin: 0;
}

.admin-emulation-form label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.admin-emulation-form select {
	width: auto;
	min-width: 132px;
	height: 40px;
	margin: 0;
	padding: 0 34px 0 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 800;
	background-color: #ffffff;
}

.site-nav a,
.nav-link {
	color: #0b1533;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.site-nav a.active {
	color: #7146c6;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.game-picker {
	--game-icon-size: 170px;
	--game-grid-justify: center;
	max-width: 1380px;
	margin: 0 auto;
}

.game-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 34px;
}

.game-filter-tabs button {
	border: 1px solid #e3e7ef;
	border-radius: 12px;
	padding: 13px 19px;
	background: #ffffff;
	color: #0b1533;
	font: 800 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(31, 41, 55, 0.07);
	transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.game-filter-tabs button:hover {
	transform: translateY(-1px);
	box-shadow: 0 9px 20px rgba(31, 41, 55, 0.1);
}

.game-filter-tabs button.is-active {
	border-color: #7146c6;
	background: #7146c6;
	color: #ffffff;
	box-shadow: 0 9px 22px rgba(113, 70, 198, 0.24);
}

.game-picker-tools {
	display: flex;
	float: right;
	justify-content: flex-end;
	align-items: center;
	gap: 18px;
	margin: -12px 0 12px 28px;
}

.game-size-control {
	display: inline-flex;
	align-items: center;
	width: 260px;
	height: 36px;
}

.game-size-control input[type="range"] {
	width: 100%;
	accent-color: #7146c6;
	cursor: pointer;
}

.game-align-control {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid #d9dee8;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(31, 41, 55, 0.07);
}

.game-align-control button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 38px;
	border: 0;
	border-right: 1px solid #d9dee8;
	background: #ffffff;
	cursor: pointer;
	transition: background 140ms ease, box-shadow 140ms ease;
}

.game-align-control button:last-child {
	border-right: 0;
}

.game-align-control button.is-active {
	background: #eceff4;
	box-shadow: inset 0 1px 6px rgba(31, 41, 55, 0.12);
}

.align-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 28px;
	height: 20px;
}

.align-icon span {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: #525866;
}

.align-icon-left span:nth-child(1) {
	width: 25px;
}

.align-icon-left span:nth-child(2) {
	width: 16px;
}

.align-icon-left span:nth-child(3) {
	width: 21px;
}

.align-icon-center {
	align-items: center;
}

.align-icon-center span:nth-child(1) {
	width: 24px;
}

.align-icon-center span:nth-child(2) {
	width: 15px;
}

.align-icon-center span:nth-child(3) {
	width: 22px;
}

.game-filter-panel.is-hidden {
	display: none;
}

.game-filter-panel > h3 {
	text-align: left;
}

.game-panel-empty {
	width: 100%;
	margin: 0;
	color: #667085;
	font: 600 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-align: left;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--game-grid-justify);
	gap: 26px 3%;
	max-width: 1380px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
}

.menu > .clear {
	display: none;
}

.game {
	position: relative;
	flex: 0 0 var(--game-icon-size);
	width: var(--game-icon-size);
	min-width: 128px;
	margin-bottom: 0;
	text-align: center;
	transition: width 160ms ease, flex-basis 160ms ease;
}

.game:nth-child(6n){
	margin-right: 0;
	/* border: 1px solid red; */
}
	
.game .icon {
	width: 100%;
	height: auto;
	-webkit-mask-image: url("images/icon_mask.svg");
	mask-image: url("images/icon_mask.svg");
	margin-bottom: 12px;
	transition: transform 160ms ease, box-shadow 160ms ease;
	box-shadow: 0 12px 24px rgba(31, 41, 55, 0.12);
}

.game .ai-generated-icon {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--ai-icon-bg, #8a5cf6);
	overflow: hidden;
}

.ai-generated-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("games_assets/back/ai.png") center / cover no-repeat;
	opacity: 0.22;
}

.ai-generated-icon-text {
	position: absolute;
	left: 9%;
	top: 12%;
	z-index: 2;
	color: #ffffff;
	font-family: "Chelsea Market", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: clamp(34px, 4.4vw, 78px);
	line-height: 0.95;
	text-align: left;
	text-shadow: 0 4px 0 rgba(11, 21, 51, 0.18);
}

.ai-generated-icon img {
	position: absolute;
	right: -4%;
	bottom: -5%;
	z-index: 1;
	width: 55%;
	max-height: 60%;
	object-fit: contain;
	filter: drop-shadow(0 9px 8px rgba(11, 21, 51, 0.18));
}

.game a:hover .icon {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(31, 41, 55, 0.16);
}

.game button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.game button:hover .icon {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(31, 41, 55, 0.16);
}

.ai-games-heading {
	color: #7146c6;
}

.ai-create-game .icon {
	background: #ffcd00;
}

.ai-game-controls {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	display: flex;
	gap: 6px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 140ms ease, transform 140ms ease;
}

.ai-game-card:hover .ai-game-controls,
.ai-game-card:focus-within .ai-game-controls {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.ai-game-controls .ai-game-control {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.74);
	color: #0b1533;
	font: 900 20px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	box-shadow: 0 8px 18px rgba(11, 21, 51, 0.12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 140ms ease, transform 140ms ease;
}

.ai-game-controls .ai-game-control:hover {
	background: rgba(255, 255, 255, 0.92);
	transform: translateY(-1px);
}

.ai-game-controls .ai-game-delete {
	font-size: 25px;
}

.ai-game-controls .ai-game-icon {
	font-size: 18px;
}

.ai-game-controls .ai-game-sound {
	font-size: 20px;
}

.ai-game-controls .ai-game-control.is-loading {
	color: transparent;
	cursor: wait;
}

.ai-game-controls .ai-game-control.is-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(11, 21, 51, 0.22);
	border-top-color: #0b1533;
	border-radius: 50%;
	animation: ai-game-spin 820ms linear infinite;
}

.ai-game-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(11, 21, 51, 0.58);
}

.ai-game-modal[hidden] {
	display: none;
}

.ai-game-dialog {
	position: relative;
	width: min(620px, 100%);
	padding: 32px;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 26px 90px rgba(11, 21, 51, 0.28);
	text-align: left;
}

.ai-game-dialog h3 {
	margin: 0 44px 18px 0;
	color: #0b1533;
	font-size: 28px;
}

.ai-game-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #0b1533;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ai-game-dialog textarea {
	display: block;
	width: 100%;
	min-height: 150px;
	resize: vertical;
	border: 2px solid #e3e7ef;
	border-radius: 8px;
	padding: 14px 16px;
	color: #0b1533;
	font: 500 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ai-game-dialog textarea:focus {
	outline: none;
	border-color: #7146c6;
	box-shadow: 0 0 0 4px rgba(113, 70, 198, 0.14);
}

.ai-game-options,
.ai-game-visibility {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	color: #0b1533;
	font: 700 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ai-game-options {
	margin: 18px 0 4px;
}

.ai-game-visibility {
	margin: 12px 0 8px;
}

.ai-game-options label,
.ai-game-visibility label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ai-game-visibility-note {
	min-height: 20px;
	margin: -2px 0 8px;
	color: #667085;
	font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-align: left;
}

.ai-game-error {
	min-height: 22px;
	margin: 12px 0;
	color: #c01828;
	font: 700 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-align: left;
}

.ai-game-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 138px;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	padding: 12px 20px;
	background: #7146c6;
	color: #ffffff;
	font: 800 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	cursor: pointer;
}

.ai-game-submit:disabled {
	cursor: wait;
	opacity: 0.78;
}

.ai-game-spinner {
	display: none;
	width: 21px;
	height: 21px;
	border: 3px solid rgba(255, 255, 255, 0.38);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ai-game-spin 820ms linear infinite;
}

.ai-game-dialog.is-busy .ai-game-submit-text {
	display: none;
}

.ai-game-dialog.is-busy .ai-game-spinner {
	display: block;
}

.public-ai-browser-dialog {
	width: min(980px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	display: flex;
	flex-direction: column;
}

.public-ai-search {
	width: 100%;
	border: 2px solid #e3e7ef;
	border-radius: 8px;
	padding: 13px 15px;
	color: #0b1533;
	font: 700 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.public-ai-search:focus {
	outline: none;
	border-color: #7146c6;
	box-shadow: 0 0 0 4px rgba(113, 70, 198, 0.14);
}

.public-ai-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0;
}

.public-ai-categories button {
	border: 1px solid #e3e7ef;
	border-radius: 10px;
	padding: 9px 13px;
	background: #ffffff;
	color: #0b1533;
	font: 800 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	cursor: pointer;
}

.public-ai-categories button.is-active {
	border-color: #7146c6;
	background: #7146c6;
	color: #ffffff;
}

.public-ai-message {
	min-height: 22px;
	margin-bottom: 12px;
}

.public-ai-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	overflow-y: auto;
	padding-right: 4px;
}

.public-ai-result {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 12px;
	align-items: center;
	border: 1px solid #e3e7ef;
	border-radius: 8px;
	padding: 10px;
	background: #ffffff;
}

.public-ai-result .icon {
	width: 72px;
	height: 72px;
	margin: 0;
	object-fit: cover;
}

.public-ai-result-body {
	min-width: 0;
}

.public-ai-result h4 {
	margin: 0 0 3px;
	color: #0b1533;
	font: 800 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.public-ai-result p {
	display: -webkit-box;
	margin: 0 0 5px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #667085;
	font: 600 13px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-align: left;
}

.public-ai-result span {
	color: #7146c6;
	font: 800 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.public-ai-result button {
	grid-column: 1 / -1;
	border: 0;
	border-radius: 8px;
	padding: 10px 12px;
	background: #7146c6;
	color: #ffffff;
	font: 800 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	cursor: pointer;
}

.public-ai-result button:disabled {
	background: #e3e7ef;
	color: #667085;
	cursor: default;
}

@keyframes ai-game-spin {
	to {
		transform: rotate(360deg);
	}
}

.inactive {
	opacity: 0.25;
	pointer-events: none;
}

.game a.inactive ~ .game_title {
	opacity: 0.25;
}

.game_title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 18px;
	display: block;
	width: 100%;
	min-height: 58px;
	white-space: normal;
	overflow-wrap: break-word;
}

.game_name {
	display: block;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.game_note {
	display: block;
	font-weight: 400;
	color: #667085;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#header {
}

#skole {
	position: absolute;
	z-index: 100;
	top: 00px;
	left: 0px;
	width: 210px;
	height: 210px;
	background-color: #4bbcf9;
	padding: 20px 60px 60px 20px;
	-webkit-mask-image: url("images/skole_mask.svg");
	mask-image: url("images/skole_mask.svg");
}

#skole span {
	color: #fff;
	font-size: 110%;
	line-height: 34px;
}

#skole a {
	text-decoration: none;
}

#skole_spacer {
	height: 0px;
}

#login {
	text-align: center;
	margin-bottom: 40px;
}

#game_actions {
	position: absolute;
	top: 22px;
	left: 28px;
	z-index: 120;
	text-align: left;
}

#game_actions .button-link {
	margin-left: 0;
	margin-right: 0;
}

#account_actions {
	position: absolute;
	top: 22px;
	right: 28px;
	z-index: 120;
	text-align: right;
}

#account_actions .button-link {
	margin-left: 6px;
	margin-right: 0;
}

#page {
	margin-right: 20%;
}

#page input {
	width: 50%;
}

label {
	font-size: 18px;
}

input[type=text], input[type=email], input[type=select], input[type=password], input[type=date], textarea {
	border: 1.5px solid grey;
	padding: 12px 24px;
	margin-right: 10px;
	margin-bottom: 10px;
	border-radius: 8px;
	font-size: 14px;
}

textarea {
	box-sizing: border-box;
	width: 100%;
	resize: vertical;
}

select {
	border: 1.5px solid grey;
	padding: 12px 24px;
	margin-right: 10px;
	margin-bottom: 10px;
	border-radius: 8px;
	font-size: 14px;
	background-color: #ffffff;
}

#ftilmeldingstype {
	font-size: 20px;
	margin-bottom: 10px;
}
	
input[type=submit] {
	border: 1px solid rgba(17, 24, 39, 0.12);
    padding: 13px 24px;
	border-radius: 10px;
	font-size: 14px;
	background: linear-gradient(135deg, #7146c6, #8d5ff0);
	color: #ffffff;
	width: auto !important;
	box-shadow: 0 10px 22px rgba(113, 70, 198, 0.22);
}

input[type=submit].secondary-submit {
	background-color: #ffffff;
	background-image: none;
	color: #0b1533;
	box-shadow: none;
}

input[type=submit].danger-submit {
	background-color: #ffffff;
	border-color: #b00020;
	color: #b00020;
}

.button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(17, 24, 39, 0.12);
	padding: 13px 24px;
	margin: 0 6px 10px 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 800;
	background: linear-gradient(135deg, #7146c6, #8d5ff0);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(113, 70, 198, 0.22);
	line-height: 1.1;
	box-sizing: border-box;
	min-height: 48px;
}

.button-link.secondary {
	background-color: #ffffff;
	background-image: none;
	color: #0b1533;
	box-shadow: none;
}

.site-actions .button-link {
	margin: 0;
	min-height: 48px;
	padding-top: 0;
	padding-bottom: 0;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: 34px;
	width: 100%;
	margin: 0;
	padding: clamp(42px, 5.2vw, 70px) max(48px, calc((100vw - 1380px) / 2));
	box-sizing: border-box;
	background:
		radial-gradient(circle at 75% 38%, rgba(255, 196, 0, 0.24), transparent 31%),
		radial-gradient(circle at 92% 8%, rgba(75, 188, 249, 0.16), transparent 24%),
		linear-gradient(180deg, #ffffff 0%, #fff9e8 100%);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}

.eyebrow {
	color: #7146c6;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.hero-text {
	max-width: 620px;
	color: #25304f;
	font-size: 20px;
	line-height: 1.55;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hero-art {
	position: relative;
	min-height: 300px;
	display: grid;
	place-items: center;
}

.hero-art img {
	position: relative;
	z-index: 2;
	width: min(460px, 88%);
	height: auto;
	filter: drop-shadow(0 30px 54px rgba(202, 138, 4, 0.26)) drop-shadow(0 16px 30px rgba(31, 41, 55, 0.18));
}

.hero-art::before {
	content: "";
	position: absolute;
	width: min(450px, 88%);
	aspect-ratio: 1.4;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(75, 188, 249, 0.22), rgba(255, 196, 0, 0.18) 58%, transparent 70%);
}

.auth-page,
.dashboard,
.school-page,
.admin-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 400;
}

.auth-page,
.dashboard {
	width: min(520px, 90vw);
	max-width: 520px;
	margin: clamp(80px, 18vh, 220px) auto 0 auto !important;
	padding: 44px 52px;
	box-sizing: border-box;
	background-color: #ffffff;
	border: 1px solid #eeeeee;
	border-radius: 28px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.auth-page h3,
.dashboard h3,
.school-page h3,
.admin-page h3 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0;
}

.auth-page p,
.dashboard p,
.school-page p,
.admin-page p,
.auth-page label,
.dashboard label,
.admin-page label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 400;
	line-height: 1.45;
}

.auth-page strong,
.dashboard strong,
.school-page strong,
.admin-page strong {
	font-weight: 700;
}

.auth-page .button-link,
.dashboard .button-link,
.school-page .button-link,
.admin-page .button-link,
.auth-page input,
.auth-page select,
.dashboard input,
.dashboard select,
.dashboard textarea,
.admin-page input,
.admin-page select {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 600;
}

.dashboard {
	width: min(960px, 90vw);
	max-width: 960px;
}

.school-page {
	width: min(900px, 90vw);
	max-width: 900px;
	margin: 70px auto 0 auto !important;
	text-align: left;
}

.lead {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 24px;
	line-height: 34px;
	text-align: left;
}

.school-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 48px;
	margin: 34px 0;
	padding: 28px 0;
	border-top: 1px solid #dddddd;
	border-bottom: 1px solid #dddddd;
}

.school-benefits h3,
.school-cta h3 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 24px;
	margin-bottom: 8px;
}

.school-cta {
	margin-top: 30px;
}

.pricing-page h1 {
	font-size: clamp(38px, 5vw, 62px);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 34px;
}

.pricing-card {
	background: #ffffff;
	border: 1px solid #eeeaf8;
	border-radius: 22px;
	padding: 28px;
	box-shadow: 0 16px 38px rgba(31, 41, 55, 0.07);
}

.pricing-card h3 {
	margin-top: 0;
	margin-bottom: 12px;
}

.pricing-card .price {
	color: #7146c6;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 6px;
}

.school-small {
	margin-top: 28px;
	font-size: 16px;
}

.auth-form {
	margin-bottom: 24px;
}

.auth-page input[type=text],
.auth-page input[type=email],
.auth-page input[type=password],
.auth-page select,
.auth-page textarea,
.dashboard input[type=text],
.dashboard input[type=email],
.dashboard input[type=password],
.dashboard input[type=date],
.dashboard select,
.dashboard textarea {
	width: 100% !important;
	box-sizing: border-box;
	margin-right: 0;
}

.school-fields {
	margin-top: 4px;
}

.form-note {
	color: #6b7280;
	font-size: 14px;
	font-weight: 400;
}

.auth-alt {
	border-top: 1px solid #dddddd;
	margin-top: 30px;
	padding-top: 20px;
}

.school-ip-panel,
.profile-panel {
	border: 1px solid #eeeaf8;
	background: #ffffff;
	margin: 24px 0;
	padding: 22px;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(31, 41, 55, 0.05);
}

.profile-panel + .school-ip-panel {
	margin-top: 24px;
}

.profile-form {
	margin-bottom: 0;
}

.danger-panel {
	border-top: 1px solid #dddddd;
	margin-top: 26px;
	padding-top: 22px;
}

.danger-panel p {
	color: #6b7280;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 6px 0;
}

.checkbox-label input[type=checkbox] {
	width: auto !important;
	margin: 0;
}

.inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.inline-actions form {
	margin: 0;
}

.plan-option {
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1.5px solid #999999;
	border-radius: 8px;
	padding: 22px 26px;
	margin-bottom: 12px;
	font-size: 18px;
	line-height: 1.35;
}

.plan-option input[type=radio] {
	flex: 0 0 auto;
	width: auto !important;
	margin: 0;
}

.plan-option span {
	display: block;
	line-height: 1.35;
}

.plan-option strong {
	display: inline;
	margin-bottom: 0;
}

.account-back-link {
	margin-top: 22px;
}

.payment-note {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.45;
	margin-top: 14px;
	margin-bottom: 0;
	max-width: 620px;
}

.error {
	color: #b00020;
	font-weight: 600;
}

.notice {
	background-color: #eef8ff;
	border-left: 5px solid #4bbcf9;
	padding: 12px 16px;
}

.status-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 64px;
	margin-bottom: 24px;
}

.account-dashboard {
	background: linear-gradient(180deg, #fbf8ff 0%, #ffffff 40%);
	border-color: #eeeaf8;
	margin-top: clamp(58px, 10vh, 110px) !important;
	margin-bottom: 0 !important;
}

.account-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 28px;
	margin: -18px -26px 26px -26px;
	border-radius: 22px;
	background: linear-gradient(135deg, #f6f0ff, #ffffff);
	border: 1px solid #eeeaf8;
}

.account-hero h1 {
	font-size: clamp(32px, 4vw, 46px);
	margin-bottom: 8px;
}

.account-hero p {
	margin-bottom: 0;
	color: #667085;
}

.account-status-grid p {
	padding: 18px;
	border: 1px solid #eeeaf8;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 22px rgba(31, 41, 55, 0.04);
}

.quick-actions {
	border: 1px solid #eeeaf8;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(31, 41, 55, 0.05);
	overflow: hidden;
	margin-top: 22px;
}

.quick-actions h3 {
	font-size: 20px;
	margin: 0;
	padding: 22px 24px 8px 24px;
}

.quick-actions a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 24px;
	color: #0b1533;
	text-decoration: none;
	border-top: 1px solid #f0edf7;
}

.quick-actions strong,
.quick-actions small {
	display: block;
}

.quick-actions small {
	color: #667085;
	font-size: 13px;
	margin-top: 2px;
}

.quick-actions a > span:last-child {
	color: #7146c6;
	font-size: 32px;
	line-height: 1;
}

.admin-page {
	width: min(1280px, 90vw);
	max-width: 1280px;
	margin: 50px auto 0 auto !important;
	text-align: left;
}

.admin-table-wrap {
	overflow-x: auto;
}

.admin-table {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 20px;
}

.admin-table th,
.admin-table td {
	border-bottom: 1px solid #dddddd;
	padding: 12px 10px;
	text-align: left;
	vertical-align: top;
}

.admin-table th {
	font-weight: 700;
}

.admin-muted {
	color: #667085;
	font-size: 13px;
}

.admin-ai-games-table {
	min-width: 1320px;
}

.admin-default-games-table {
	min-width: 980px;
}

.admin-table th button {
	border: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

.admin-table th button::after {
	content: "↕";
	margin-left: 5px;
	color: #98a2b3;
	font-size: 11px;
}

.admin-table th button[data-sort-direction="asc"]::after {
	content: "↑";
	color: #7146c6;
}

.admin-table th button[data-sort-direction="desc"]::after {
	content: "↓";
	color: #7146c6;
}

.admin-ai-icon {
	display: block;
	width: 54px;
	height: 54px;
	border-radius: 12px;
	object-fit: cover;
	overflow: hidden;
}

.admin-ai-icon.ai-generated-icon {
	position: relative;
	background: var(--ai-icon-bg, #8a5cf6);
	font-size: 18px;
	line-height: 1;
}

.admin-ai-icon.ai-generated-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("games_assets/back/ai.png") center / cover no-repeat;
	opacity: 0.22;
}

.admin-ai-icon .ai-generated-icon-text {
	left: 7px;
	top: 8px;
	font-size: 18px;
	line-height: 0.95;
}

.admin-ai-icon.ai-generated-icon img {
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.admin-ai-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
}

.admin-ai-actions button,
.admin-action-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	padding: 7px 10px;
	background: #ffffff;
	color: #0b1533;
	font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
}

.admin-ai-actions button:hover,
.admin-action-link:hover {
	border-color: #7146c6;
	color: #7146c6;
}

.admin-ai-actions button.danger {
	color: #c01828;
}

.admin-ai-actions button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.admin-checkbox-cell {
	text-align: center !important;
	vertical-align: middle !important;
}

.admin-access-checkbox {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: #7146c6;
}

.admin-form-actions {
	margin: 24px 0 0;
}

.auth-page,
.dashboard,
.school-page,
.admin-page,
.games-section {
	margin-bottom: clamp(44px, 7vw, 84px) !important;
}

.site-footer {
	width: 100%;
	margin-top: auto;
	background: #f5f6f8;
	border-top: 1px solid #e4e7ec;
	color: #475467;
}

.site-footer-inner {
	width: min(1380px, calc(100% - 64px));
	margin: 0 auto;
	padding: 34px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	font: 500 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.site-footer-brand {
	display: grid;
	gap: 3px;
	text-align: left;
}

.site-footer-brand strong {
	color: #0b1533;
	font-weight: 800;
}

.site-footer-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 14px 20px;
}

.site-footer-links a {
	color: #0b1533;
	font-weight: 700;
	text-decoration: none;
}

.site-footer-links a:hover {
	color: #7146c6;
}

.site-footer-social {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.site-footer-social img {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.front-actions p {
	text-align: center;
}

.games-section {
	width: min(1380px, calc(100% - 96px));
	margin: 40px auto 70px auto;
}

.games-section > h3 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 22px;
	font-weight: 800;
	margin: 42px 0 20px 0;
}

.optiontext::before {
}

.explainer {
	font-size: 70%;
	font-style: italic;
}
