/* Private coin collection portal. Dark museum theme with metal accents. */

:root {
	--bg: #0b0d12;
	--bg-2: #10131a;
	--panel: rgba(255, 255, 255, 0.028);
	--panel-2: rgba(255, 255, 255, 0.05);
	--line: rgba(212, 175, 106, 0.16);
	--line-2: rgba(255, 255, 255, 0.07);
	--text: #ece6d8;
	--muted: #a29c8e;
	--faint: #6b675e;
	--gold: #d4af6a;
	--gold-hi: #f6dfa0;
	--gold-lo: #8c6a2c;
	--silver: #c3c9d2;
	--copper: #c47b4f;
	--mine: #6fc3b2;
	--reserved: #a597f0;
	--danger: #e0826f;
	--serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--radius: 18px;
	--ease: cubic-bezier(0.2, 0.75, 0.2, 1);
	--shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.9);
	--top: 72px;
	--lot: 0px;
}

html.cc-has-lot { --lot: 46px; }

.m-gold { --m: #d4af6a; --m-hi: #f8e4a8; --m-lo: #8c6a2c; --m-rgb: 212, 175, 106; }
.m-silver { --m: #c3c9d2; --m-hi: #f6f8fb; --m-lo: #6f7783; --m-rgb: 195, 201, 210; }
.m-copper { --m: #c47b4f; --m-hi: #f0b088; --m-lo: #6e3a1f; --m-rgb: 196, 123, 79; }

*, *::before, *::after { box-sizing: border-box; }

html {
	background: var(--bg);
	color-scheme: dark;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--top) + var(--lot) + 16px);
}

html.cc-lock { overflow: hidden; }

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; }
::selection { background: rgba(212, 175, 106, 0.35); color: #fff; }

:focus-visible {
	outline: 2px solid rgba(246, 223, 160, 0.75);
	outline-offset: 2px;
	border-radius: 8px;
}

.cc-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.2em;
}

/* ------------------------------------------------------------------ */
/* Backdrop, splash                                                     */
/* ------------------------------------------------------------------ */

.cc-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(1100px 620px at 12% -12%, rgba(212, 175, 106, 0.11), transparent 62%),
		radial-gradient(900px 560px at 105% 8%, rgba(120, 140, 175, 0.08), transparent 60%),
		radial-gradient(1000px 700px at 50% 120%, rgba(196, 123, 79, 0.06), transparent 60%),
		var(--bg);
}

.cc-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cc-splash {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--bg);
}

.cc-empty-coin {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.75), transparent 32%),
		radial-gradient(circle, transparent 54%, rgba(0, 0, 0, 0.25) 56%, transparent 58%),
		linear-gradient(135deg, #fbe7ad, #d4af6a 45%, #8c6524);
	box-shadow: 0 20px 50px -14px rgba(212, 175, 106, 0.55), inset 0 0 0 3px rgba(140, 101, 36, 0.55);
}

.cc-logo { display: block; width: 132px; height: auto; }
.cc-splash .cc-logo { animation: cc-breathe 1.6s ease-in-out infinite; }

.cc-noscript {
	position: fixed;
	inset: auto 0 40px;
	text-align: center;
	color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Top bar                                                              */
/* ------------------------------------------------------------------ */

.cc-top {
	position: sticky;
	top: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: auto 1fr minmax(180px, 300px) auto;
	align-items: center;
	gap: 22px;
	height: var(--top);
	padding: 0 28px;
	background: linear-gradient(180deg, rgba(11, 13, 18, 0.92), rgba(11, 13, 18, 0.72));
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.cc-top.scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.cc-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.cc-brand-logo { display: block; flex: none; width: 95px; height: 41px; }

.cc-brand-who {
	min-width: 0;
	padding-left: 16px;
	border-left: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cc-nav {
	display: flex;
	justify-content: center;
	gap: 4px;
}

.cc-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.2s, background 0.2s;
}

.cc-nav a:hover { color: var(--text); background: var(--panel-2); }

.cc-nav a.on {
	color: var(--gold-hi);
	background: rgba(212, 175, 106, 0.1);
	box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.25);
}

.cc-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mine);
	color: #0b1a17;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
}

/* Dealer's lot: a strip along the bottom of the header */
html.cc-has-lot .cc-top { height: auto; grid-template-rows: var(--top) auto; }

.cc-lot {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	height: var(--lot);
	margin: -22px -28px 0;
	padding: 0 28px;
	border-top: 1px solid var(--line-2);
	font-size: 13.5px;
	white-space: nowrap;
}

.cc-lot-title { flex: none; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.cc-lot-sum { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-lot-sum b { color: var(--text); font-weight: 600; }
.cc-lot-of { margin-left: 0.35em; }

.cc-lot-bar {
	position: relative;
	flex: 1 1 40px;
	max-width: 420px;
	height: 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.cc-lot-bar i {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #3d8b7c, #a6eadb);
	transition: width 0.8s var(--ease);
}

.cc-lot.full .cc-lot-bar i { background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-hi)); }
.cc-lot-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 12.5px; }
.cc-lot-send { flex: none; height: 32px; margin-left: auto; }
.cc-lot-send .short { display: none; }

.cc-lot.sent { background: rgba(212, 175, 106, 0.07); color: var(--gold-hi); }
.cc-lot.sent > .cc-icon { flex: none; color: var(--gold); }
.cc-lot-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; overflow: hidden; }
.cc-lot-text b { flex: none; font-weight: 600; }
.cc-lot-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }

.cc-search {
	position: relative;
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--panel-2);
	border: 1px solid var(--line-2);
	color: var(--muted);
	transition: border-color 0.2s, background 0.2s;
}

.cc-search:focus-within { border-color: rgba(212, 175, 106, 0.45); background: rgba(255, 255, 255, 0.07); }

.cc-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 8px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font-size: 14px;
}

.cc-search input::placeholder { color: var(--faint); }

.cc-search kbd {
	padding: 1px 7px;
	border-radius: 6px;
	border: 1px solid var(--line-2);
	color: var(--faint);
	font: 500 11px/1.5 var(--sans);
}

.cc-search:focus-within kbd { display: none; }

.cc-tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cc-lang {
	display: flex;
	padding: 3px;
	border-radius: 999px;
	background: var(--panel-2);
	border: 1px solid var(--line-2);
}

.cc-lang button {
	padding: 5px 9px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition: color 0.2s, background 0.2s;
}

.cc-lang button:hover { color: var(--text); }
.cc-lang button.on { background: linear-gradient(135deg, #f3d995, #c79f55); color: #1d1608; }

.cc-round-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	background: var(--panel-2);
	color: var(--muted);
	transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.cc-round-btn:hover:not(:disabled) { color: var(--gold-hi); border-color: rgba(212, 175, 106, 0.45); }
.cc-round-btn:active:not(:disabled) { transform: scale(0.94); }
.cc-round-btn:disabled { opacity: 0.35; }
.cc-round-btn.lg { width: 48px; height: 48px; }

/* ------------------------------------------------------------------ */
/* Layout and shared pieces                                             */
/* ------------------------------------------------------------------ */

.cc-main {
	width: 100%;
	max-width: 1320px;
	min-height: calc(100vh - var(--top) - 140px);
	margin: 0 auto;
	padding: 36px 28px 72px;
}

.cc-section { margin-top: 64px; }

.cc-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin-bottom: 18px;
}

.cc-section-head h2,
.cc-sub-head {
	margin: 0;
	font-family: var(--serif);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.005em;
}

.cc-sub-head { margin: 36px 0 16px; font-size: 28px; }

.cc-section-head p {
	max-width: 620px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.cc-panel {
	position: relative;
	padding: 24px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
	border: 1px solid var(--line-2);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cc-kicker {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cc-display {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(40px, 5.6vw, 76px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.005em;
	background: linear-gradient(180deg, #fff6df 0%, #ecd49a 55%, #b88c43 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cc-lead {
	max-width: 560px;
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 16.5px;
	line-height: 1.6;
}

.cc-lead-more {
	margin-top: 8px;
	font-size: 15px;
}

.cc-note {
	margin: 34px 0 0;
	padding: 16px 20px;
	border-radius: 14px;
	border: 1px solid rgba(111, 195, 178, 0.25);
	background: rgba(111, 195, 178, 0.06);
	color: #bfe7de;
	font-size: 14px;
}

.cc-note-text {
	margin: 8px 0 0;
	white-space: pre-line;
	color: var(--muted);
	font-size: 13.5px;
}

.cc-muted { color: var(--muted); font-size: 13px; }

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

.cc-actions.center { justify-content: center; }

.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.cc-btn:active:not(:disabled) { transform: scale(0.97); }
.cc-btn:disabled { opacity: 0.55; }
.cc-btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }

.cc-btn-gold {
	background: linear-gradient(135deg, #f8e2a2, #d4af6a 50%, #a77d34);
	color: #1c1407;
	box-shadow: 0 14px 30px -16px rgba(212, 175, 106, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cc-btn-gold:hover:not(:disabled) { box-shadow: 0 18px 38px -14px rgba(212, 175, 106, 1), inset 0 1px 0 rgba(255, 255, 255, 0.6); transform: translateY(-1px); }

.cc-btn-ghost {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(212, 175, 106, 0.32);
	color: var(--text);
}

.cc-btn-ghost:hover:not(:disabled) { border-color: rgba(212, 175, 106, 0.7); color: var(--gold-hi); }
.cc-btn-offer { color: var(--gold); }
.cc-btn-offer:hover:not(:disabled) { background: rgba(212, 175, 106, 0.12); }

.cc-btn-danger {
	background: rgba(224, 130, 111, 0.12);
	border-color: rgba(224, 130, 111, 0.6);
	color: #f4b2a3;
}

.cc-btn .cc-count { margin-left: 2px; }

.cc-link {
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--gold);
	font-size: 13.5px;
	text-decoration: underline;
	text-decoration-color: rgba(212, 175, 106, 0.35);
	text-underline-offset: 4px;
}

.cc-bar {
	position: relative;
	display: block;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.07);
	overflow: hidden;
}

.cc-bar i {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--m-lo, #8c6a2c), var(--m, #d4af6a), var(--m-hi, #f6dfa0));
	transition: width 1s var(--ease);
}

.cc-metal-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	flex: none;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--m-hi, #fff), var(--m, #888) 55%, var(--m-lo, #444));
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.cc-hint {
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 10px;
	font-weight: 600;
	text-decoration: none;
	cursor: help;
	vertical-align: 1px;
}

.cc-tag {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(196, 123, 79, 0.14);
	color: #e8ae8a;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

.cc-tag-commem { background: rgba(212, 175, 106, 0.16); color: #f1d595; }

.cc-loading {
	display: grid;
	place-items: center;
	min-height: 320px;
}

.cc-spinner {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.7), transparent 34%),
		linear-gradient(135deg, #fbe7ad, #d4af6a 45%, #8c6524);
	box-shadow: 0 14px 40px -12px rgba(212, 175, 106, 0.55);
	animation: cc-spin-y 1.6s var(--ease) infinite;
}

.cc-empty,
.cc-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 64px 24px;
	text-align: center;
}

.cc-empty h2,
.cc-empty h3 {
	margin: 18px 0 0;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
}

.cc-empty p,
.cc-error p {
	max-width: 520px;
	margin: 8px 0 0;
	color: var(--muted);
}

.cc-empty-coin { width: 64px; height: 64px; opacity: 0.85; animation: cc-float 5s ease-in-out infinite; }
.cc-error .cc-btn { margin-top: 16px; }
.cc-error .cc-empty-coin { filter: grayscale(0.7); }
.cc-fatal { min-height: 50vh; justify-content: center; }

/* ------------------------------------------------------------------ */
/* Home: hero, rings, metals                                            */
/* ------------------------------------------------------------------ */

.cc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 48px;
	padding: 24px 0 10px;
}

/* Above the rings, which come later in the page and would cover the country list. */
.cc-hero-copy { position: relative; z-index: 2; animation: cc-rise 0.8s var(--ease) both; }

.cc-figures {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 40px;
	margin-top: 32px;
}

.cc-figures div { display: flex; flex-direction: column; }

.cc-figures b {
	font-family: var(--serif);
	font-size: 44px;
	font-weight: 600;
	line-height: 1;
	color: var(--text);
	font-variant-numeric: lining-nums;
}

.cc-figures b em { color: var(--faint); font-style: normal; font-size: 30px; }

.cc-figures span {
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
}

.cc-hero-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	animation: cc-rise 0.9s 0.1s var(--ease) both;
}

.cc-rings {
	position: relative;
	max-width: 100%;
	aspect-ratio: 1;
}

.cc-rings svg { display: block; width: 100%; height: 100%; overflow: visible; }

.cc-ring-track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.055);
	stroke-width: 13;
}

.cc-ring-bar {
	fill: none;
	stroke-width: 13;
	stroke-linecap: round;
	transition: stroke-dasharray 1.8s var(--ease);
	filter: drop-shadow(0 0 6px rgba(var(--m-rgb), 0.35));
}

.cc-ring.m-silver .cc-ring-bar { transition-delay: 0.15s; }
.cc-ring.m-copper .cc-ring-bar { transition-delay: 0.3s; }

.cc-rings-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.cc-rings-center b {
	font-family: var(--serif);
	font-size: 54px;
	font-weight: 600;
	line-height: 1;
	color: var(--gold-hi);
	font-variant-numeric: tabular-nums lining-nums;
}

.cc-rings-center span {
	margin-top: 6px;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.cc-metals {
	width: 100%;
	max-width: 380px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-metals li {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 4px 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line-2);
}

.cc-metals li:last-child { border-bottom: 0; }

.cc-metal-name { font-size: 14px; font-weight: 500; }

.cc-metal-count {
	color: var(--muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.cc-metal-count b { color: var(--text); font-weight: 600; }

.cc-metal-bar {
	grid-column: 1 / -1;
	position: relative;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.cc-metal-bar i {
	position: absolute;
	inset: 0 auto 0 0;
	background: linear-gradient(90deg, var(--m-lo), var(--m), var(--m-hi));
	transition: width 1.2s var(--ease);
}

/* ------------------------------------------------------------------ */
/* Map                                                                  */
/* ------------------------------------------------------------------ */

.cc-map-panel { padding: 14px; overflow: hidden; }

.cc-map { position: relative; }

.cc-map-svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
}

.cc-map-land {
	fill: #151922;
	stroke: rgba(255, 255, 255, 0.035);
	stroke-width: 0.6;
}

.cc-map-country {
	fill: #1a1f2a;
	stroke: rgba(10, 12, 17, 0.95);
	stroke-width: 0.7;
	stroke-linejoin: round;
	transition: fill 0.5s, opacity 0.3s;
}

.cc-map-country.on {
	cursor: pointer;
	stroke: rgba(212, 175, 106, 0.32);
}

.cc-map-country.on:hover { opacity: 0.9; }

.cc-map-hover {
	fill: rgba(246, 223, 160, 0.08);
	stroke: var(--gold-hi);
	stroke-width: 1.6;
	stroke-linejoin: round;
	pointer-events: none;
}

.cc-map-label {
	fill: rgba(240, 232, 214, 0.78);
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	paint-order: stroke;
	stroke: rgba(11, 13, 18, 0.75);
	stroke-width: 2.6px;
}

.cc-map-marker { cursor: pointer; }
.cc-map-marker-hit { fill: transparent; }

.cc-map-marker-ring {
	fill: rgba(11, 13, 18, 0.7);
	stroke: rgba(212, 175, 106, 0.55);
	stroke-width: 1;
	transition: stroke 0.2s, r 0.2s;
}

.cc-map-marker-dot { stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.6; }
.cc-map-marker.hover .cc-map-marker-ring { stroke: var(--gold-hi); stroke-width: 1.6; }

.cc-map-tip {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 200px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(16, 19, 26, 0.94);
	border: 1px solid rgba(212, 175, 106, 0.3);
	box-shadow: 0 24px 50px -20px #000;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	pointer-events: none;
	animation: cc-fade 0.15s ease-out;
}

.cc-map-tip b {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
}

.cc-map-tip-main { color: var(--gold-hi); font-size: 13px; font-weight: 500; }

.cc-map-tip-metal {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 12.5px;
}

.cc-map-tip-metal em {
	margin-left: auto;
	color: var(--text);
	font-style: normal;
	font-variant-numeric: tabular-nums;
}

.cc-map-legend {
	position: absolute;
	left: 18px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 11.5px;
	pointer-events: none;
}

.cc-map-legend i {
	width: 120px;
	height: 6px;
	border-radius: 6px;
	background: linear-gradient(90deg, rgb(46, 51, 64), rgb(92, 76, 46), rgb(240, 204, 128));
}

.cc-map-extra {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 4px 2px;
}

/* ------------------------------------------------------------------ */
/* Timeline                                                             */
/* ------------------------------------------------------------------ */

.cc-timeline { position: relative; }

.cc-tl-caption {
	min-height: 20px;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.cc-tl-bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 190px;
	padding-bottom: 26px;
}

.cc-tl-col {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	display: flex;
	align-items: flex-end;
	padding: 0;
	border: 0;
	background: none;
}

.cc-tl-col.century::before {
	content: '';
	position: absolute;
	left: -2px;
	top: 0;
	bottom: -4px;
	border-left: 1px dashed rgba(212, 175, 106, 0.16);
}

.cc-tl-bar {
	position: relative;
	display: block;
	width: 100%;
	border-radius: 4px 4px 2px 2px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
	overflow: hidden;
	transform-origin: bottom;
	transform: scaleY(0);
	transition: transform 0.9s var(--ease), background 0.2s, box-shadow 0.2s;
	transition-delay: calc(var(--i) * 18ms);
}

.cc-timeline.shown .cc-tl-bar { transform: scaleY(1); }
.cc-tl-col.empty .cc-tl-bar { background: rgba(255, 255, 255, 0.025); }
.cc-tl-col:not(:disabled) { cursor: pointer; }
.cc-tl-col:not(:disabled):hover .cc-tl-bar { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); box-shadow: 0 0 0 1px rgba(246, 223, 160, 0.5); }
.cc-tl-owned {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column-reverse;
}

.cc-tl-owned i { display: block; width: 100%; flex: none; }
.cc-tl-owned i.m-gold { background: linear-gradient(180deg, #f8e4a8, #c79c4e); }
.cc-tl-owned i.m-silver { background: linear-gradient(180deg, #f6f8fb, #9aa2ad); }
.cc-tl-owned i.m-copper { background: linear-gradient(180deg, #f0b088, #a2603a); }

.cc-tl-label {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 8px;
	color: var(--faint);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cc-tl-col.century .cc-tl-label { color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Countries and recent                                                 */
/* ------------------------------------------------------------------ */

.cc-country-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 14px;
}

.cc-country-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--panel);
	border: 1px solid var(--line-2);
	transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
	animation: cc-rise 0.6s var(--ease) both;
	animation-delay: calc(var(--i) * 30ms);
}

.cc-country-card:hover {
	transform: translateY(-3px);
	border-color: rgba(212, 175, 106, 0.4);
	background: rgba(255, 255, 255, 0.045);
}

.cc-roundel {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	background: conic-gradient(var(--gold) 0deg, var(--gold-hi) var(--p, 0deg), rgba(255, 255, 255, 0.08) var(--p, 0deg) 360deg);
}

.cc-roundel span {
	display: grid;
	place-items: center;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #20252f, #12151c);
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--gold-hi);
}

.cc-roundel.lg { width: 92px; height: 92px; }
.cc-roundel.lg span { width: calc(100% - 10px); height: calc(100% - 10px); font-size: 28px; }

.cc-country-card-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1;
}

.cc-country-card-body b {
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.15;
}

.cc-country-card-body small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.cc-split {
	display: flex;
	gap: 3px;
	margin-top: 6px;
}

.cc-split i {
	position: relative;
	display: block;
	height: 4px;
	flex-basis: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.07);
	overflow: hidden;
}

.cc-split em {
	position: absolute;
	inset: 0 auto 0 0;
	background: linear-gradient(90deg, var(--m-lo), var(--m-hi));
}

.cc-roundel.sm { width: 36px; height: 36px; }
.cc-roundel.sm span { width: calc(100% - 6px); height: calc(100% - 6px); font-size: 12.5px; }

/* Country picker under the home title */

.cc-find {
	position: relative;
	max-width: 460px;
	margin-top: 24px;
}

.cc-find-field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(212, 175, 106, 0.35);
	background: rgba(255, 255, 255, 0.045);
	color: var(--gold);
	cursor: text;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cc-find-field:hover { border-color: rgba(212, 175, 106, 0.55); }
.cc-find-field:focus-within { border-color: rgba(212, 175, 106, 0.75); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(212, 175, 106, 0.12); }
.cc-find-field .cc-icon { width: 19px; height: 19px; }

.cc-find-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 17px;
}

.cc-find-field input::placeholder { color: var(--muted); }

.cc-find-list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 5;
	max-height: min(380px, 52vh);
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: #141820;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
	animation: cc-fade 0.15s ease both;
}

.cc-find-item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 7px 12px 7px 8px;
	border-radius: 12px;
	color: var(--text);
}

.cc-find-item.on { background: rgba(212, 175, 106, 0.11); }

.cc-find-item b {
	overflow: hidden;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cc-find-item small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-find-none { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 14px; }

.cc-recent {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 6px 2px 18px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(212, 175, 106, 0.3) transparent;
}

.cc-recent-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 170px;
	flex: none;
	padding: 18px 12px 16px;
	border-radius: 18px;
	border: 1px solid var(--line-2);
	background: var(--panel);
	text-align: center;
	scroll-snap-align: start;
	transition: border-color 0.3s, transform 0.3s var(--ease);
	animation: cc-rise 0.6s var(--ease) both;
	animation-delay: calc(var(--i) * 50ms);
}

.cc-recent-item:hover { border-color: rgba(var(--m-rgb), 0.5); transform: translateY(-3px); }
.cc-recent-item .cc-flip { width: 110px; height: 110px; margin-bottom: 10px; }
.cc-recent-item b { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.2; }
.cc-recent-item small { color: var(--muted); font-size: 12px; }

.cc-grade {
	margin-top: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(212, 175, 106, 0.12);
	color: var(--gold-hi) !important;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Coin images and flip                                                 */
/* ------------------------------------------------------------------ */

.cc-img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: radial-gradient(circle at 35% 30%, rgba(var(--m-rgb), 0.35), rgba(var(--m-rgb), 0.08) 60%, rgba(0, 0, 0, 0.2));
	box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cc-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	opacity: 0;
	transition: opacity 0.5s;
	-webkit-user-drag: none;
}

.cc-img.loaded img { opacity: 1; }

.cc-img-blank {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), transparent 36%),
		radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.22) 62%, transparent 64%),
		linear-gradient(135deg, var(--m-hi), var(--m) 48%, var(--m-lo));
}

.cc-img-blank span {
	max-width: 70%;
	color: rgba(20, 15, 8, 0.72);
	font-family: var(--serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cc-flip {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	perspective: 900px;
}

.cc-flip-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.9s var(--ease);
}

.cc-flip-face {
	position: absolute;
	inset: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.cc-flip-face.back { transform: rotateY(180deg); }

.cc-card:hover .cc-flip-inner,
.cc-recent-item:hover .cc-flip-inner,
.cc-flip:focus-visible .cc-flip-inner { transform: rotateY(180deg); }

/* ------------------------------------------------------------------ */
/* Page heads, ribbons, filters                                         */
/* ------------------------------------------------------------------ */

.cc-page-head { margin-bottom: 30px; animation: cc-rise 0.6s var(--ease) both; }

.cc-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 13.5px;
	transition: color 0.2s;
}

.cc-back:hover { color: var(--gold-hi); }

.cc-page-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 22px 30px;
}

.cc-page-title-text { flex: 1 1 320px; min-width: 0; }
.cc-page-title .cc-display { font-size: clamp(36px, 5vw, 64px); }
.cc-page-title .cc-metals { flex: 0 1 340px; }

.cc-page-sub {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.cc-decade-nav { display: flex; gap: 10px; }

.cc-block { margin-bottom: 22px; }

.cc-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.cc-block-head h3 {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cc-ribbon { position: relative; }

.cc-ribbon-track {
	display: flex;
	align-items: stretch;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 2px 10px;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.cc-ribbon-track::-webkit-scrollbar { display: none; }

.cc-ribbon::before,
.cc-ribbon::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 6px;
	z-index: 1;
	width: 60px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
}

.cc-ribbon::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.cc-ribbon::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.cc-ribbon.fade-l::before,
.cc-ribbon.fade-r::after { opacity: 1; }

.cc-ribbon-btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-top: -20px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(212, 175, 106, 0.35);
	background: rgba(16, 19, 26, 0.95);
	color: var(--gold-hi);
	box-shadow: 0 10px 24px -10px #000;
}

.cc-ribbon-btn.l { left: -6px; }
.cc-ribbon-btn.r { right: -6px; }

.cc-pill {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	flex: none;
	min-width: 130px;
	max-width: 240px;
	padding: 10px 16px 12px;
	border-radius: 14px;
	border: 1px solid var(--line-2);
	background: var(--panel);
	text-align: left;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.cc-pill:hover { border-color: rgba(212, 175, 106, 0.35); }

/* Names wrap; the counts below keep the bars level along the ribbon. */
.cc-pill b {
	max-width: 100%;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.cc-pill small { margin-top: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.cc-pill.on {
	border-color: rgba(212, 175, 106, 0.7);
	background: linear-gradient(180deg, rgba(212, 175, 106, 0.16), rgba(212, 175, 106, 0.05));
	box-shadow: 0 12px 30px -18px rgba(212, 175, 106, 0.8);
}

.cc-pill.on b { color: var(--gold-hi); }

.cc-pill-ruler b { font-family: var(--serif); font-size: 17px; font-weight: 600; }

.cc-pill-bar {
	position: relative;
	display: block;
	align-self: stretch;
	height: 3px;
	margin-top: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.07);
	overflow: hidden;
}

.cc-pill-bar em {
	position: absolute;
	inset: 0 auto 0 0;
	background: linear-gradient(90deg, #8c6a2c, #f6dfa0);
}

.cc-pill-group {
	display: flex;
	align-items: center;
	flex: none;
	width: max-content;
	max-width: 112px;
	padding: 0 2px 0 12px;
	border-left: 1px solid var(--line-2);
	color: var(--gold);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.cc-album-head {
	position: sticky;
	top: calc(var(--top) + var(--lot));
	z-index: 10;
	margin: 0 -28px 22px;
	padding: 12px 28px;
	background: linear-gradient(180deg, rgba(11, 13, 18, 0.94) 70%, rgba(11, 13, 18, 0));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.cc-seg {
	display: inline-flex;
	flex-wrap: wrap;
	padding: 3px;
	border-radius: 999px;
	background: var(--panel-2);
	border: 1px solid var(--line-2);
}

.cc-seg button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cc-seg button:hover { color: var(--text); }

.cc-seg button.on {
	background: rgba(255, 255, 255, 0.09);
	color: var(--text);
	box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.4);
}

.cc-seg button.m-gold.on { color: #f8e4a8; }
.cc-seg button.m-silver.on { color: #f6f8fb; }
.cc-seg button.m-copper.on { color: #f0b088; }
.cc-seg button.st-mine.on { color: var(--mine); box-shadow: inset 0 0 0 1px rgba(111, 195, 178, 0.5); }
.cc-seg button.k-commem { display: inline-flex; align-items: center; gap: 6px; }
.cc-seg button.k-commem .cc-icon { width: 15px; height: 15px; }
.cc-seg button.k-commem.on { color: #f1d595; }
.cc-seg.sm button { padding: 6px 12px; font-size: 12.5px; }

.cc-select,
.cc-field {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 40px;
	border-radius: 999px;
	background: var(--panel-2);
	border: 1px solid var(--line-2);
	color: var(--muted);
	transition: border-color 0.2s;
}

.cc-select:focus-within,
.cc-field:focus-within { border-color: rgba(212, 175, 106, 0.45); }

.cc-select select {
	height: 100%;
	padding: 0 36px 0 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font-size: 13.5px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.cc-select select option { background: #151922; color: var(--text); }
.cc-select .cc-icon { position: absolute; right: 12px; pointer-events: none; }

.cc-field { flex: 1 1 220px; max-width: 340px; padding-left: 14px; }

.cc-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 14px 0 8px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font-size: 13.5px;
}

.cc-field input::placeholder { color: var(--faint); }
.cc-field.sm { height: 34px; flex: 0 1 220px; }

.cc-chip-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--text);
	font-size: 13px;
	transition: border-color 0.2s;
}

.cc-chip-filter.on { border-color: rgba(212, 175, 106, 0.6); color: var(--gold-hi); }
.cc-chip-filter:hover { border-color: rgba(212, 175, 106, 0.6); }
.cc-chip-filter em { color: var(--muted); font-style: normal; font-size: 12px; }

/* ------------------------------------------------------------------ */
/* Album filters: a panel above the coins, a sheet on phones            */
/* ------------------------------------------------------------------ */

.cc-fpanel {
	margin-bottom: 14px;
	padding: 16px 22px 18px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
	border: 1px solid var(--line-2);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cc-fpanel-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.cc-fpanel-head h3 {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.1;
}

.cc-fpanel-head h3 .cc-icon { width: 20px; height: 20px; color: var(--gold); }
.cc-fpanel-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.cc-fgroups {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
}

.cc-fgroup-years + .cc-fgroups { padding-top: 16px; border-top: 1px solid var(--line-2); }

.cc-flabel {
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cc-fopts { display: flex; flex-wrap: wrap; gap: 8px; }

.cc-fopt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cc-fopt:hover { color: var(--text); border-color: rgba(212, 175, 106, 0.35); }
.cc-fopt .cc-icon { width: 15px; height: 15px; }

.cc-fopt.on {
	border-color: rgba(212, 175, 106, 0.7);
	background: rgba(212, 175, 106, 0.13);
	color: var(--gold-hi);
}

.cc-fopt.m-silver.on { border-color: rgba(195, 201, 210, 0.7); background: rgba(195, 201, 210, 0.1); color: #f6f8fb; }
.cc-fopt.m-copper.on { border-color: rgba(196, 123, 79, 0.75); background: rgba(196, 123, 79, 0.13); color: #f0b088; }
.cc-fopt.st-mine.on { border-color: rgba(111, 195, 178, 0.65); background: rgba(111, 195, 178, 0.1); color: var(--mine); }
.cc-fopt.k-exo.on { border-color: rgba(165, 180, 250, 0.6); background: rgba(165, 180, 250, 0.1); color: #c4cffb; }

.cc-fgroup-country .cc-select { min-width: 240px; height: 38px; }
.cc-fgroup-country .cc-select select { width: 100%; }

/* Years: the bars and the track keep half a handle off each side to line up with the handles. */

.cc-years { --thumb: 26px; }

.cc-years-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-bottom: 12px;
}

.cc-years-inputs { display: inline-flex; align-items: center; gap: 8px; }

.cc-years-input {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px 0 14px;
	border-radius: 12px;
	border: 1px solid var(--line-2);
	background: var(--panel-2);
	color: var(--muted);
	font-size: 13px;
	cursor: text;
	transition: border-color 0.2s;
}

.cc-years.active .cc-years-input { border-color: rgba(212, 175, 106, 0.45); }
.cc-years-input:focus-within { border-color: rgba(212, 175, 106, 0.75); }

.cc-years-input input {
	width: 4.4ch;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: 600 16px/1 var(--sans);
	font-variant-numeric: tabular-nums;
}

.cc-years-dash { color: var(--faint); }
.cc-years-presets { display: flex; flex-wrap: wrap; gap: 6px; }

.cc-years-preset {
	height: 32px;
	padding: 0 13px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: transparent;
	color: var(--muted);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cc-years-preset:hover { color: var(--text); border-color: rgba(212, 175, 106, 0.35); }
.cc-years-preset.on { border-color: rgba(212, 175, 106, 0.7); background: rgba(212, 175, 106, 0.13); color: var(--gold-hi); }

.cc-years-chart {
	position: relative;
	height: 56px;
	margin: 0 calc(var(--thumb) / 2);
}

.cc-years-bar {
	position: absolute;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	height: 100%;
	padding: 0 1px;
	border: 0;
	background: none;
	cursor: pointer;
}

.cc-years-bar:disabled { cursor: default; }

.cc-years-bar i {
	position: relative;
	display: block;
	width: 100%;
	min-height: 2px;
	overflow: hidden;
	border-radius: 3px 3px 1px 1px;
	background: rgba(255, 255, 255, 0.07);
	transition: background 0.2s;
}

.cc-years-bar em {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(212, 175, 106, 0.28);
	transition: background 0.2s;
}

.cc-years-bar.on i { background: rgba(255, 255, 255, 0.2); }
.cc-years-bar.on em { background: linear-gradient(180deg, #f8e4a8, #c79c4e); }
.cc-years-bar:not(:disabled):hover i { background: rgba(255, 255, 255, 0.32); }

.cc-years-rail { position: relative; height: calc(var(--thumb) + 4px); cursor: pointer; }

.cc-years-track {
	position: absolute;
	top: calc(var(--thumb) / 2);
	left: calc(var(--thumb) / 2);
	right: calc(var(--thumb) / 2);
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
}

.cc-years-track i {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 2px;
	background: linear-gradient(90deg, #c79c4e, #f6dfa0);
}

/* Two sliders on one track: only their handles take the pointer. */
.cc-years-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.cc-years-range.top { z-index: 1; }
.cc-years-range:focus { outline: 0; }
.cc-years-range::-webkit-slider-runnable-track { height: calc(var(--thumb) + 4px); border: 0; background: none; }
.cc-years-range::-moz-range-track { height: calc(var(--thumb) + 4px); border: 0; background: none; }

.cc-years-range::-webkit-slider-thumb {
	box-sizing: border-box;
	width: var(--thumb);
	height: var(--thumb);
	margin-top: 2px;
	border-radius: 50%;
	border: 2px solid #0e1117;
	background: radial-gradient(circle at 35% 30%, #fff3cf, #d4af6a 55%, #8c6a2c);
	box-shadow: 0 0 0 1px rgba(246, 223, 160, 0.6), 0 6px 14px -4px rgba(0, 0, 0, 0.8);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.cc-years-range::-moz-range-thumb {
	box-sizing: border-box;
	width: var(--thumb);
	height: var(--thumb);
	border-radius: 50%;
	border: 2px solid #0e1117;
	background: radial-gradient(circle at 35% 30%, #fff3cf, #d4af6a 55%, #8c6a2c);
	box-shadow: 0 0 0 1px rgba(246, 223, 160, 0.6), 0 6px 14px -4px rgba(0, 0, 0, 0.8);
	cursor: grab;
	pointer-events: auto;
}

.cc-years-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(246, 223, 160, 0.35), 0 6px 14px -4px rgba(0, 0, 0, 0.8); }
.cc-years-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(246, 223, 160, 0.35), 0 6px 14px -4px rgba(0, 0, 0, 0.8); }
.cc-years-range:active::-webkit-slider-thumb { cursor: grabbing; }

.cc-years-scale {
	position: relative;
	height: 16px;
	margin: 2px calc(var(--thumb) / 2) 0;
	color: var(--faint);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.cc-years-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cc-years-scale span:first-child { transform: none; }
.cc-years-scale span:last-child { transform: translateX(-100%); }

/* The bar above the coins: search, the chosen filters, the button of the panel. */

.cc-fbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.cc-field.cc-fsearch { flex: 0 1 380px; max-width: none; height: 42px; }

.cc-fbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgba(212, 175, 106, 0.32);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.2s, color 0.2s;
}

.cc-fbtn:hover { border-color: rgba(212, 175, 106, 0.7); color: var(--gold-hi); }
.cc-fbtn.on { border-color: rgba(212, 175, 106, 0.65); }
.cc-fbtn .cc-icon { width: 18px; height: 18px; color: var(--gold); }

.cc-fbtn em {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: linear-gradient(135deg, #f8e2a2, #d4af6a 50%, #a77d34);
	color: #1c1407;
	font-size: 11.5px;
	font-style: normal;
	font-weight: 700;
}

.cc-fchips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cc-fchips .cc-chip-filter { gap: 7px; padding: 6px 10px 6px 13px; }
.cc-fchips .cc-chip-filter .cc-icon { width: 14px; height: 14px; color: var(--muted); transition: color 0.2s; }
.cc-fchips .cc-chip-filter:hover .cc-icon { color: var(--gold-hi); }
.cc-chip-filter.m-silver.on { border-color: rgba(195, 201, 210, 0.6); color: #f6f8fb; }
.cc-chip-filter.m-copper.on { border-color: rgba(196, 123, 79, 0.7); color: #f0b088; }

/* Phones: the panel is a sheet over the page. */

.cc-fpanel-wrap.sheet {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: flex-end;
	background: rgba(5, 6, 9, 0.72);
	animation: cc-fade 0.2s ease-out;
}

.cc-fpanel-wrap.sheet .cc-fpanel {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: 92vh;
	max-height: 92dvh;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 22px 22px 0 0;
	background: linear-gradient(180deg, #161a23, #0e1117);
	box-shadow: 0 -30px 80px -30px #000;
	animation: cc-sheet 0.32s var(--ease);
}

.sheet .cc-fpanel-head { margin: 0; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-2); }

.sheet .cc-fpanel-body {
	flex: 1;
	min-height: 0;
	gap: 22px;
	padding: 18px 20px 22px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sheet .cc-fgroups { flex-direction: column; gap: 22px; }
.sheet .cc-fopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet .cc-fopt { height: 44px; padding: 0 12px; font-size: 14.5px; }
.sheet .cc-fgroup-country .cc-select { width: 100%; height: 46px; }
.sheet .cc-fgroup-country .cc-select select { font-size: 16px; }
.sheet .cc-years { --thumb: 32px; }
.sheet .cc-years-head { gap: 12px; }
.sheet .cc-years-inputs { width: 100%; }
.sheet .cc-years-input { flex: 1 1 0; min-width: 0; height: 46px; }
.sheet .cc-years-input input { flex: 1 1 0; width: 0; min-width: 0; font-size: 17px; }
.sheet .cc-years-preset { height: 36px; padding: 0 14px; font-size: 13.5px; }

.cc-fpanel-foot {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line-2);
	background: rgba(11, 13, 18, 0.6);
}

.cc-fpanel-found { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cc-fpanel-foot .cc-btn { flex: none; min-width: 132px; }

@keyframes cc-sheet {
	from { transform: translateY(48px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Album                                                                */
/* ------------------------------------------------------------------ */

.cc-album-meta {
	margin: -6px 0 16px;
	color: var(--muted);
	font-size: 13px;
}

.cc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 20px;
}

.cc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px 20px 18px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
	border: 1px solid var(--line-2);
	transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
	animation: cc-rise 0.6s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 40ms);
}

.cc-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 180px;
	border-radius: 22px 22px 0 0;
	background: radial-gradient(160px 120px at 50% 40%, rgba(var(--m-rgb, 212, 175, 106), 0.12), transparent 70%);
	pointer-events: none;
	transition: opacity 0.4s;
	opacity: 0.7;
}

.cc-card:hover {
	transform: translateY(-5px);
	border-color: rgba(var(--m-rgb, 212, 175, 106), 0.42);
	box-shadow: 0 36px 70px -36px rgba(var(--m-rgb, 212, 175, 106), 0.45);
}

.cc-card:hover::before { opacity: 1; }

.cc-card-coin {
	position: relative;
	width: 156px;
	height: 156px;
	margin: 0 auto 20px;
}

.cc-card-body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.cc-card-kicker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cc-card-title {
	margin: 8px 0 0;
	font-family: var(--serif);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.12;
}

.cc-card-title a { transition: color 0.2s; }
.cc-card-title a:hover { color: var(--gold-hi); }

.cc-card-sub {
	margin: 4px 0 0;
	color: var(--text);
	opacity: 0.86;
	font-size: 13.5px;
}

.cc-card-meta {
	margin: 2px 0 0;
	color: var(--faint);
	font-size: 12.5px;
}

.cc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 16px 0 14px;
}

.cc-chip {
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	max-width: 15em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s;
}

.cc-chip:hover { transform: translateY(-1px); border-color: rgba(var(--m-rgb, 212, 175, 106), 0.7); color: var(--text); }

.cc-chip.st-owned {
	border-color: transparent;
	background: linear-gradient(135deg, var(--m-hi, #f6dfa0), var(--m, #d4af6a) 60%, var(--m-lo, #8c6a2c));
	color: #17120a;
	font-weight: 600;
	box-shadow: 0 4px 12px -6px rgba(var(--m-rgb, 212, 175, 106), 0.8);
}

.cc-chip.st-reserved { border-style: dashed; border-color: rgba(165, 151, 240, 0.65); color: #c7bdf8; }
.cc-chip.st-mine { border-color: rgba(111, 195, 178, 0.8); background: rgba(111, 195, 178, 0.16); color: #a6eadb; font-weight: 600; }
.cc-chip.up-mine { box-shadow: 0 0 0 2px var(--mine), 0 4px 12px -6px rgba(var(--m-rgb, 212, 175, 106), 0.8); }
.cc-chip-more { border-style: dotted; }

.cc-card-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}

.cc-card-foot .cc-bar { flex: 1; }
.cc-card-foot small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.cc-skeleton { min-height: 380px; animation: none; }
.cc-skeleton::before { display: none; }

.cc-sk-coin,
.cc-sk-line {
	display: block;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
	background-size: 200% 100%;
	animation: cc-shimmer 1.4s linear infinite;
}

.cc-sk-coin { width: 156px; height: 156px; margin: 0 auto 22px; border-radius: 50%; }
.cc-sk-line { height: 14px; margin-top: 12px; border-radius: 7px; }
.cc-sk-line.short { width: 60%; }
.cc-sk-line.chips { height: 40px; margin-top: 18px; }

.cc-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}

.cc-pager-num {
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--panel);
	color: var(--muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	transition: border-color 0.2s, color 0.2s;
}

.cc-pager-num:hover { color: var(--text); border-color: rgba(212, 175, 106, 0.4); }
.cc-pager-num.on { border-color: rgba(212, 175, 106, 0.7); color: var(--gold-hi); background: rgba(212, 175, 106, 0.1); }
.cc-pager-gap { color: var(--faint); padding: 0 4px; }

/* ------------------------------------------------------------------ */
/* Reservations                                                         */
/* ------------------------------------------------------------------ */

.cc-res-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 26px;
	border-radius: 18px;
	border: 1px solid rgba(111, 195, 178, 0.3);
	background: rgba(111, 195, 178, 0.06);
}

.cc-res-counter b {
	font-family: var(--serif);
	font-size: 46px;
	font-weight: 600;
	line-height: 1;
	color: #a6eadb;
}

.cc-res-counter b em { color: var(--faint); font-size: 26px; font-style: normal; }
.cc-res-counter span { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.cc-res-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cc-res {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 240px;
	align-items: center;
	gap: 22px;
	padding: 18px 22px;
	border-radius: 20px;
	border: 1px solid var(--line-2);
	background: var(--panel);
	transition: border-color 0.3s;
	animation: cc-rise 0.5s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 40ms);
}

.cc-res:hover { border-color: rgba(var(--m-rgb), 0.35); }

.cc-res-coin {
	width: 96px;
	height: 96px;
	padding: 0;
	border: 0;
	background: none;
	transition: transform 0.3s var(--ease);
}

.cc-res-coin:hover { transform: scale(1.05) rotate(-4deg); }

.cc-res-body h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.15;
}

.cc-res-body h3 a:hover { color: var(--gold-hi); }
.cc-res-body .cc-kicker { margin-bottom: 4px; font-size: 11px; }

.cc-res-year {
	margin-left: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(var(--m-rgb), 0.14);
	color: var(--m-hi);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	vertical-align: 4px;
}

.cc-res-side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

.cc-res-side .cc-bar { align-self: stretch; }
.cc-res-side .cc-bar i { background: linear-gradient(90deg, #3d8b7c, #a6eadb); }
.cc-res-side small { color: var(--faint); font-size: 12px; }
.cc-res-side .cc-btn { margin-top: 4px; }

.cc-res-left { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 13.5px; }

.cc-status {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cc-status.st-active { background: rgba(111, 195, 178, 0.14); color: #a6eadb; }
.cc-status.st-expired { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.cc-status.st-released { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.cc-status.st-fulfilled { background: rgba(212, 175, 106, 0.16); color: var(--gold-hi); }
.cc-status.st-lot { background: rgba(212, 175, 106, 0.16); color: var(--gold-hi); }

.cc-res.in-lot { border-color: rgba(212, 175, 106, 0.22); }
.cc-res-lot-note { margin: -6px 0 16px; color: var(--muted); font-size: 13.5px; }

/* Messages with us: the chat button in the corner and its panel */
.cc-dock-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 45;
}

.cc-dock-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 52px;
	padding: 0 22px 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
	box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(246, 223, 160, 0.35);
	color: #1b1407;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s var(--ease), box-shadow 0.2s;
	animation: cc-dock-in 0.35s var(--ease) both;
}

.cc-dock-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(246, 223, 160, 0.6); }
.cc-dock-btn:active { transform: scale(0.96); }
.cc-dock-btn .cc-icon { width: 22px; height: 22px; }
.cc-dock-btn .cc-count { position: absolute; top: -5px; right: -3px; min-width: 22px; height: 22px; background: #e3503e; color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.cc-dock.unread .cc-dock-btn { animation: cc-dock-in 0.35s var(--ease) both, cc-dock-ping 2.6s 0.4s ease-out infinite; }

.cc-dock-tuck {
	position: absolute;
	top: -9px;
	left: -9px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: #1d2029;
	color: var(--muted);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

/* A larger target than it looks, for fingers. */
.cc-dock-tuck::before { content: ''; position: absolute; inset: -8px; }
.cc-dock-tuck:hover { color: var(--text); border-color: rgba(212, 175, 106, 0.5); }
.cc-dock-tuck .cc-icon { width: 12px; height: 12px; }

.cc-dock-tab {
	position: fixed;
	right: 0;
	bottom: 30px;
	z-index: 45;
	display: grid;
	place-items: center;
	width: 30px;
	height: 52px;
	padding: 0 0 0 2px;
	border: 1px solid rgba(212, 175, 106, 0.35);
	border-right: 0;
	border-radius: 12px 0 0 12px;
	background: rgba(18, 21, 29, 0.94);
	box-shadow: 0 10px 30px -12px #000;
	color: var(--gold);
	cursor: pointer;
	transition: width 0.2s var(--ease), color 0.2s;
	animation: cc-dock-in 0.35s var(--ease) both;
}

.cc-dock-tab:hover { width: 38px; color: var(--gold-hi); }
.cc-dock-tab .cc-icon { width: 18px; height: 18px; }
.cc-dock-dot { position: absolute; top: 7px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e3503e; box-shadow: 0 0 0 2px #12151d; }

.cc-dock-panel {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 45;
	display: flex;
	width: min(410px, calc(100vw - 48px));
	height: min(620px, calc(100vh - 110px));
	transform-origin: 100% 100%;
}

.cc-dock-enter-active,
.cc-dock-leave-active { transition: opacity 0.2s, transform 0.3s var(--ease); }
.cc-dock-enter-from,
.cc-dock-leave-to { opacity: 0; transform: translateY(14px) scale(0.97); }

@keyframes cc-dock-in {
	from { opacity: 0; transform: translateY(10px); }
}

@keyframes cc-dock-ping {
	0% { box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9), 0 0 0 0 rgba(246, 223, 160, 0.55); }
	70%, 100% { box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9), 0 0 0 14px rgba(246, 223, 160, 0); }
}

.cc-chat {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	border: 1px solid rgba(212, 175, 106, 0.3);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(212, 175, 106, 0.06), rgba(255, 255, 255, 0.015)), #10131a;
	box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.95);
	overflow: hidden;
}

.cc-chat-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line-2); }
.cc-chat-head-text { flex: 1 1 auto; min-width: 0; }
.cc-chat-head h3 { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--gold-hi); font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; }
.cc-chat-head h3 .cc-icon { width: 21px; height: 21px; color: var(--gold); }
.cc-chat-head p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.cc-chat-close { flex: none; width: 36px; height: 36px; }

.cc-chat-list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	padding: 16px 18px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cc-chat-empty { margin: auto; color: var(--faint); font-size: 13.5px; text-align: center; }
.cc-chat-day { display: flex; justify-content: center; margin: 2px 0; }
.cc-chat-day span { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--faint); font-size: 11.5px; }

.cc-msg { display: flex; flex: none; flex-direction: column; align-items: flex-start; max-width: 85%; }
.cc-msg.mine { align-self: flex-end; align-items: flex-end; }
.cc-msg-bubble { padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, 0.055); }
.cc-msg.mine .cc-msg-bubble { border-color: rgba(212, 175, 106, 0.28); border-radius: 14px 14px 4px 14px; background: rgba(212, 175, 106, 0.13); }
.cc-msg-text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-msg-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-msg-text + .cc-msg-photos { margin-top: 8px; }
.cc-msg-photos a { display: block; border-radius: 8px; overflow: hidden; }
/* Whole photos: a slab or a coin with its label must not lose the top and bottom. */
.cc-msg-photos img { display: block; width: auto; min-width: 52px; max-width: 190px; height: 104px; background: rgba(0, 0, 0, 0.25); object-fit: contain; transition: transform 0.3s var(--ease); }
.cc-msg-photos a:hover img { transform: scale(1.04); }
.cc-msg-meta { margin-top: 3px; padding: 0 4px; color: var(--faint); font-size: 11.5px; }

.cc-chat-form { flex: none; padding: 12px 14px 14px; border-top: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.18); }
.cc-chat-row { display: flex; align-items: flex-end; gap: 10px; }

.cc-chat-row textarea {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	max-height: 220px;
	padding: 9px 12px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
	font-size: 14px;
	line-height: 1.45;
	resize: none;
	outline: 0;
}

.cc-chat-row textarea:focus { border-color: rgba(212, 175, 106, 0.5); }
.cc-chat-row textarea::placeholder { color: var(--faint); }
.cc-chat-row .cc-btn { flex: none; height: 40px; }
.cc-chat-attach { position: relative; overflow: hidden; cursor: pointer; }
.cc-chat-attach:hover { color: var(--gold-hi); border-color: rgba(212, 175, 106, 0.45); }
.cc-chat-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cc-chat-attach.off { opacity: 0.35; pointer-events: none; }
.cc-chat-attach .cc-icon { width: 19px; height: 19px; }

.cc-chat-files { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.cc-chat-file { position: relative; }
.cc-chat-file img { display: block; width: auto; min-width: 40px; max-width: 104px; height: 58px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(0, 0, 0, 0.25); object-fit: contain; }

.cc-chat-file button {
	position: absolute;
	top: -7px;
	right: -7px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: #22252d;
	color: var(--text);
	cursor: pointer;
}

.cc-chat-file button:hover { color: var(--danger); }
.cc-chat-file button .cc-icon { width: 12px; height: 12px; }
.cc-chat-wait { color: var(--muted); font-size: 20px; }
.cc-chat-hint { margin: 6px 0 0; color: var(--faint); font-size: 11.5px; }

/* The dealer's comment on a reserved coin, changed in place */
.cc-memo-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 3px 0;
	border: 0;
	background: none;
	color: var(--gold);
	font-size: 12.5px;
	cursor: pointer;
	transition: color 0.2s;
}

.cc-memo-btn:hover { color: var(--gold-hi); }
.cc-memo-btn .cc-icon { width: 14px; height: 14px; }
.cc-memo.editing { margin-top: 10px; }

.cc-memo textarea {
	display: block;
	width: 100%;
	min-height: 74px;
	padding: 9px 12px;
	border: 1px solid rgba(212, 175, 106, 0.4);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
	font-size: 13.5px;
	line-height: 1.45;
	resize: vertical;
	outline: 0;
}

.cc-memo textarea:focus { border-color: rgba(212, 175, 106, 0.7); }
.cc-memo textarea::placeholder { color: var(--faint); }
.cc-memo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Photos of a reserved coin, added or replaced until the lot is sent */
.cc-res-photos { margin-top: 4px; }
.cc-res-photos.editing { margin-top: 12px; }
.cc-res-photos .cc-offer-photos { margin-top: 6px; }

.cc-photos-due,
.cc-photos-later {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 8px 0 0;
	color: #f0c48a;
	font-size: 12.5px;
	line-height: 1.4;
}

.cc-photos-due .cc-icon,
.cc-photos-later .cc-icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.cc-photos-later { margin: -2px 0 10px; color: var(--muted); }
.cc-photos-later .cc-icon { color: var(--gold); }

.cc-lot-bare { color: #f0c48a; font-weight: 600; text-decoration: none; }
.cc-lot-bare:hover { color: var(--gold-hi); text-decoration: underline; }

.cc-res-list.past .cc-res { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 12px 18px; opacity: 0.75; }
.cc-res-list.past .cc-res-coin { width: 64px; height: 64px; }
.cc-res-list.past h3 { font-size: 19px; }

.cc-res-tools { display: flex; justify-content: flex-end; margin: -12px 0 0; }
.cc-res-tools + .cc-sub-head { margin-top: 4px; }
.cc-res-views button { padding: 6px 10px; }
.cc-res-views .cc-icon { width: 17px; height: 17px; }

.cc-res-list.grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	align-items: stretch;
}

.cc-res-list.grid .cc-res {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 20px 18px 16px;
}

.cc-res-list.grid .cc-res-coin { align-self: center; width: 120px; height: 120px; }
.cc-res-list.grid .cc-res-body { flex: 1 1 auto; }
.cc-res-list.grid .cc-res-body .cc-kicker { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-res-list.grid .cc-res-body h3 { font-size: 21px; }
.cc-res-list.grid .cc-res-year { display: inline-block; margin-left: 4px; white-space: nowrap; }
.cc-res-list.grid .cc-note-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

.cc-res-list.grid .cc-res-side {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.cc-res-list.grid .cc-res-side .cc-bar { flex: 1 1 100%; align-self: center; }
.cc-res-list.grid .cc-res-side .cc-btn { margin: 0 0 0 auto; }

.cc-res-list.c4 .cc-res { padding: 18px 14px 14px; }
.cc-res-list.c4 .cc-res-coin { width: 96px; height: 96px; }
.cc-res-list.c4 .cc-res-body h3 { font-size: 19px; }

.cc-res-list.grid.past .cc-res { gap: 10px; padding: 14px; }
.cc-res-list.grid.past .cc-res-coin { width: 64px; height: 64px; }
.cc-res-list.grid.past h3 { font-size: 18px; }
.cc-res-list.grid.past .cc-res-side { padding-top: 10px; }

/* ------------------------------------------------------------------ */
/* Coin modal                                                           */
/* ------------------------------------------------------------------ */

.cc-modal-wrap {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(5, 6, 9, 0.74);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	animation: cc-fade 0.25s ease-out;
}

.cc-modal {
	position: relative;
	width: min(1200px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	overscroll-behavior: contain;
	border-radius: 26px;
	background: linear-gradient(180deg, #151922, #0e1117);
	border: 1px solid var(--line);
	box-shadow: 0 70px 140px -50px #000;
	animation: cc-pop 0.45s var(--ease);
	scrollbar-width: thin;
	scrollbar-color: rgba(212, 175, 106, 0.3) transparent;
}

.cc-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	background: rgba(16, 19, 26, 0.85);
	color: var(--muted);
	transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}

.cc-modal-close:hover { color: var(--gold-hi); border-color: rgba(212, 175, 106, 0.5); transform: rotate(90deg); }

.cc-modal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.cc-stage-col {
	position: sticky;
	top: 0;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 52px 40px 36px;
	background: radial-gradient(420px 380px at 50% 38%, rgba(var(--m-rgb), 0.16), transparent 70%);
}

.cc-stage {
	position: relative;
	width: min(430px, 100%);
	aspect-ratio: 1;
	perspective: 1400px;
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.cc-stage.dragging { cursor: grabbing; }

.cc-coin3d {
	position: absolute;
	inset: 7%;
	transform-style: preserve-3d;
	transition: transform 0.95s var(--ease);
	will-change: transform;
}

.cc-coin3d-edge {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--m-lo), var(--m) 50%, var(--m-lo));
}

.cc-coin3d-face {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.cc-coin3d-face.front { transform: translateZ(3.4px); }
.cc-coin3d-face.back { transform: rotateY(180deg) translateZ(3.4px); }

.cc-coin3d-face .cc-img {
	box-shadow: inset 0 0 0 2px rgba(var(--m-rgb), 0.35), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* A slab in the collection: the whole holder, label included, not cut to a circle. */
.cc-stage.slab .cc-coin3d-edge,
.cc-stage.slab .cc-coin3d-glare { display: none; }
.cc-coin3d-face.slab { border-radius: 0; }

.cc-coin3d-face.slab .cc-img {
	border-radius: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}

.cc-coin3d-face.slab .cc-img img {
	object-fit: contain;
	transform: none;
	filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.7));
}

.cc-coin3d-glare {
	position: absolute;
	inset: 7%;
	border-radius: 50%;
	mix-blend-mode: soft-light;
	pointer-events: none;
	transition: background 0.2s;
}

.cc-coin3d-shadow {
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: -3%;
	height: 7%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75), transparent 70%);
	filter: blur(8px);
	pointer-events: none;
}

.cc-stage-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
}

.cc-view-switch { margin-top: 14px; }
.cc-view-switch .cc-icon { margin-right: -2px; }

.cc-stage-hint {
	margin: 12px 0 0;
	color: var(--faint);
	font-size: 12px;
	text-align: center;
}

.cc-face-desc {
	max-width: 420px;
	margin: 18px 0 0;
	color: var(--muted);
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	line-height: 1.45;
	text-align: center;
	white-space: pre-line;
}

.cc-credit {
	max-width: 420px;
	margin: 14px 0 0;
	color: var(--faint);
	font-size: 11.5px;
	text-align: center;
}

.cc-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.cc-info-col {
	min-width: 0;
	padding: 52px 48px 40px 44px;
	border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.cc-modal-title {
	margin: 0;
	padding-right: 48px;
	font-family: var(--serif);
	font-size: clamp(32px, 3.4vw, 46px);
	font-weight: 600;
	line-height: 1.05;
}

.cc-modal-sub {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.cc-modal-topic {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 0;
	color: #f1d595;
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}

.cc-modal-topic .cc-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.cc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.cc-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--panel);
	color: var(--text);
	font-size: 12.5px;
}

.cc-badge.m-gold,
.cc-badge.m-silver,
.cc-badge.m-copper { border-color: rgba(var(--m-rgb), 0.45); color: var(--m-hi); }
.cc-badge-note { border-color: rgba(196, 123, 79, 0.45); color: #e8ae8a; cursor: help; }
.cc-badge-commem { border-color: rgba(212, 175, 106, 0.5); color: #f1d595; }

.cc-specs {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 9px 24px;
	margin: 26px 0 0;
	padding: 20px 0;
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
}

.cc-specs dt { color: var(--muted); font-size: 13px; }
.cc-specs dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; white-space: pre-line; overflow-wrap: anywhere; }

.cc-notes {
	margin-top: 14px;
	color: var(--muted);
	font-size: 13px;
}

.cc-notes summary {
	cursor: pointer;
	color: var(--text);
	font-weight: 500;
}

.cc-notes summary:hover { color: var(--gold); }

.cc-notes p {
	max-height: 260px;
	margin: 10px 0 0;
	padding: 12px 14px;
	overflow: auto;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	line-height: 1.55;
	white-space: pre-line;
}

.cc-years-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 26px 0 10px;
}

.cc-years-head h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: 25px;
	font-weight: 600;
}

.cc-years-head span { color: var(--muted); font-size: 13px; }

.cc-years {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-year {
	border-radius: 14px;
	transition: background 0.2s;
}

.cc-year + .cc-year { margin-top: 2px; }
.cc-year + .cc-year.cc-year-cont { margin-top: 0; }
.cc-year.open { background: rgba(255, 255, 255, 0.035); }

.cc-year-row {
	display: grid;
	grid-template-columns: 14px 124px minmax(0, 1fr) auto auto 18px;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 6px 12px;
	border-radius: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.cc-year-row:hover { background: rgba(255, 255, 255, 0.04); }

.cc-year-mark {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.cc-year.st-owned .cc-year-mark {
	border-color: transparent;
	background: radial-gradient(circle at 35% 30%, var(--m-hi), var(--m) 55%, var(--m-lo));
	box-shadow: 0 0 10px rgba(var(--m-rgb), 0.6);
}

.cc-year.st-reserved .cc-year-mark { border-style: dashed; border-color: var(--reserved); }
.cc-year.st-mine .cc-year-mark { border-color: var(--mine); background: rgba(111, 195, 178, 0.35); }

.cc-year-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	min-width: 0;
}

.cc-year-label b {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
}

.cc-year-cont .cc-year-label b { color: var(--faint); }

.cc-variety {
	padding: 2px 7px;
	border-radius: 6px;
	border: 1px solid rgba(var(--m-rgb, 212, 175, 106), 0.4);
	color: var(--m-hi, #f6dfa0);
	font-size: 12.5px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.cc-year-note {
	display: -webkit-box;
	flex-basis: 100%;
	overflow: hidden;
	color: var(--faint);
	font-size: 11.5px;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cc-year-mint {
	color: var(--faint);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cc-year-state {
	color: var(--muted);
	font-size: 12.5px;
	text-align: right;
	white-space: nowrap;
}

.cc-year.st-owned .cc-year-state { color: var(--m-hi); font-weight: 500; }
.cc-year.st-mine .cc-year-state { color: var(--mine); font-weight: 500; }
.cc-year.st-reserved .cc-year-state { color: #c7bdf8; }

/* A coin of the collection the dealer offers in a higher grade. */
.cc-year.up-mine .cc-year-mark { outline: 1.5px solid var(--mine); outline-offset: 2px; }

.cc-year-up {
	display: block;
	width: fit-content;
	margin: 3px 0 0 auto;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(111, 195, 178, 0.16);
	color: #a6eadb;
	font-size: 11.5px;
	font-style: normal;
	font-weight: 600;
}

.cc-year-caret {
	color: var(--faint);
	transition: transform 0.3s var(--ease);
}

.cc-year.open .cc-year-caret { transform: rotate(180deg); color: var(--gold); }
.cc-year-row .cc-btn { grid-column: 5; }
.cc-year-caret { grid-column: 6; }

.cc-year-body {
	padding: 4px 16px 16px 50px;
	animation: cc-fade 0.25s ease-out;
}

.cc-mini-specs {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 5px 18px;
	margin: 0;
	font-size: 13px;
}

.cc-mini-specs dt { color: var(--faint); }
.cc-mini-specs dd { margin: 0; color: var(--text); }

.cc-item {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid rgba(var(--m-rgb), 0.28);
	background: rgba(var(--m-rgb), 0.05);
}

.cc-item .cc-btn { margin-top: 12px; }
.cc-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cc-item-actions .cc-btn { margin-top: 0; }
.cc-item-by { margin: 10px 0 0; color: var(--faint); font-size: 12.5px; }

.cc-own-title { margin: 0 0 12px; color: #a6eadb; font-size: 14px; font-weight: 600; }
.cc-reserve .cc-upgrade-hint { margin: -6px 0 14px; }

/* A variety the dealer proposes for a year: the reserve form with its name, and the button that opens it. */
.cc-reserve .cc-variety-name { margin-bottom: 14px; }
.cc-variety-add { display: inline-block; margin-top: 10px; padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; opacity: 0.8; }
.cc-variety-add:hover, .cc-variety-add:focus-visible { color: var(--gold); opacity: 1; }
.cc-year-up.cc-year-proposed { background: rgba(224, 168, 0, 0.16); color: #f3cf6a; cursor: help; }
.cc-own-legacy { margin: -4px 0 14px; color: var(--muted); font-size: 13px; }
.cc-offer-control input[type="date"] { color-scheme: dark; }

.cc-offer-photo-drop {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: var(--muted);
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.cc-offer-photo-drop:hover,
.cc-offer-photo-drop:focus-visible { color: var(--danger); background: rgba(0, 0, 0, 0.55); outline: 0; }
.cc-offer-photo-drop .cc-icon { width: 14px; height: 14px; }

.cc-reserve,
.cc-mine {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid rgba(111, 195, 178, 0.3);
	background: rgba(111, 195, 178, 0.05);
}

.cc-reserve textarea {
	display: block;
	width: 100%;
	min-height: 80px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--line-2);
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
	font-size: 13.5px;
	resize: vertical;
	outline: 0;
}

.cc-reserve textarea:focus { border-color: rgba(111, 195, 178, 0.6); }
.cc-reserve-hint { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.cc-reserve-error { margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.cc-reserve-lot { margin: 10px 0 16px; color: #a6eadb; font-size: 12.5px; }
.cc-reserve-lot.over { color: var(--danger); }

.cc-offer-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 14px;
}

.cc-offer-slab { margin-bottom: 12px; }
.cc-offer-slab .cc-seg button { padding: 6px 14px; }

.cc-offer-field { display: block; min-width: 0; }

.cc-offer-field > span:first-child,
.cc-offer-label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cc-offer-field i,
.cc-offer-label i { color: var(--danger); font-style: normal; }

.cc-offer-control {
	position: relative;
	display: flex;
	align-items: center;
	height: 42px;
	border-radius: 10px;
	border: 1px solid var(--line-2);
	background: rgba(0, 0, 0, 0.25);
	transition: border-color 0.2s;
}

.cc-offer-control:focus-within { border-color: rgba(111, 195, 178, 0.6); }

.cc-offer-control select,
.cc-offer-control input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 12px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font-size: 14.5px;
}

.cc-offer-control select { padding-right: 34px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.cc-offer-control select option { background: #151922; color: var(--text); }
.cc-offer-control select:invalid { color: var(--faint); }
.cc-offer-control .cc-icon { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
.cc-offer-select.slabbed select { padding-right: 64px; }

.cc-offer-unslab {
	position: absolute;
	right: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.cc-offer-unslab:hover,
.cc-offer-unslab:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.08); outline: 0; }
.cc-offer-control .cc-offer-unslab .cc-icon { position: static; width: 15px; height: 15px; color: inherit; }
.cc-offer-control input::placeholder { color: var(--faint); }
.cc-offer-control em { padding-right: 12px; color: var(--muted); font-style: normal; }

/* The two sides stand side by side only where both fit, e.g. not in a card of a 4-column grid. */
.cc-offer-photos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.cc-offer-photo {
	position: relative;
	container-type: inline-size;
	padding: 10px;
	border-radius: 12px;
	border: 1px dashed rgba(111, 195, 178, 0.4);
	background: rgba(0, 0, 0, 0.2);
	transition: border-color 0.2s, background 0.2s;
}

.cc-offer-photo-pick {
	position: relative;
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 12px;
	cursor: pointer;
}

.cc-offer-photo:hover,
.cc-offer-photo:focus-within { border-color: rgba(111, 195, 178, 0.8); background: rgba(111, 195, 178, 0.06); }

.cc-offer-cam {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	margin: 10px 0 0;
	padding: 0 12px;
	border: 1px solid rgba(111, 195, 178, 0.45);
	border-radius: 999px;
	background: rgba(111, 195, 178, 0.1);
	color: #a6eadb;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.cc-offer-cam:hover,
.cc-offer-cam:focus-visible { border-color: rgba(111, 195, 178, 0.85); background: rgba(111, 195, 178, 0.2); outline: none; }
.cc-offer-photo.has { border-style: solid; }
.cc-offer-photo.busy { opacity: 0.6; pointer-events: none; }
.cc-offer-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.cc-offer-photo img,
.cc-offer-photo-empty {
	grid-row: 1 / 3;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
}

.cc-offer-photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-2);
	color: #a6eadb;
}

/* A slab is a portrait rectangle rather than a coin circle, and its photo is shown whole. */
.cc-offer-photo.slab img,
.cc-offer-photo.slab .cc-offer-photo-empty {
	justify-self: center;
	width: 42px;
	border-radius: 6px;
}

.cc-offer-photo.slab img {
	width: auto;
	min-width: 34px;
	max-width: 58px;
	background: rgba(0, 0, 0, 0.25);
	object-fit: contain;
}

.cc-offer-photo b { align-self: end; font-size: 14px; overflow-wrap: anywhere; }
.cc-offer-photo small { align-self: start; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.cc-offer-cam .cc-cam-short { display: none; }

@container (max-width: 210px) {
	.cc-offer-cam .cc-cam-long { display: none; }
	.cc-offer-cam .cc-cam-short { display: inline; }
}

/* A narrow tile puts the photo above its caption. */
@container (max-width: 170px) {
	.cc-offer-photo-pick { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 6px; text-align: center; }
	.cc-offer-photo img,
	.cc-offer-photo-empty { grid-row: auto; }
	.cc-offer-photo b,
	.cc-offer-photo small { align-self: auto; }
}

.cc-offer-field.invalid .cc-offer-control,
.cc-offer-photo.invalid { border-color: var(--danger); }
.cc-offer-photo.invalid .cc-offer-photo-empty { color: var(--danger); }

.cc-offer-thumbs { display: inline-flex; gap: 8px; vertical-align: middle; }

.cc-offer-thumbs img {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	object-fit: cover;
	transition: transform 0.2s var(--ease);
}

.cc-offer-thumbs.slab img,
.cc-res-offer .cc-offer-thumbs.slab img {
	width: auto;
	min-width: 30px;
	max-width: 84px;
	height: 60px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.25);
	object-fit: contain;
}
.cc-offer-thumbs a:hover img { transform: scale(1.08); }
.cc-mine .cc-mini-specs { margin: 10px 0 0; }
.cc-mine .cc-offer-thumbs { display: flex; margin-top: 10px; }

.cc-res-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.cc-res-grade {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(111, 195, 178, 0.14);
	color: #a6eadb;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.cc-res-price { color: var(--gold-hi); font-size: 15px; font-weight: 600; }

.cc-res-upgrade {
	display: inline-block;
	margin: 8px 0 0;
	padding: 3px 10px;
	border: 1px solid rgba(212, 175, 106, 0.45);
	border-radius: 10px;
	color: var(--gold-hi);
	font-size: 12px;
	font-weight: 600;
}
.cc-res-offer .cc-offer-thumbs img { width: 44px; height: 44px; }
.cc-reserve .cc-actions { margin-top: 12px; }
.cc-mine p { margin: 0; color: #a6eadb; font-size: 13.5px; }
.cc-mine .cc-note-text { color: var(--muted); }
.cc-mine .cc-btn { margin-top: 12px; }

.cc-numista {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	color: var(--muted);
	font-size: 13px;
	transition: color 0.2s;
}

.cc-numista:hover { color: var(--gold-hi); }

.cc-zoom {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: grid;
	place-items: center;
	background: rgba(4, 5, 7, 0.96);
	cursor: zoom-out;
	overflow: hidden;
	animation: cc-fade 0.2s ease-out;
}

.cc-zoom img {
	max-width: min(92vw, 1100px);
	max-height: 92vh;
	border-radius: 50%;
	transition: transform 0.25s ease-out;
	user-select: none;
}

.cc-zoom:hover img { transform: scale(2.2); }
.cc-zoom.slab img { border-radius: 10px; }

/* ------------------------------------------------------------------ */
/* Footer, toast, transitions                                           */
/* ------------------------------------------------------------------ */

.cc-footer {
	max-width: 1320px;
	margin: 0 auto;
	padding: 28px 28px 48px;
	border-top: 1px solid var(--line-2);
	color: var(--faint);
	font-size: 12.5px;
	text-align: center;
}

.cc-footer p { margin: 4px 0; }
.cc-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.cc-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 80;
	max-width: calc(100vw - 32px);
	padding: 14px 22px;
	border-radius: 999px;
	background: rgba(18, 21, 29, 0.97);
	border: 1px solid rgba(212, 175, 106, 0.45);
	box-shadow: 0 24px 60px -20px #000;
	color: var(--text);
	font-size: 14px;
	transform: translateX(-50%);
}

.cc-toast.is-ok { border-color: rgba(111, 195, 178, 0.6); }
.cc-toast.is-err { border-color: rgba(224, 130, 111, 0.7); color: #f6c4b8; }

.cc-toast-enter-active,
.cc-toast-leave-active { transition: opacity 0.3s, transform 0.4s var(--ease); }
.cc-toast-enter-from,
.cc-toast-leave-to { opacity: 0; transform: translate(-50%, 16px); }

/* Home screen banner (phones) */

.cc-install {
	display: flex;
	align-items: center;
	margin: -8px 0 26px;
	border-radius: var(--radius);
	border: 1px solid rgba(212, 175, 106, 0.32);
	background: linear-gradient(120deg, rgba(212, 175, 106, 0.14), rgba(212, 175, 106, 0.035) 70%);
	box-shadow: 0 22px 50px -30px #000;
	animation: cc-rise 0.6s var(--ease) both;
}

.cc-install-main {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 4px 12px 12px;
	border: 0;
	background: none;
	text-align: left;
}

.cc-install-icon { display: block; flex: none; width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 10px 22px -10px #000, 0 0 0 1px rgba(212, 175, 106, 0.25); }
.cc-install-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.cc-install-text b { color: var(--gold-hi); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.cc-install-text span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cc-install-main .cc-btn { flex: none; }

.cc-install-close {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-right: 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--faint);
	transition: color 0.2s;
}

.cc-install-close:hover { color: var(--gold-hi); }

@media (max-width: 560px) {
	.cc-install { position: relative; }
	.cc-install-main { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px 14px; padding: 14px; }
	.cc-install-main .cc-btn { grid-column: 2; justify-self: start; }
	.cc-install-text { padding-right: 28px; }
	.cc-install-close { position: absolute; top: 4px; right: 0; }
}

.cc-install-help { text-align: center; }
.cc-install-help .cc-install-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; }
.cc-install-help h2 { padding: 0 36px; }

.cc-install-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 18px 0 16px;
	padding: 0;
	list-style: none;
	counter-reset: cc-step;
	text-align: left;
}

.cc-install-steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14.5px;
	line-height: 1.45;
	counter-increment: cc-step;
}

.cc-install-step {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid rgba(212, 175, 106, 0.3);
	background: rgba(212, 175, 106, 0.08);
	color: var(--gold-hi);
	font-size: 18px;
}

.cc-install-step::after {
	content: counter(cc-step);
	position: absolute;
	top: -7px;
	left: -7px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--gold);
	color: #1c1407;
	font-size: 10.5px;
	font-weight: 700;
}

.cc-install-help .cc-pass-sub { margin: 0; text-align: left; }
.cc-install-help .cc-actions { margin-top: 22px; }
.cc-install-help .cc-actions .cc-btn { flex: 1 1 auto; }

.cc-view-enter-active,
.cc-view-leave-active { transition: opacity 0.22s ease, transform 0.3s var(--ease); }
.cc-view-enter-from { opacity: 0; transform: translateY(10px); }
.cc-view-leave-to { opacity: 0; }

/* ------------------------------------------------------------------ */
/* Denied page                                                          */
/* ------------------------------------------------------------------ */

.cc-denied-page {
	display: grid;
	place-items: center;
	min-height: 100vh;
	background:
		radial-gradient(900px 500px at 50% -10%, rgba(212, 175, 106, 0.12), transparent 65%),
		var(--bg);
}

.cc-denied {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 520px;
	padding: 48px 24px;
	text-align: center;
	animation: cc-rise 0.7s var(--ease) both;
}

.cc-denied h1 {
	margin: 28px 0 0;
	font-family: var(--serif);
	font-size: 44px;
	font-weight: 600;
	line-height: 1.1;
}

.cc-denied p {
	margin: 14px 0 30px;
	color: var(--muted);
	font-size: 16px;
}

/* Sign-in page and password form */

.cc-login { width: min(420px, 100%); }
.cc-login h1 { margin-top: 8px; }
.cc-login > p { margin-bottom: 0; }
.cc-login .cc-logo { margin-bottom: 22px; }

.cc-login .cc-login-kicker {
	margin: 0;
	color: var(--gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.cc-login-form,
.cc-pass-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	text-align: left;
}

.cc-login-form { margin-top: 26px; }
.cc-login-form .cc-btn { margin-top: 6px; width: 100%; }

.cc-login-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc-login-field input {
	height: 48px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(255, 255, 255, 0.035);
	color: var(--text);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	outline: 0;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cc-login-field input:focus { border-color: rgba(212, 175, 106, 0.6); box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.12); }

.cc-login .cc-login-error,
.cc-login .cc-login-notice,
.cc-pass-error {
	width: 100%;
	margin: 22px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.cc-login .cc-login-error,
.cc-pass-error { border: 1px solid rgba(224, 130, 111, 0.45); background: rgba(224, 130, 111, 0.1); color: #f4b2a3; }
.cc-login .cc-login-notice { border: 1px solid rgba(111, 195, 178, 0.3); background: rgba(111, 195, 178, 0.07); color: #bfe7de; }
.cc-login .cc-login-help { margin: 24px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); }

.cc-login-lang { display: flex; gap: 6px; margin-top: 22px; }

.cc-login-lang a {
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.cc-login-lang a.on,
.cc-login-lang a:hover { color: var(--gold-hi); border-color: rgba(212, 175, 106, 0.45); }

.cc-modal-wrap.cc-pass-wrap { padding: 16px; align-items: center; }

.cc-modal.cc-pass {
	width: min(440px, 100%);
	height: auto;
	max-height: calc(100dvh - 32px);
	padding: 34px 32px 30px;
	border-radius: 22px;
	border: 1px solid var(--line);
}

.cc-pass h2 {
	margin: 0 0 6px;
	padding-right: 44px;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
}

.cc-pass-sub { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }
.cc-pass-error { margin: 0; }
.cc-pass-form .cc-actions { margin-top: 8px; }
.cc-pass-form .cc-actions .cc-btn { flex: 1 1 auto; }

.cc-lot-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	margin: 18px 0;
}

.cc-lot-figures div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); }
.cc-lot-figures dt { color: var(--muted); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.cc-lot-figures dd { margin: 4px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cc-lot-figures dd small { display: block; margin-top: 2px; color: var(--faint); font-family: var(--sans); font-size: 12px; font-weight: 400; }

.cc-lot-warn {
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(212, 175, 106, 0.3);
	background: rgba(212, 175, 106, 0.07);
	color: var(--gold-hi);
	font-size: 14px;
	font-weight: 500;
}

.cc-lot-warn.strong { border-color: rgba(224, 130, 111, 0.55); background: rgba(224, 130, 111, 0.1); color: #f4b2a3; }
.cc-lot-ask .cc-actions { flex-wrap: wrap; }
.cc-lot-ask .cc-actions .cc-btn { flex: 1 1 auto; }

.cc-export-btn { margin-top: 16px; }
.cc-export-btn .cc-icon { width: 16px; height: 16px; }
.cc-modal.cc-export { width: min(500px, 100%); }
.cc-export-years { display: flex; align-items: flex-end; gap: 10px; }
.cc-export-years .cc-login-field { flex: 1 1 0; min-width: 0; }
.cc-export-years input { font-variant-numeric: tabular-nums; }
.cc-export-years input.bad { border-color: rgba(224, 130, 111, 0.6); }
.cc-export-dash { padding-bottom: 13px; color: var(--muted); }
.cc-export-all { align-self: flex-start; margin-top: -8px; }
.cc-export-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cc-export-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cc-export-count { min-height: 20px; margin: 2px 0 0; color: var(--text); font-size: 14px; }
.cc-export-count.bad { color: #f4b2a3; }
.cc-export .cc-actions .cc-btn .cc-icon { width: 17px; height: 17px; }

/* Tokens and medals added by dealers */
.m-other { --m: #9aa3ad; --m-hi: #d9dee4; --m-lo: #535b64; --m-rgb: 154, 163, 173; }
.cc-tag-exo { background: rgba(140, 160, 230, 0.15); color: #c4cffb; }
.cc-tag-pending { background: rgba(224, 168, 0, 0.16); color: #f3cf6a; cursor: help; }
.cc-card-sub .cc-tag:first-child { margin-left: 0; }
.cc-seg button.k-exo { display: inline-flex; align-items: center; gap: 6px; }
.cc-seg button.k-exo .cc-icon { width: 15px; height: 15px; }
.cc-seg button.k-exo.on { color: #c4cffb; }
.cc-badge-exo { display: inline-flex; align-items: center; gap: 5px; border-color: rgba(140, 160, 230, 0.45); color: #c4cffb; }
.cc-badge-exo .cc-icon { width: 13px; height: 13px; }
.cc-badge-pending { border-color: rgba(224, 168, 0, 0.5); color: #f3cf6a; }
.cc-exo-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid rgba(224, 168, 0, 0.35);
	background: rgba(224, 168, 0, 0.07);
	color: #f3dc9a;
	font-size: 13px;
	line-height: 1.45;
}

.cc-export-btn + .cc-exo-add { margin-left: 8px; }

.cc-exo-panel {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: 16px;
	border: 1px solid rgba(140, 160, 230, 0.3);
	background: rgba(140, 160, 230, 0.06);
}

.cc-exo-panel > .cc-icon { flex: none; width: 30px; height: 30px; color: #c4cffb; }
.cc-exo-panel-text { flex: 1 1 0; min-width: 0; }
.cc-exo-panel-text b { margin-right: 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.cc-exo-panel-text span { color: var(--muted); font-size: 13px; }
.cc-exo-panel-text p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cc-exo-panel .cc-btn { flex: none; }
.cc-exo-panel .cc-btn .cc-icon { width: 16px; height: 16px; }

.cc-modal.cc-exo { width: min(620px, 100%); }
.cc-exo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cc-exo-grid input { width: 100%; min-width: 0; }
.cc-exo .cc-login-field input.bad,
.cc-exo .cc-exo-select.bad { border-color: rgba(224, 130, 111, 0.6); }
.cc-exo .cc-login-field i,
.cc-exo .cc-export-label i { color: var(--danger); font-style: normal; }
.cc-exo .cc-exo-select { width: 100%; height: auto; min-height: 48px; padding: 12px 36px 12px 16px; border-radius: 12px; }

/* The select lies invisible over the picked name, which wraps where a select would cut it. */
.cc-exo-select-text {
	min-width: 0;
	color: var(--text);
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	overflow-wrap: break-word;
}

.cc-exo-select-text.ph { color: var(--muted); }
.cc-exo .cc-exo-select select { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; }
.cc-exo .cc-login-field textarea {
	min-height: 84px;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(255, 255, 255, 0.035);
	color: var(--text);
	font: inherit;
	font-size: 14.5px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	resize: vertical;
	outline: 0;
}

.cc-exo .cc-login-field textarea:focus { border-color: rgba(212, 175, 106, 0.6); }
.cc-exo .cc-seg.invalid { box-shadow: 0 0 0 1px rgba(224, 130, 111, 0.6); }
.cc-exo-head { margin: 8px 0 -4px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.cc-exo-offer { margin-top: 0; }
.cc-exo .cc-reserve-hint { margin: 0; }
.cc-exo-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-exo-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Fineness of a gold or silver coin, or a tick when the dealer does not know it */
.cc-exo-fine { display: grid; grid-template-columns: minmax(0, 220px) auto; justify-content: start; align-items: end; gap: 8px 18px; }
.cc-exo-fine .cc-exo-hint { grid-column: 1 / -1; }
.cc-exo .cc-login-field input:disabled { opacity: 0.4; cursor: not-allowed; }
.cc-exo-check { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); font-size: 14.5px; cursor: pointer; user-select: none; }
.cc-exo-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); cursor: pointer; }

/* Countries outside Europe: coins dealers added by hand, apart from the totals */
.cc-page-other { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 520px) {
	.cc-exo-grid,
	.cc-exo-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cc-exo-grid .cc-login-field:first-child { grid-column: 1 / -1; }
	.cc-exo-grid.four .cc-login-field:first-child { grid-column: auto; }
	.cc-exo-panel { flex-wrap: wrap; align-items: flex-start; padding: 14px; }
	.cc-exo-panel > .cc-icon { width: 24px; height: 24px; }
	.cc-exo-panel .cc-btn { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Keyframes                                                            */
/* ------------------------------------------------------------------ */

@keyframes cc-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

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

@keyframes cc-pop {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to { opacity: 1; transform: none; }
}

@keyframes cc-spin-y {
	from { transform: rotateY(0deg); }
	to { transform: rotateY(360deg); }
}

@keyframes cc-breathe {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

@keyframes cc-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@keyframes cc-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
	.cc-top { grid-template-columns: auto 1fr auto; }
	.cc-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
	.cc-top { height: auto; min-height: var(--top); padding-top: 12px; row-gap: 12px; }
	.cc-nav a span { display: none; }
	.cc-nav a { padding: 10px 12px; }
	.cc-album-head { top: calc(124px + var(--lot)); }
	html { scroll-padding-top: calc(140px + var(--lot)); }
	html.cc-has-lot .cc-top { grid-template-rows: none; }
	.cc-lot { margin-top: -12px; }
}

@media (max-width: 960px) {
	.cc-hero { grid-template-columns: 1fr; gap: 34px; }
	.cc-hero-visual { flex-direction: row; justify-content: center; flex-wrap: wrap; }
	.cc-modal-wrap { padding: 0; align-items: stretch; }
	.cc-modal { max-height: none; height: 100%; border-radius: 0; border: 0; }
	.cc-modal-grid { grid-template-columns: 1fr; }
	.cc-stage-col { position: relative; padding: 64px 22px 20px; }
	.cc-stage { width: min(360px, 82vw); }
	.cc-info-col { padding: 20px 22px 48px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
	.cc-res { grid-template-columns: 76px minmax(0, 1fr); }
	.cc-res-coin { width: 76px; height: 76px; }
	.cc-res-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
	.cc-res-side .cc-bar { flex: 1 1 120px; align-self: center; }
}

@media (max-width: 720px) {
	:root { --top: 64px; }
	body { font-size: 14.5px; padding-bottom: 72px; }
	/* backdrop-filter would make the header the containing block of the fixed tab bar */
	.cc-top {
		grid-template-columns: 1fr auto;
		height: auto;
		padding: 10px 16px 0;
		gap: 10px;
		background: rgba(11, 13, 18, 0.97);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
	.cc-brand { gap: 12px; }
	.cc-brand-logo { width: 74px; height: 32px; }
	.cc-brand-who { padding-left: 12px; font-size: 12px; }
	.cc-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		justify-content: space-around;
		gap: 0;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
		background: rgba(11, 13, 18, 0.96);
		border-top: 1px solid var(--line);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}
	.cc-nav a { flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 12px; font-size: 10.5px; }
	.cc-nav a span { display: block; max-width: 84px; overflow: hidden; text-overflow: ellipsis; }
	.cc-nav a.on { box-shadow: none; }
	.cc-nav .cc-count { position: absolute; top: 0; right: 10px; min-width: 17px; height: 17px; font-size: 10px; }
	.cc-search { grid-row: 2; margin-bottom: 10px; height: 38px; }
	.cc-search kbd { display: none; }
	.cc-lang button { padding: 4px 7px; }
	.cc-tools { gap: 6px; }
	.cc-top .cc-round-btn { width: 36px; height: 36px; }
	.cc-main { padding: 22px 16px 48px; }
	.cc-album-head { top: calc(112px + var(--lot)); margin: 0 -16px 18px; padding: 10px 16px; }
	html { scroll-padding-top: calc(126px + var(--lot)); }
	html.cc-has-lot { --lot: 44px; }
	.cc-lot { gap: 10px; margin: -10px -16px 0; padding: 0 16px; font-size: 13px; }
	.cc-lot-title,
	.cc-lot-detail,
	.cc-lot.limited .cc-lot-meta,
	.cc-lot-send .long { display: none; }
	.cc-lot-send .short { display: inline; }
	.cc-lot-send { height: 30px; padding: 0 12px; }
	.cc-lot-text b { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
	.cc-dock-fab { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); }
	.cc-dock-btn { width: 54px; height: 54px; padding: 0; justify-content: center; }
	.cc-dock-label { display: none; }
	.cc-dock-tab { bottom: calc(86px + env(safe-area-inset-bottom)); }
	/* Above the tab bar, over what is visible above the keyboard. */
	.cc-dock-panel { top: var(--vv-top, 0px); right: 0; bottom: auto; left: 0; z-index: 55; width: auto; height: var(--vv-h, 100%); }
	html.cc-chat-open { overflow: hidden; }
	.cc-chat { border: 0; border-radius: 0; box-shadow: none; }
	.cc-chat-head { padding: calc(12px + env(safe-area-inset-top)) 12px 10px 16px; }
	.cc-chat-head h3 { font-size: 20px; }
	.cc-chat-list { padding: 14px; }
	.cc-msg { max-width: 88%; }
	.cc-msg-photos img { min-width: 42px; max-width: 150px; height: 84px; }
	.cc-chat-form { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
	.cc-chat-row { gap: 8px; }
	.cc-chat-row textarea { font-size: 16px; }
	.cc-chat-row .cc-btn { padding: 0 14px; }
	.cc-seg { flex-wrap: nowrap; flex: none; }
	.cc-pass-form .cc-seg { flex-wrap: wrap; max-width: 100%; border-radius: 18px; }
	.cc-fbar { gap: 8px; }
	.cc-field.cc-fsearch { flex: 1 1 0; min-width: 0; }
	/* Smaller text makes iOS zoom into the field. */
	.cc-fsearch input { font-size: 16px; }
	.cc-fbtn { padding: 0 14px; }
	.cc-fchips { flex-basis: 100%; }
	.cc-section { margin-top: 46px; }
	.cc-section-head h2 { font-size: 28px; }
	.cc-panel { padding: 16px; }
	.cc-map-panel { padding: 8px; }
	.cc-map-legend { display: none; }
	.cc-tl-bars { height: 140px; gap: 2px; }
	.cc-tl-label { font-size: 9.5px; }
	.cc-figures b { font-size: 36px; }
	.cc-hero { gap: 26px; }
	.cc-hero-visual .cc-rings { display: none; }
	.cc-find { margin-top: 18px; }
	.cc-find-field { height: 50px; }
	.cc-country-grid { gap: 8px; }
	.cc-country-card { gap: 12px; padding: 10px 14px; border-radius: 14px; }
	.cc-country-card .cc-roundel { width: 42px; height: 42px; }
	.cc-country-card .cc-roundel span { font-size: 14px; }
	.cc-country-card-body b { font-size: 19px; }
	.cc-split { margin-top: 4px; }
	.cc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.cc-card { padding: 16px 14px 14px; border-radius: 18px; }
	.cc-card-coin { width: 112px; height: 112px; margin-bottom: 14px; }
	.cc-card-title { font-size: 20px; }
	.cc-card-meta { display: none; }
	.cc-chip { padding: 3px 6px; font-size: 11px; }
	.cc-res-list.grid { gap: 10px; }
	.cc-res-list.grid .cc-res { gap: 10px; padding: 14px 12px 12px; border-radius: 16px; }
	.cc-res-list.grid .cc-res-coin { width: 84px; height: 84px; }
	.cc-res-list.grid .cc-res-body h3 { font-size: 17px; }
	.cc-res-list.grid .cc-res-side .cc-btn { flex: 1 1 100%; margin: 0; }
	.cc-page-title .cc-metals { flex-basis: 100%; }
	.cc-roundel.lg { width: 72px; height: 72px; }
	.cc-year-row { grid-template-columns: 12px 108px minmax(0, 1fr) 16px; gap: 10px; padding: 6px 8px; }
	.cc-year-mint { display: none; }
	.cc-year-state { grid-column: 3; text-align: left; }
	.cc-year-up { margin: 3px 0 0; }
	.cc-year-row .cc-btn { grid-column: 2 / 4; grid-row: 2; justify-self: start; margin-bottom: 4px; }
	.cc-year-row .cc-btn-offer { display: none; }
	.cc-year-caret { grid-column: 4; grid-row: 1; }
	.cc-year-body { padding: 4px 10px 14px 32px; }
	.cc-toast { bottom: 86px; border-radius: 16px; }
	.cc-footer { padding-bottom: 96px; }
}

@media (max-width: 420px) {
	.cc-brand-who { display: none; }
	.cc-offer-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (hover: none) {
	.cc-card:hover { transform: none; }
	.cc-card:hover .cc-flip-inner,
	.cc-recent-item:hover .cc-flip-inner { transform: none; }
	.cc-zoom:hover img { transform: none; }
	.cc-dock-btn:hover { transform: none; }
	.cc-dock-tab:hover { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.cc-tl-bar { transform: none; }
}
