@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,550;9..144,700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
	--gald-ink: #1c1712;
	--gald-paper: #f3ebe0;
	--gald-sand: #e2d2bc;
	--gald-moss: #2f5d4a;
	--gald-moss-deep: #1e3d31;
	--gald-ember: #b4532a;
	--gald-gold: #c9a227;
	--gald-line: rgba(28, 23, 18, 0.14);
	--gald-shadow: 0 18px 50px rgba(28, 23, 18, 0.18);
	--gald-radius: 18px;
	--gald-font-display: 'Fraunces', Georgia, serif;
	--gald-font-body: 'Source Sans 3', system-ui, sans-serif;
}

.gald-gateway,
.gald-app {
	font-family: var(--gald-font-body);
	color: var(--gald-ink);
	box-sizing: border-box;
}

.gald-gateway *,
.gald-app * {
	box-sizing: border-box;
}

/* —— Gateway —— */
.gald-gateway {
	--gald-sepia: #b8956a;
	--gald-sepia-deep: #8a6a45;
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	/* Same full-bleed cover as the Galdanor student entry screen. */
	background-color: var(--gald-sepia);
	background-image: var(--gald-gateway-bg, none);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

.gald-gateway__glow {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(ellipse 80% 60% at 50% 45%, transparent 40%, rgba(138, 106, 69, 0.28) 100%);
	pointer-events: none;
}

.gald-gateway__inner {
	position: relative;
	z-index: 2;
	width: min(920px, 100%);
	text-align: center;
	animation: gald-rise 0.7s ease both;
	display: flex;
	justify-content: center;
}

/* Two equal buttons: Portfólió | Galdanor */
.gald-gateway__choices {
	--gald-btn-w: 420px;
	--gald-btn-h: 220px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	width: min(calc(var(--gald-btn-w) * 2 + 1.25rem), 100%);
	margin: 0 auto;
	justify-items: stretch;
}

@media (min-width: 720px) {
	.gald-gateway__choices {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}
}

.gald-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: var(--gald-btn-h);
	height: 100%;
	padding: 1.5rem 1.65rem;
	border-radius: var(--gald-radius);
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--gald-line);
	box-shadow: var(--gald-shadow);
	overflow: hidden;
	isolation: isolate;
	text-align: left;
	transform: translateY(0) scale(1);
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease,
		filter 0.35s ease;
	animation: gald-rise 0.8s ease both;
}

.gald-choice--szauer { animation-delay: 0.04s; }
.gald-choice--galdanor { animation-delay: 0.12s; }

.gald-choice::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 48%, transparent 62%);
	transform: translateX(-120%) skewX(-12deg);
	transition: transform 0.55s ease;
	z-index: 0;
	pointer-events: none;
}

.gald-choice::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(135deg, rgba(201,162,39,0.55), rgba(47,93,74,0.35), rgba(180,83,42,0.4));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 1;
}

.gald-choice > * {
	position: relative;
	z-index: 2;
}

.gald-choice:hover,
.gald-choice:focus-visible {
	transform: translateY(-10px) scale(1.035);
	box-shadow:
		0 28px 60px rgba(28, 23, 18, 0.28),
		0 0 0 1px rgba(201, 162, 39, 0.25),
		0 0 40px rgba(201, 162, 39, 0.18);
	filter: saturate(1.08) brightness(1.03);
	outline: none;
}

.gald-choice:hover::before,
.gald-choice:focus-visible::before {
	transform: translateX(130%) skewX(-12deg);
}

.gald-choice:hover::after,
.gald-choice:focus-visible::after {
	opacity: 1;
}

.gald-choice--szauer {
	background:
		linear-gradient(145deg, rgba(255,248,238,0.94), rgba(237,217,184,0.94));
	background-size: cover;
	background-position: center;
}

.gald-choice--galdanor {
	background:
		linear-gradient(145deg, rgba(231,240,234,0.92), rgba(197,216,204,0.92));
	background-size: cover;
	background-position: center;
}

.gald-choice__title {
	font-family: var(--gald-font-display);
	font-size: clamp(1.2rem, 2.4vw, 1.55rem);
	line-height: 1.2;
}

.gald-choice__sub {
	margin-top: 0.45rem;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	opacity: 0.72;
}

@media (max-width: 719px) {
	.gald-choice {
		min-height: 160px;
	}
}

@keyframes gald-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* —— App shells —— */
.gald-app {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(800px 400px at 100% 0%, rgba(47, 93, 74, 0.12), transparent 50%),
		var(--gald-paper);
}

.gald-shell {
	width: min(720px, 100%);
	margin: 0 auto;
	padding: 1rem 1rem 2.5rem;
}

.gald-top {
	margin-bottom: 1rem;
}

.gald-top h1 {
	font-family: var(--gald-font-display);
	font-size: 1.75rem;
	margin: 0.25rem 0;
}

.gald-top__sub {
	margin: 0;
	opacity: 0.7;
}

.gald-back,
.gald-link {
	color: var(--gald-moss-deep);
	font-weight: 600;
	text-decoration: none;
}

.gald-card {
	background: #fffdf8;
	border: 1px solid var(--gald-line);
	border-radius: var(--gald-radius);
	padding: 1rem 1.1rem;
	margin-bottom: 0.9rem;
	box-shadow: 0 8px 24px rgba(28, 23, 18, 0.06);
}

.gald-card summary {
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 0.6rem;
}

.gald-card label,
.gald-toolbar label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0.55rem 0;
}

.gald-card input,
.gald-card select,
.gald-toolbar select {
	display: block;
	width: 100%;
	margin-top: 0.3rem;
	padding: 0.75rem 0.8rem;
	border-radius: 12px;
	border: 1px solid var(--gald-line);
	font: inherit;
	background: #fff;
}

.gald-passwrap {
	position: relative;
	display: block;
	margin-top: 0.3rem;
}

.gald-passwrap input {
	margin-top: 0;
	padding-right: 5.25rem;
}

.gald-pass-toggle {
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	background: rgba(40, 70, 50, 0.1);
	color: var(--gald-moss-deep);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.gald-pass-toggle:hover,
.gald-pass-toggle:focus-visible {
	background: rgba(40, 70, 50, 0.18);
}

.gald-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--gald-moss);
	color: #f7fff9;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.gald-btn:active {
	transform: scale(0.98);
}

.gald-btn--ghost {
	background: transparent;
	color: var(--gald-moss-deep);
	border: 1px solid var(--gald-line);
}

.gald-msg {
	margin: 0.75rem 0 0;
	color: var(--gald-ember);
	font-weight: 600;
}

.gald-hint {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	opacity: 0.65;
}

.gald-toolbar {
	display: flex;
	gap: 0.75rem;
	align-items: end;
	margin-bottom: 0.75rem;
}

.gald-toolbar--rate {
	align-items: center;
	flex-wrap: wrap;
}

.gald-grow {
	flex: 1;
}

.gald-btn--inline {
	width: auto;
	margin-top: 0;
	padding: 0.55rem 1rem;
}

.gald-teacher-step__title {
	margin: 0 0 0.35rem;
	font-family: var(--gald-font-display);
	font-size: 1.35rem;
}

.gald-classpick {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-top: 1rem;
}

@media (min-width: 520px) {
	.gald-classpick {
		grid-template-columns: 1fr 1fr;
	}
}

.gald-classpick__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--gald-line);
	border-radius: var(--gald-radius);
	background: #fff;
	color: var(--gald-ink);
	font: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--gald-shadow);
}

.gald-classpick__btn:active {
	transform: scale(0.98);
	background: #e7f0ea;
}

.gald-teacher-classlabel {
	margin: 0;
	flex: 1;
	font-family: var(--gald-font-display);
	font-size: 1.2rem;
	font-weight: 700;
}

.gald-taplist__empty {
	padding: 1rem;
	opacity: 0.7;
	font-weight: 600;
}

.gald-taplist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.gald-taplist button {
	width: 100%;
	text-align: left;
	border: 1px solid var(--gald-line);
	border-radius: 16px;
	padding: 1rem 1.05rem;
	background: #fffdf8;
	font: inherit;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(28, 23, 18, 0.05);
	min-height: 72px;
}

.gald-taplist button:active {
	background: #e7f0ea;
}

.gald-taplist .name {
	display: block;
	font-weight: 700;
	font-size: 1.1rem;
}

.gald-taplist .meta {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.9rem;
	opacity: 0.7;
}

.gald-toast {
	background: var(--gald-moss);
	color: #fff;
	padding: 0.65rem 0.9rem;
	border-radius: 12px;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.gald-wallet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.15rem;
	margin: 0.5rem 0 1rem;
}

.gald-wallet--compact {
	margin: 0.5rem 0;
	gap: 0.55rem 0.85rem;
}

.gald-coin {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.gald-coin__badge {
	display: inline-grid;
	place-items: center;
	font-weight: 800;
	font-size: 0.95rem;
	color: #111 !important;
	line-height: 1;
	flex-shrink: 0;
	min-width: 1.85rem;
	min-height: 1.85rem;
}

.gald-coin__badge--circle {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ffe7a0, #d4a017 55%, #9a6b00);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.gald-coin__badge--triangle {
	width: 1.85rem;
	height: 1.85rem;
	clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
	background: linear-gradient(180deg, #ffe08a, #c49212);
	font-size: 0.85rem;
	color: #111;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.gald-coin__badge--square {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 5px;
	background: linear-gradient(135deg, #ff3b3b, #ff9900, #ffee00, #33dd55, #3399ff, #aa44ff, #ff44cc);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.gald-coin__label--taller {
	color: #d4a017;
	font-weight: 700;
	font-size: 0.95rem;
}

.gald-coin__label--shard {
	color: #e0c35a;
	font-weight: 600;
	font-size: 0.95rem;
}

.gald-coin__label--crystal {
	font-weight: 800;
	font-size: 0.95rem;
	background: linear-gradient(90deg, #ff3b3b, #ff9900, #ffee00, #33dd55, #3399ff, #aa44ff, #ff44cc, #ff3b3b);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gald-rainbow 4s linear infinite;
}

@keyframes gald-rainbow {
	to { background-position: 200% center; }
}

.gald-app--student .gald-coin__label--taller {
	color: #f0d878;
}

.gald-app--student .gald-coin__label--shard {
	color: #e8d48a;
}

.gald-sheet h2 {
	font-family: var(--gald-font-display);
	margin: 0.2rem 0;
}

.gald-placeholder h3 {
	margin: 1rem 0 0.25rem;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.65;
}

.gald-adminlist {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.gald-adminlist li {
	border: 1px solid var(--gald-line);
	border-radius: 14px;
	padding: 0.85rem;
	background: #fff;
}

.gald-adminlist .row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 0.5rem;
	align-items: end;
	margin-top: 0.5rem;
}

.gald-adminlist .row input {
	width: 100%;
	padding: 0.55rem;
	border-radius: 10px;
	border: 1px solid var(--gald-line);
	font: inherit;
}

.gald-adminlist .row button {
	padding: 0.65rem 0.8rem;
	border: 0;
	border-radius: 10px;
	background: var(--gald-ember);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* Hide theme chrome noise on gateway if shortcode sits in content */
.home .gald-gateway,
.page .gald-gateway {
	margin: -1.5rem calc(50% - 50vw) 0;
	width: 100vw;
}

.gald-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* —— Name modal —— */
.gald-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 1.25rem;
	background: rgba(20, 16, 12, 0.55);
	backdrop-filter: blur(4px);
	animation: gald-fade 0.25s ease both;
}

.gald-modal.is-hidden,
.gald-modal[hidden] {
	display: none !important;
}

.gald-modal__panel {
	width: min(420px, 100%);
	background: #fffdf8;
	border-radius: 22px;
	padding: 1.5rem 1.4rem 1.35rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	border: 1px solid var(--gald-line);
	animation: gald-rise 0.35s ease both;
	text-align: center;
}

.gald-modal__panel h2 {
	font-family: var(--gald-font-display);
	font-size: 1.7rem;
	margin: 0 0 0.55rem;
}

.gald-modal__example {
	margin: 0 0 1rem;
	opacity: 0.78;
	line-height: 1.4;
}

.gald-modal__label {
	display: block;
	margin: 0;
}

.gald-modal__label input {
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 14px;
	border: 1px solid var(--gald-line);
	font: inherit;
	font-size: 1.15rem;
	text-align: center;
	letter-spacing: 0.04em;
	background: #fff;
}

.gald-modal__staff {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gald-line);
}

.gald-btn--staff {
	margin-top: 0;
	background: transparent;
	color: var(--gald-moss-deep);
	border: 1px solid var(--gald-line);
	text-decoration: none;
}

.gald-btn--staff:hover,
.gald-btn--staff:focus-visible {
	background: rgba(47, 93, 74, 0.08);
	outline: none;
}

@keyframes gald-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* —— Fantasy character sheet —— */
.gald-app--student {
	--gald-sepia: #b8956a;
	min-height: 100vh;
	min-height: 100dvh;
	/* Full-bleed cover — no side blur strips behind the name modal. */
	background-color: var(--gald-sepia);
	background-image: var(--gald-gateway-bg, none);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #f3ebe0;
}

.gald-app--student .gald-back {
	color: #1c1712;
	opacity: 0.85;
	text-shadow: 0 1px 0 rgba(255, 248, 238, 0.45);
}

.gald-app--student .gald-modal {
	background: rgba(28, 23, 18, 0.42);
}

.gald-app--student.is-sheet-open .gald-back {
	color: #f3ebe0;
	text-shadow: none;
}

.gald-shell--sheet {
	max-width: min(1080px, 100%);
	width: 100%;
}

.gald-charsheet {
	animation: gald-rise 0.55s ease both;
}

.gald-charsheet__body {
	--gald-slot: min(120px, 40vw);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	padding: 1rem;
	border-radius: 22px;
	background:
		linear-gradient(180deg, rgba(40, 32, 24, 0.95), rgba(24, 18, 14, 0.98));
	border: 2px solid rgba(201, 162, 39, 0.55);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.4) inset,
		0 20px 50px rgba(0, 0, 0, 0.35);
	position: relative;
	align-items: start;
}

.gald-charsheet__body::before {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(201, 162, 39, 0.22);
	border-radius: 16px;
	pointer-events: none;
}

.gald-col {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	position: relative;
	z-index: 1;
}

.gald-col--2 {
	grid-column: 1 / -1;
	order: -1;
	text-align: center;
}

.gald-col--1 { order: 1; }
.gald-col--3 { order: 2; }
.gald-col--4 { order: 3; grid-column: 1 / -1; }
.gald-col--5 { order: 4; grid-column: 1 / -1; }

@media (min-width: 900px) {
	.gald-charsheet__body {
		--gald-slot: 110px;
		grid-template-columns:
			var(--gald-slot)
			minmax(150px, 190px)
			var(--gald-slot)
			var(--gald-slot)
			minmax(168px, 200px);
		gap: 0.85rem 0.7rem;
		padding: 1.1rem;
		align-items: start;
		justify-content: center;
	}

	.gald-col--1,
	.gald-col--2,
	.gald-col--3,
	.gald-col--4,
	.gald-col--5 {
		grid-column: auto;
		order: 0;
	}

	.gald-col--2 {
		align-content: start;
	}

	.gald-col--4 {
		align-content: center;
		justify-items: center;
	}

	.gald-col--5 {
		align-content: start;
	}
}

@media (min-width: 1200px) {
	.gald-charsheet__body {
		--gald-slot: 118px;
	}
}

.gald-slot {
	width: var(--gald-slot, 118px);
	max-width: 100%;
	text-align: center;
	cursor: default;
}

.gald-slot__label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
	margin-bottom: 0.35rem;
}

.gald-slot__frame {
	aspect-ratio: 1;
	width: 100%;
	border-radius: 14px;
	border: 2px solid rgba(201, 162, 39, 0.65);
	background:
		radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.06), transparent 55%),
		linear-gradient(160deg, #2c241c, #17120e);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
	display: grid;
	place-items: center;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.gald-slot.has-item .gald-slot__frame {
	border-color: #e0c35a;
}

.gald-slot:hover .gald-slot__frame,
.gald-slot:focus .gald-slot__frame,
.gald-slot:focus-within .gald-slot__frame {
	transform: translateY(-2px);
	border-color: #f0d878;
}

.gald-slot__frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4%;
}

.gald-portrait__name {
	font-family: var(--gald-font-display);
	font-size: clamp(1.45rem, 3vw, 2rem);
	margin: 0 0 0.15rem;
	color: #f3e0a6;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.gald-portrait__title {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(243, 235, 224, 0.72);
}

.gald-portrait__frame {
	width: min(180px, 46vw);
	aspect-ratio: 1 / 2;
	margin: 0 auto;
	border-radius: 18px;
	border: 3px solid #c9a227;
	background: linear-gradient(160deg, #32281f, #14100c);
	box-shadow:
		0 0 0 6px rgba(201, 162, 39, 0.12),
		inset 0 0 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: grid;
	place-items: center;
	position: relative;
}

@media (min-width: 900px) {
	.gald-portrait__frame {
		width: 100%;
		max-width: 200px;
	}
}

.gald-portrait__frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gald-portrait__placeholder {
	color: rgba(243, 235, 224, 0.35);
	width: 45%;
}

.gald-tooltip {
	position: fixed;
	z-index: 12000;
	max-width: 240px;
	padding: 0.65rem 0.8rem;
	border-radius: 12px;
	background: #fffdf8;
	color: var(--gald-ink);
	border: 1px solid rgba(201, 162, 39, 0.55);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	font-size: 0.92rem;
	line-height: 1.35;
}

.gald-tooltip strong {
	display: block;
	font-family: var(--gald-font-display);
	margin-bottom: 0.2rem;
}

.gald-tooltip span {
	opacity: 0.85;
	font-size: 0.86rem;
}

.gald-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin: 0;
	width: 100%;
}

@media (min-width: 900px) {
	.gald-stats {
		grid-template-columns: 1fr;
	}
}

.gald-stats__col {
	display: grid;
	gap: 0.55rem;
	padding: 0.85rem;
	border-radius: 16px;
	background: rgba(255, 248, 235, 0.04);
	border: 1px solid rgba(201, 162, 39, 0.3);
	width: 100%;
	box-sizing: border-box;
}

.gald-stat {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.35rem 0.2rem;
	border-bottom: 1px solid rgba(243, 235, 224, 0.08);
}

.gald-stat:last-child {
	border-bottom: 0;
}

.gald-stat__label {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.82rem;
	opacity: 0.8;
}

.gald-stat__value {
	font-family: var(--gald-font-display);
	font-size: 1.45rem;
	color: #f0d878;
	font-weight: 700;
}

.gald-abilities {
	margin-top: 1rem;
	padding: 1rem 1.1rem;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(40, 32, 24, 0.95), rgba(24, 18, 14, 0.98));
	border: 2px solid rgba(201, 162, 39, 0.45);
}

.gald-abilities__title {
	margin: 0 0 0.55rem;
	font-family: var(--gald-font-display);
	font-size: 1.15rem;
	color: #f0d878;
	letter-spacing: 0.04em;
}

.gald-abilities__body {
	margin: 0;
	white-space: pre-wrap;
	line-height: 1.5;
	color: rgba(243, 235, 224, 0.92);
	font-size: 1rem;
	min-height: 2.5rem;
}

.gald-abilities__body.is-empty {
	opacity: 0.45;
	font-style: italic;
}

.gald-form textarea,
#edit-kepessegek {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	border: 1px solid var(--gald-line);
	font: inherit;
	resize: vertical;
	min-height: 110px;
	box-sizing: border-box;
}

.gald-app--student .gald-btn--ghost {
	border-color: rgba(243, 235, 224, 0.35);
	color: #f3ebe0;
}

/* —— Gadmin tabs / items / editor —— */
.gald-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.gald-tabs__btn {
	border: 1px solid var(--gald-line);
	background: #fff;
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.gald-tabs__btn.is-active {
	background: var(--gald-moss);
	border-color: var(--gald-moss);
	color: #fff;
}

.gald-form label,
.gald-statgrid label {
	display: block;
	margin: 0.55rem 0;
}

.gald-statgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.5rem 0.75rem;
	margin: 0.75rem 0;
}

.gald-statgrid input,
.gald-form input,
.gald-form select,
.gald-slot-admin select {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	border: 1px solid var(--gald-line);
	font: inherit;
}

.gald-itemlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.gald-itemlist li {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.65rem;
	border: 1px solid var(--gald-line);
	border-radius: 14px;
	background: #fff;
}

.gald-itemlist img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 10px;
	background: #1c1712;
}

.gald-xbtn {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: #8b2e2e;
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	font-weight: 700;
}

.gald-portrait-admin {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 0.75rem 0 1rem;
}

.gald-portrait-admin__preview {
	width: 120px;
	height: 120px;
	border-radius: 14px;
	border: 2px solid var(--gald-gold);
	background: #1c1712;
	display: grid;
	place-items: center;
	overflow: hidden;
	color: #f3ebe0;
	font-size: 0.85rem;
}

.gald-portrait-admin__preview--tall {
	width: 100px;
	height: 200px;
}

.gald-portrait-admin__preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gald-filebtn {
	display: inline-block;
	cursor: pointer;
}

.gald-slot-admin {
	display: grid;
	gap: 0.55rem;
	margin: 0.75rem 0 1rem;
}

.gald-slot-admin__row {
	display: grid;
	grid-template-columns: 120px 1fr auto 48px;
	gap: 0.5rem;
	align-items: center;
}

.gald-slot-admin__label {
	font-weight: 600;
	font-size: 0.9rem;
}

.gald-slot-admin .edit-slot-thumb {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 8px;
	background: #1c1712;
}

.gald-totals {
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: rgba(47, 93, 74, 0.1);
	border: 1px solid rgba(47, 93, 74, 0.25);
	line-height: 1.45;
}

.gald-adminlist .btn-edit-sheet {
	padding: 0.65rem 0.8rem;
	border: 0;
	border-radius: 10px;
	background: var(--gald-moss);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.gald-adminlist .row {
	grid-template-columns: 1fr 1fr auto auto;
}

.gald-adminlist .row--currency {
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
}

@media (max-width: 640px) {
	.gald-slot-admin__row {
		grid-template-columns: 1fr auto 48px;
	}
	.gald-slot-admin__label {
		grid-column: 1 / -1;
	}
	.gald-adminlist .row,
	.gald-adminlist .row--currency {
		grid-template-columns: 1fr 1fr;
	}
}
