/* ============================================================
   Kinklist — "Candlelit" theme
   Deep aubergine ink, warm brass accents, editorial serif.
   All JS/test hooks (IDs, .choice, .kinkCategory, .big-choice,
   .kink-simple, .legend > div, etc.) are preserved.
   ============================================================ */

:root {
	--bg:            #17111d;
	--bg-deep:       #100b15;
	--surface:       #211826;
	--surface-2:     #2a2032;
	--surface-3:     #332639;
	--line:          rgba(216, 185, 129, 0.14);
	--line-strong:   rgba(216, 185, 129, 0.30);

	--ink:           #f4ead9;
	--ink-soft:      #cabbac;
	--ink-faint:     #93859a;

	--brass:         #d8b981;
	--brass-bright:  #f0d49a;
	--wine:          #8a2f45;
	--rose:          #e0a0b0;

	--radius:        14px;
	--radius-sm:     9px;
	--shadow:        0 22px 60px -28px rgba(0, 0, 0, 0.85);
	--shadow-soft:   0 10px 30px -18px rgba(0, 0, 0, 0.7);

	--font-display: 'Fraunces', 'Georgia', serif;
	--font-body:    'Hanken Grotesk', 'Helvetica Neue', sans-serif;
	--font-mono:    'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
	background-color: var(--bg-deep);
	margin: 0;
	padding: 0 20px 80px;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* ---- Ambient background ---------------------------------- */
.atmosphere {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(1100px 620px at 78% -8%,  rgba(216, 185, 129, 0.16), transparent 60%),
		radial-gradient(900px 700px at 8% 4%,     rgba(138, 47, 69, 0.24),   transparent 58%),
		radial-gradient(1200px 900px at 50% 118%, rgba(90, 40, 96, 0.30),    transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.atmosphere::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.widthWrapper {
	max-width: 1640px;
	margin: 0 auto;
	position: relative;
}

/* ============================================================
   Header / masthead
   ============================================================ */
.appBar {
	padding-top: 46px;
	margin-bottom: 34px;
}

.masthead {
	text-align: center;
	margin-bottom: 30px;
	animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.kicker {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 600;
	padding-left: 0.42em;
}

h1 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 500;
	font-size: clamp(46px, 8vw, 96px);
	line-height: 0.94;
	letter-spacing: -0.02em;
	margin: 10px 0 0;
	color: var(--ink);
	background: linear-gradient(180deg, #fbf3e6 12%, var(--brass) 128%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tagline {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(14px, 2vw, 18px);
	color: var(--ink-soft);
	margin: 14px auto 0;
	max-width: 44ch;
}

/* ---- Toolbar --------------------------------------------- */
.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 18px;
	padding: 16px 18px;
	background: linear-gradient(180deg, rgba(42, 32, 50, 0.72), rgba(33, 24, 38, 0.72));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(9px);
	position: sticky;
	top: 12px;
	z-index: 40;
	animation: rise 0.7s 0.06s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.control { display: flex; flex-direction: column; gap: 6px; }

.control-label {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-faint);
	font-weight: 600;
	padding-left: 2px;
}

.select-shell { position: relative; display: inline-block; }
.select-shell::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--brass);
	border-bottom: 2px solid var(--brass);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

select {
	appearance: none;
	-webkit-appearance: none;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	padding: 10px 40px 10px 14px;
	cursor: pointer;
	min-width: 190px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select:hover { border-color: var(--brass); }
select:focus {
	outline: none;
	border-color: var(--brass);
	box-shadow: 0 0 0 3px rgba(216, 185, 129, 0.18);
}
select option { background: #241b2c; color: var(--ink); }

.toolbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

/* ---- Buttons --------------------------------------------- */
#Export, #StartBtn, #CopyLink, #Reset {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#StartBtn {
	color: #221019;
	background: linear-gradient(135deg, var(--brass-bright), var(--brass));
	box-shadow: 0 10px 26px -12px rgba(216, 185, 129, 0.7);
}
#StartBtn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(216, 185, 129, 0.8); }
#StartBtn:active { transform: translateY(0); }

#Export, #CopyLink, #Reset {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--line-strong);
}
#Export:hover, #CopyLink:hover, #Reset:hover { border-color: var(--brass); color: var(--brass-bright); transform: translateY(-2px); }
#Reset:hover { border-color: var(--wine); color: var(--rose); }

/* ---- Progress bar ---------------------------------------- */
.progress {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	animation: rise 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.progress-bar {
	flex: 1;
	max-width: 360px;
	height: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--line);
	overflow: hidden;
}
.progress-bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brass), var(--brass-bright));
	box-shadow: 0 0 12px -2px var(--brass);
	transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.progress-text {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ink-soft);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---- Keyboard focus rings (accessibility) ---------------- */
.choice:focus-visible {
	outline: 2px solid var(--brass-bright) !important;
	outline-offset: 3px;
}
#InputValues .big-choice:focus-visible,
select:focus-visible,
#Export:focus-visible, #StartBtn:focus-visible, #CopyLink:focus-visible,
#Reset:focus-visible, #Edit:focus-visible, .KinkDesc:focus-visible,
.closePopup:focus-visible {
	outline: 2px solid var(--brass-bright);
	outline-offset: 2px;
}

#Edit {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ink-soft);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
#Edit::before {
	content: "";
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center/contain no-repeat;
}
#Edit:hover { color: var(--brass-bright); border-color: var(--brass); transform: translateY(-2px); }

/* ---- Legend ---------------------------------------------- */
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-top: 20px;
	animation: rise 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.legend div {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ink-soft);
	padding: 7px 14px 7px 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.legend .choice { opacity: 1; cursor: default; }
.legend-text { vertical-align: middle; }

/* ============================================================
   Choice circles
   ============================================================ */
.choice {
	box-sizing: border-box;
	width: 17px;
	height: 17px;
	opacity: 0.34;
	overflow: hidden;
	text-indent: -999px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	outline: none !important;
	vertical-align: middle;
	display: inline-block;
	cursor: pointer;
	font-size: 0;
	padding: 0;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.choices .choice { transition: all 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.choice + .choice { margin-left: 7px; }
.choices .choice:hover { opacity: 0.7; transform: scale(1.14); }

.choice.selected, .selected > .choice {
	opacity: 1;
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow:
		0 0 0 2px rgba(23, 17, 29, 0.9),
		0 0 0 3px currentColor,
		0 0 14px -1px currentColor;
	transform: scale(1.08);
}

/* ============================================================
   Category cards + rating tables
   ============================================================ */
.col {
	float: left;
	box-sizing: border-box;
	margin: 0;
	padding: 9px;
}
.col.col25  { width: 25%; }
.col.col33  { width: 33.3333%; }
.col.col50  { width: 50%; }
.col.col100 { width: 100%; padding: 9px 0; }

.kinkCategory {
	background: linear-gradient(180deg, rgba(42, 32, 50, 0.55), rgba(33, 24, 38, 0.65));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 6px 18px 14px;
	margin-bottom: 18px;
	box-shadow: var(--shadow-soft);
	position: relative;
	overflow: hidden;
}
.kinkCategory::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--brass), transparent);
	opacity: 0.55;
}

h2 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 500;
	font-size: 21px;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 14px 0 12px;
	padding: 0;
}

table {
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

th {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brass);
	text-align: center;
	border: none;
	border-bottom: 1px solid var(--line-strong);
	padding: 0 4px 9px;
	background: transparent;
	white-space: nowrap;
}
th.choicesCol {
	box-sizing: border-box;
	width: 84px;
}
th:last-child {
	text-align: left;
	width: auto;
	padding-left: 12px;
}

td {
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	margin: 0;
	padding: 9px 4px;
	vertical-align: middle;
	text-align: center;
	color: var(--ink-soft);
}
tr.kinkRow:last-child td { border-bottom: none; }
tr.kinkRow { transition: background 0.15s ease; }
tr.kinkRow:hover td { background: rgba(216, 185, 129, 0.05); }

/* the kink label cell (last td) */
td:last-child {
	text-align: left;
	padding-left: 12px;
	color: var(--ink);
	font-weight: 500;
	line-height: 1.35;
	position: relative;
}

/* ---- Description info button ----------------------------- */
.KinkDesc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 16px;
	height: 16px;
	margin-left: 7px;
	padding: 0;
	vertical-align: middle;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--brass);
	cursor: pointer;
	outline: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.KinkDesc::before {
	content: "i";
	font-family: var(--font-display);
	font-style: italic;
	font-size: 11px;
	line-height: 1;
	font-weight: 500;
}
.KinkDesc:hover { background: var(--brass); color: #221019; border-color: var(--brass); }

/* ============================================================
   Overlays (shared)
   ============================================================ */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(9, 6, 12, 0.82);
	backdrop-filter: blur(6px);
	display: none;
	z-index: 100;
}

/* ---- Edit overlay ---------------------------------------- */
#EditOverlay #Kinks {
	width: 60%;
	height: calc(100vh - 96px);
	min-width: 330px;
	position: fixed;
	top: 20px;
	left: 20%;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 18px;
	resize: none;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.6;
	box-shadow: var(--shadow);
}
#EditOverlay #Kinks:focus { outline: none; border-color: var(--brass); }

#EditOverlay #KinksOK {
	box-sizing: border-box;
	position: absolute;
	bottom: 16px;
	width: 260px;
	height: 46px;
	left: 50%;
	margin-left: -130px;
	color: #221019;
	font-family: var(--font-body);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: linear-gradient(135deg, var(--brass-bright), var(--brass));
	font-size: 13px;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 12px 30px -14px rgba(216, 185, 129, 0.8);
	transition: transform 0.18s ease;
}
#EditOverlay #KinksOK:hover { transform: translateX(-50%) translateY(-2px); margin-left: 0; }

/* ---- Description overlay --------------------------------- */
#Description {
	box-sizing: border-box;
	position: absolute;
	width: 360px;
	max-width: calc(100vw - 40px);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 24px 26px;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	box-shadow: var(--shadow);
	cursor: pointer;
}
#Description::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	border-radius: var(--radius) var(--radius) 0 0;
	background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

/* ============================================================
   Step-through popup
   ============================================================ */
#InputOverlay {
	text-align: center;
	white-space: nowrap;
}
#InputOverlay:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em;
}
#InputOverlay .widthWrapper {
	display: inline-block;
	vertical-align: middle;
	width: 440px;
	text-align: left;
	max-width: calc(100% - 32px);
}

#InputOverlay .widthWrapper #InputCurrent,
#InputOverlay .widthWrapper .kink-simple {
	display: block;
	box-sizing: border-box;
	padding: 22px 24px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}
#InputOverlay .widthWrapper #InputCurrent {
	position: relative;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* --- neighbour (prev/next) cards --- */
#InputOverlay .widthWrapper .kink-simple {
	position: relative;
	height: 44px;
	line-height: 22px;
	cursor: pointer;
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 0.2s ease, color 0.2s ease;
}
#InputOverlay .widthWrapper .kink-simple:hover { color: var(--ink); background: var(--surface-3); }
#InputOverlay .widthWrapper .kink-simple .choice { margin-right: 8px; opacity: 1; }

#InputOverlay .widthWrapper .kink-simple .txt-category {
	position: absolute;
	right: 14px;
	top: 8px;
	text-transform: uppercase;
	font-size: 9px;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--brass);
	opacity: 0.75;
	line-height: 1em;
}
#InputOverlay .widthWrapper .kink-simple .txt-field,
#InputOverlay .widthWrapper .kink-simple .txt-kink { vertical-align: middle; }
#InputOverlay .widthWrapper .kink-simple .txt-field:empty { display: none; }
#InputOverlay .widthWrapper .kink-simple .txt-field:before { content: '('; }
#InputOverlay .widthWrapper .kink-simple .txt-field:after { content: ') '; }

/* depth stack — fade neighbours as they recede */
#InputOverlay .widthWrapper #InputPrevious .kink-simple:first-child,
#InputOverlay .widthWrapper #InputNext .kink-simple:nth-child(3) {
	opacity: 0.4;
	font-size: 11px;
	margin-left: 14px;
	margin-right: 14px;
	height: 36px;
}
#InputOverlay .widthWrapper #InputPrevious .kink-simple:nth-child(2),
#InputOverlay .widthWrapper #InputNext .kink-simple:nth-child(2) {
	opacity: 0.62;
	font-size: 12px;
	margin-left: 7px;
	margin-right: 7px;
	height: 40px;
}
#InputOverlay .widthWrapper #InputPrevious .kink-simple:nth-child(3),
#InputOverlay .widthWrapper #InputNext .kink-simple:first-child {
	opacity: 0.85;
	margin-left: 3px;
	margin-right: 3px;
}
#InputOverlay .widthWrapper #InputPrevious .kink-simple:first-child { padding-bottom: 6px; padding-top: 10px; }
#InputOverlay .widthWrapper #InputNext .kink-simple:nth-child(3) { padding-top: 6px; }
#InputOverlay .widthWrapper #InputPrevious .kink-simple:nth-child(2) { padding-bottom: 9px; padding-top: 12px; }
#InputOverlay .widthWrapper #InputNext .kink-simple:nth-child(2) { padding-top: 9px; }

#InputPrevious .kink-simple:first-child { border-radius: var(--radius) var(--radius) 0 0; }
#InputNext .kink-simple:last-child { border-radius: 0 0 var(--radius) var(--radius); }
#InputPrevious { margin-bottom: 8px; }
#InputNext { margin-top: 8px; }

/* --- current card internals --- */
#InputTopBar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-right: 36px;
	margin-bottom: 6px;
}
#InputProgress {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brass);
}
#InputTopBar .langSelect {
	font-size: 11px;
	min-width: 0;
	padding: 6px 30px 6px 10px;
}
#InputTopBar .langSelect { position: relative; }

#InputOverlay .widthWrapper #InputCurrent .closePopup {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 30px;
	height: 30px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--ink-soft);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	outline: none !important;
	transition: color 0.2s ease, border-color 0.2s ease;
}
#InputOverlay .widthWrapper #InputCurrent .closePopup:hover { color: var(--brass); border-color: var(--brass); }

#InputOverlay .widthWrapper #InputCurrent h2 {
	font-family: var(--font-body);
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--brass);
	margin: 0;
}
#InputOverlay .widthWrapper #InputCurrent h3 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 500;
	margin: 6px 0 16px;
	font-size: 24px;
	line-height: 1.15;
	color: var(--ink);
	white-space: normal;
}

/* big rating buttons */
#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 15px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	margin-top: 9px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft);
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice .choice { opacity: 0.55; }
#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice:hover {
	background: rgba(216, 185, 129, 0.08);
	border-color: var(--brass);
	transform: translateX(3px);
	color: var(--ink);
}
#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice.selected {
	font-weight: 700;
	color: var(--ink);
	border-color: var(--brass);
	background: rgba(216, 185, 129, 0.12);
}
#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice.selected .choice { opacity: 1; }

#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice .btn-num-text {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-strong);
	text-align: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--ink-faint);
	background: rgba(0, 0, 0, 0.2);
}
#InputOverlay .widthWrapper #InputCurrent #InputValues .big-choice.selected .btn-num-text {
	color: var(--brass);
	border-color: var(--brass);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
	body { padding: 0 12px 60px; }
	.appBar { padding-top: 30px; }
	.toolbar { position: static; }
	.toolbar-actions { margin-left: 0; width: 100%; }
	.control { flex: 1 1 auto; }
	select { min-width: 0; width: 100%; }
	.control--select { min-width: 140px; }
}

@media (max-width: 500px) {
	body { font-size: 13px; }
	table { min-width: 300px; }
	th.choicesCol { width: 64px; }
	#Export, #StartBtn { flex: 1; text-align: center; }
}

@media (max-height: 560px) {
	#InputPrevious, #InputNext { display: none; }
}

/* ============================================================
   Print  — ink on paper, colours forced
   ============================================================ */
@media print {
	* {
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
	.atmosphere { display: none !important; }
	body {
		background: #fff !important;
		color: #111 !important;
		font-size: 10px;
		padding: 0;
	}
	.appBar { padding-top: 0; margin-bottom: 10px; }
	.masthead { text-align: left; margin-bottom: 8px; }
	.kicker, .tagline { display: none !important; }
	h1 {
		font-size: 26px;
		color: #111 !important;
		-webkit-text-fill-color: #111 !important;
		background: none !important;
		margin: 0;
	}

	/* Hide interactive chrome */
	.toolbar, #Export, #Edit, #StartBtn, #CopyLink, #Reset, #langSelect, #listType,
	.control, .progress, .overlay, .KinkDesc {
		display: none !important;
	}

	.widthWrapper { max-width: none; }

	.col { float: none !important; width: 100% !important; padding: 0; }

	.legend {
		display: block;
		margin-bottom: 8px;
		border-bottom: 1px solid #ccc;
		padding-bottom: 4px;
	}
	.legend div {
		display: inline-block;
		background: none !important;
		border: none !important;
		color: #111 !important;
		padding: 0 12px 0 0;
	}

	.kinkCategory {
		background: none !important;
		border: none !important;
		box-shadow: none !important;
		break-inside: avoid;
		padding: 0;
		margin-bottom: 8px;
	}
	.kinkCategory::before { display: none !important; }

	h2 {
		font-size: 14px;
		color: #111 !important;
		margin: 6px 0 2px;
	}

	th {
		color: #333 !important;
		border-bottom: 1px solid #999;
		padding: 2px 4px;
	}
	td {
		color: #111 !important;
		border-bottom: 1px solid #ddd;
		padding: 2px 4px;
	}
	td:last-child { color: #111 !important; }

	.choice {
		border: 1px solid #333 !important;
		box-shadow: none !important;
		width: 13px;
		height: 13px;
	}
	.choice.selected { border-width: 2px !important; }
}
