* {
	box-sizing: border-box;
}
body {
	margin: 0;
	color: #352d25;
	background: #f5efe3;
	font:
		1.08rem / 1.5 system-ui,
		sans-serif;
}
main {
	margin: 8vh auto;
	padding: 2rem;
	max-width: 34rem;
	background: #fffaf0;
	border: 1px solid #d3c5b1;
	border-radius: 1rem;
}
header {
	font-weight: 800;
	color: #805121;
}
h1 {
	font:
		700 2rem Georgia,
		serif;
}
form,
nav {
	display: grid;
	gap: 0.8rem;
	margin: 1.25rem 0;
}
label {
	display: grid;
	gap: 0.35rem;
}
input,
button {
	font: inherit;
	border-radius: 0.45rem;
	padding: 0.65rem;
}
input {
	width: 100%;
	border: 1px solid #927d66;
}
button {
	cursor: pointer;
	background: #533e2a;
	color: white;
	border: 0;
}
a {
	color: #75471b;
}
li {
	overflow-wrap: anywhere;
}
li form {
	display: inline-block;
	margin: 0.25rem;
}
li button {
	padding: 0.3rem 0.6rem;
}
p[role="status"] {
	min-height: 1.5em;
}

/* Admin panel: cards on a wide canvas, tables become labelled rows on phones. */
main.wide {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 1rem 3rem;
	background: none;
	border: 0;
	border-radius: 0;
}
header.bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 -1rem;
	padding: 0.9rem 1rem;
	background: #fffaf0;
	/* Full-bleed bar while the content stays centred. */
	box-shadow: 0 0 0 100vmax #fffaf0;
	clip-path: inset(0 -100vmax);
}
header.bar nav {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	font-weight: 500;
}
main.wide h1 {
	margin: 1.75rem 0 1.25rem;
}
.card {
	margin-bottom: 1.25rem;
	padding: 1.25rem 1.5rem;
	background: #fffaf0;
	border: 1px solid #d3c5b1;
	border-radius: 0.75rem;
	min-width: 0;
}
.card h2 {
	margin: 0 0 1rem;
	font-size: 1.2rem;
}
.muted {
	color: #8a7a68;
	font-weight: 400;
}
.badge {
	display: inline-block;
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	font-size: 0.85rem;
	white-space: nowrap;
}
.badge.on {
	background: #e3efd9;
	color: #35602a;
}
.badge.off {
	background: #f3dfd8;
	color: #8a3a22;
}
table.grid {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.grid th {
	text-align: left;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a7a68;
	border-bottom: 2px solid #e4d8c6;
}
.grid th,
.grid td {
	padding: 0.6rem 0.75rem;
	vertical-align: middle;
	overflow-wrap: anywhere;
}
.grid td {
	border-bottom: 1px solid #efe6d8;
}
.grid tbody tr:hover {
	background: #f9f2e5;
}
.grid td.actions,
.grid th.actions {
	white-space: nowrap;
	text-align: right;
}
.grid form,
.keys form {
	display: inline-block;
	margin: 0 0 0 0.4rem;
}
.grid button,
.keys button {
	padding: 0.3rem 0.7rem;
	font-size: 0.88rem;
	background: none;
	color: #533e2a;
	border: 1px solid #b9a690;
}
.grid button:hover,
.keys button:hover {
	background: #533e2a;
	color: white;
}
.keys {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}
.keys li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid #efe6d8;
}
form.add {
	grid-template-columns: 1fr auto;
	align-items: end;
	margin-top: 0;
}
@media (min-width: 900px) {
	.cols {
		display: grid;
		grid-template-columns: minmax(18rem, 1fr) 2fr;
		gap: 1.25rem;
		align-items: start;
	}
	form.add label {
		max-width: 28rem;
	}
	form.add {
		grid-template-columns: minmax(0, 28rem) auto;
		justify-content: start;
	}
}
@media (max-width: 719px) {
	form.add {
		grid-template-columns: 1fr;
	}
	.grid thead {
		display: none;
	}
	.grid tr,
	.grid td {
		display: block;
	}
	.grid tr {
		padding: 0.5rem 0;
		border-bottom: 1px solid #e4d8c6;
	}
	.grid td {
		border: 0;
		padding: 0.2rem 0;
	}
	.grid td::before {
		content: attr(data-label) ": ";
		color: #8a7a68;
		font-size: 0.85rem;
	}
	.grid td.actions {
		text-align: left;
		white-space: normal;
	}
	.grid td.actions::before {
		content: none;
	}
	.grid form {
		margin: 0.25rem 0.4rem 0 0;
	}
}

/* Sign-in screens: navy club bar, a cream book with a brass ridge frame (the culinary guide),
   the storefront card framed like the lobby game cards. */
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap; src: url("/auth/assets/pt-serif-700-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap; src: url("/auth/assets/pt-serif-700-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: italic; font-display: swap; src: url("/auth/assets/pt-serif-400-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: italic; font-display: swap; src: url("/auth/assets/pt-serif-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-display: swap; src: url("/auth/assets/pt-sans-400-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-display: swap; src: url("/auth/assets/pt-sans-400-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-weight: 700; font-display: swap; src: url("/auth/assets/pt-sans-700-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-weight: 700; font-display: swap; src: url("/auth/assets/pt-sans-700-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

body.club {
	--navy: #102138;
	--brass: #a96e38;
	--brass-light: #deb26b;
	--ink: #3a1300;
	--muted: #6b5944;
	min-height: 100dvh;
	padding: 10px 14px 28px;
	color: var(--ink);
	background:
		radial-gradient(ellipse at 50% -10%, #fff6e4 0, transparent 60%),
		linear-gradient(#f6e6cc, #ecd4ad);
	font: 18px / 1.5 "PT Sans", Arial, sans-serif;
}
.club-bar {
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border: 2px solid #ad651a;
	border-radius: 40px;
	color: #fff1d6;
	background: linear-gradient(175deg, #273a50, #101f31 55%, #04111e);
	box-shadow: inset 0 0 0 2px #ffe3a0, inset 0 4px 5px #fff3, 0 4px 5px #63320077;
	font: 700 32px / 1 "PT Serif", Georgia, serif;
	text-shadow: 0 2px 2px #000;
}
.club-seal {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #ffd277;
	background:
		radial-gradient(circle at 35% 30%, #fff5cd, #f6c45b 45%, #cb791c 80%);
	box-shadow: inset 0 0 0 4px #b8691833, 0 2px 2px #0008;
}
.club-book {
	max-width: 1080px;
	margin: 22px auto 0;
	padding: 22px 32px 30px;
	background: radial-gradient(ellipse at 60% 0, #fff9ec, #fbead0);
	border: 8px ridge var(--brass);
	border-radius: 34px;
	box-shadow: 0 6px 14px #4c2d1833, inset 0 0 0 4px #fff8e780;
}
.club-heading {
	text-align: center;
	margin-bottom: 26px;
}
.club h1 {
	margin: 0;
	color: var(--navy);
	font: 700 clamp(32px, 4.4vw, 56px) / 1.12 "PT Serif", Georgia, serif;
	letter-spacing: -0.5px;
}
.club-heading p {
	margin: 6px 0 0;
	color: #553e29;
	font-size: clamp(17px, 1.8vw, 23px);
}
.club-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 34px;
	align-items: center;
}
.club-card {
	position: relative;
	margin: 0;
	padding: 22px 0 0;
}
.club-badge {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	max-width: 92%;
	white-space: nowrap;
	padding: 6px 20px;
	color: #fff0cf;
	border-radius: 22px;
	background: #142c47;
	border: 3px double var(--brass-light);
	font: 700 clamp(15px, 1.6vw, 19px) / 1.3 "PT Serif", Georgia, serif;
	box-shadow: 0 3px 5px #0004;
}
/* Same layered walnut-and-gold frame as the lobby game cards. */
.club-card__frame {
	overflow: hidden;
	padding: 0;
	border: 2px solid #a56625;
	border-radius: 28px;
	background: linear-gradient(90deg, #6b2d0d, #ce9146 2%, #743a11 5%, #4a1e08 95%, #a45b19 98%, #e2ac59);
	box-shadow: 0 0 0 3px #4a1e08, 0 0 0 5px #efc06c, 0 8px 14px #55200077;
}
.club-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3.7;
	max-height: max(220px, calc(100dvh - 420px));
	object-fit: cover;
	object-position: 50% 62%;
	border-bottom: 1px solid #f7d791;
}
.club-card figcaption {
	padding: 12px 18px 14px;
	text-align: center;
	color: var(--ink);
	background: linear-gradient(#fff3df, #f6dcb4);
	font: italic 18px / 1.35 "PT Serif", Georgia, serif;
}
.club-form {
	padding-left: 34px;
	border-left: 1px solid #b98746;
	max-width: 30rem;
}
.club h2 {
	margin: 0 0 6px;
	color: var(--navy);
	font: 700 clamp(26px, 2.6vw, 36px) / 1.15 "PT Serif", Georgia, serif;
}
.club form {
	gap: 16px;
	margin: 18px 0 14px;
}
.club label {
	gap: 6px;
	color: var(--muted);
	font-weight: 700;
	font-size: 16px;
}
.club input {
	min-height: 56px;
	padding: 10px 18px;
	border: 2px solid #c79a62;
	border-radius: 16px;
	color: var(--ink);
	background: #fffdf7;
	box-shadow: inset 0 2px 4px #8a5a2622;
	font: 20px "PT Sans", Arial, sans-serif;
}
.club input::placeholder {
	color: #b39a7d;
}
.club input:focus-visible {
	outline: 3px solid #e0a648;
	outline-offset: 2px;
	border-color: var(--navy);
}
.club .club-code {
	text-align: center;
	letter-spacing: 0.5em;
	padding-left: calc(18px + 0.5em);
	font: 700 32px "PT Serif", Georgia, serif;
}
.club-primary,
.club-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 4px 28px 6px;
	border-radius: 35px;
	font: 700 24px / 1.2 "PT Serif", Georgia, serif;
	text-decoration: none;
	box-shadow: inset 0 1px 2px #fff9, inset 0 -3px 4px #0005, 0 3px 5px #64340755;
	transition: filter 120ms, transform 120ms;
}
.club-primary {
	color: #fff2d7;
	background: linear-gradient(#355579 0%, #1b314b 40%, #071627 100%);
	border: 1px solid #76562f;
	text-shadow: 0 2px 2px #0008;
}
.club-secondary {
	color: var(--ink);
	background: linear-gradient(#fff5e2, #edcea2);
	border: 1px solid #bf8c50;
	font-size: 19px;
	min-height: 48px;
}
.club-primary:hover,
.club-secondary:hover {
	filter: brightness(1.1);
}
.club-primary:active,
.club-secondary:active {
	transform: translateY(1px);
}
.club-primary:focus-visible,
.club-secondary:focus-visible {
	outline: 3px solid #e0a648;
	outline-offset: 3px;
}
.club-note,
.club-message {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}
.club-message {
	min-height: 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: #f3dfbf88;
	border: 1px dashed #c79a62;
}
.club-foot {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 760px;
	margin: 24px auto 0;
	color: #553e29;
	font: italic 22px / 1.3 "PT Serif", Georgia, serif;
	text-align: center;
}
.club-foot::before,
.club-foot::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, #ac6c24);
}
.club-foot::after {
	transform: rotate(180deg);
}
@media (max-width: 760px) {
	body.club {
		padding: 8px 10px 22px;
	}
	.club-bar {
		height: 54px;
		font-size: 26px;
	}
	.club-book {
		margin-top: 14px;
		padding: 16px 16px 22px;
		border-width: 6px;
		border-radius: 26px;
	}
	.club-heading {
		margin-bottom: 18px;
	}
	.club-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}
	.club-card img {
		aspect-ratio: 2 / 1;
	}
	.club-card figcaption {
		font-size: 16px;
		padding: 10px 14px 12px;
	}
	.club-form {
		padding-left: 0;
		border-left: 0;
		max-width: none;
	}
	.club-foot {
		font-size: 18px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.club-primary,
	.club-secondary {
		transition: none;
	}
}
