/* Winky competitions - design system v3 (2026-10-10).
   One calm palette: warm neutral background, white cards, violet as the brand colour, coral as the second
   side / accent (~70% neutral, 20% violet, 10% coral + accents). Every colour comes from the tokens below;
   components only reference tokens. Tokens live on .ct so nothing leaks into the older pages.
   Layout and class names are unchanged from v2 (app.js renders the same markup). */

html.ct-html, html.ct-html body { margin: 0; background: #F8F7F4; }
body.ct-body { min-height: 100vh; overflow-x: hidden; }

.ct {
	/* ---- palette ---- */
	--bg: #F8F7F4;            /* page */
	--surface: #FFFFFF;       /* cards */
	--surface-2: #F4F2EF;     /* quiet fills (inputs, chips at rest) */
	--surface-3: #ECE9E4;     /* pressed / track */
	--line: #EAE7F0;          /* borders */
	--line-2: #DCD7E6;

	--text: #2B2440;          /* main text */
	--muted: #6E6880;         /* secondary text (#777187 nudged darker for AA contrast on the warm background) */
	--faint: #767088;         /* timestamps, credits (AA on white) */

	--violet: #6948E8;        /* brand, primary actions, side A */
	--violet-600: #5A3AD6;    /* hover */
	--violet-700: #4A2DBA;    /* pressed */
	--violet-soft: #EDE9FF;
	--violet-soft-2: #DDD5FF;

	--coral: #FF7865;         /* accent, side B */
	--coral-600: #E85E4A;     /* text / fills that need contrast */
	--coral-700: #B83A25;
	--coral-soft: #FFF0EB;
	--coral-soft-2: #FFDCD2;

	--ok: #1F7A60;            /* success (#25866A nudged darker for AA) */
	--ok-soft: #E3F4EE;
	--warn: #A8670A;
	--warn-soft: #FFF4E0;
	--err: #C93C3C;
	--err-soft: #FDECEC;
	--gold: #E5A100;          /* the Coin itself */

	/* sides of a competition (app.js sets --side per competitor: violet, coral, ...) */
	--a: var(--violet); --b: var(--coral);

	/* gradients - used sparingly */
	--brand-grad: linear-gradient(135deg, #6948E8 0%, #8566F0 55%, #FF8A76 130%);

	/* ---- shape + depth ---- */
	--r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-pill: 999px;
	--shadow-1: 0 1px 2px rgba(43,36,64,.05), 0 2px 8px rgba(43,36,64,.05);
	--shadow-2: 0 2px 4px rgba(43,36,64,.04), 0 10px 28px rgba(43,36,64,.08);
	--shadow-3: 0 6px 16px rgba(43,36,64,.08), 0 22px 50px rgba(43,36,64,.14);
	--shadow: var(--shadow-3);
	--ring: 0 0 0 3px rgba(105,72,232,.28);

	/* ---- type ---- */
	--font: "Inter", "Noto Sans Georgian", "FiraGO", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs: 11.5px; --fs-sm: 13px; --fs-base: 15px; --fs-lg: 17px; --fs-xl: 20px;

	--ease: cubic-bezier(.2,.8,.2,1);
	--safe-b: env(safe-area-inset-bottom, 0px);

	color: var(--text); background: var(--bg);
	font-family: var(--font); font-size: var(--fs-base); line-height: 1.5;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
	min-height: 100vh; display: flex; flex-direction: column;
}
.ct *, .ct *::before, .ct *::after { box-sizing: border-box; }
.ct a { color: inherit; text-decoration: none; }
.ct img { max-width: 100%; display: block; }
.ct button { font: inherit; color: inherit; }
.ct h1, .ct h2, .ct h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
.ct :focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
.ct-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px 16px 40px; }

/* ---------- buttons ---------- */
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
	background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap;
	transition: background .18s ease, box-shadow .18s ease, transform .12s ease, opacity .2s; }
.ct-btn:hover { background: var(--surface-3); }
.ct-btn:active { transform: scale(.97); }
.ct-btn:disabled { opacity: .45; cursor: default; transform: none; }
/* primary action (class name kept from v2) */
.ct .ct-btn-hot, .ct a.ct-btn-hot { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(105,72,232,.28); }
.ct .ct-btn-hot:hover { background: var(--violet-600); }
.ct .ct-btn-hot:active { background: var(--violet-700); }
.ct .ct-btn-fresh { background: var(--violet-soft); color: var(--violet-700); }
.ct-btn-ghost { background: transparent; border: 1px solid var(--line-2); }
.ct-btn-ghost:hover { background: var(--surface); border-color: var(--violet-soft-2); color: var(--violet-700); }
.ct-btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); }
.ct-btn-block { width: 100%; }
.ct-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-grid; place-items: center;
	cursor: pointer; position: relative; transition: background .18s, border-color .18s; }
.ct-icon-btn:hover { background: var(--violet-soft); border-color: var(--violet-soft-2); color: var(--violet-700); }
.ct-icon-btn svg, .ct-ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* chips (header wallet, category filters) */
.ct-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
	color: var(--text); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, transform .12s; }
.ct-chip:hover { background: var(--violet-soft); border-color: var(--violet-soft-2); color: var(--violet-700); }
.ct-chip:active { transform: scale(.97); }
.ct-chip.is-on { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 4px 12px rgba(105,72,232,.25); }
.ct-dot { position: absolute; top: 6px; right: 7px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--coral); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- header ---------- */
.ct-top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line); }
.ct-top-in { max-width: 1180px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.ct-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.ct-logo span { color: var(--text); }
.ct-nav { display: flex; gap: 4px; margin-left: 8px; }
.ct-nav a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: 14px; transition: background .18s, color .18s; }
.ct-nav a.is-on, .ct-nav a:hover { color: var(--violet-700); background: var(--violet-soft); }
.ct-acct { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* wallet indicator: calm, readable, the Coin keeps its gold */
.ct-acct > .ct-chip { background: var(--surface-2); border-color: transparent; font-weight: 700; }
.ct-acct > .ct-chip:hover { background: var(--violet-soft); }
.ct-coins { color: var(--text); font-variant-numeric: tabular-nums; }
.ct-coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none;
	background: radial-gradient(circle at 35% 30%, #FFE9A8, #F4C430 45%, #C98F00); box-shadow: inset 0 0 0 1.5px rgba(120,80,0,.25); }
.ct-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--violet-soft); color: var(--violet-700); display: grid; place-items: center;
	font-weight: 800; border: 0; cursor: pointer; overflow: hidden; padding: 0; }
.ct-menu { position: absolute; right: 12px; top: 58px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); padding: 6px; z-index: 60; }
.ct-menu a, .ct-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; }
.ct-menu a:hover, .ct-menu button:hover { background: var(--violet-soft); color: var(--violet-700); }
.ct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.ct-menu-head { padding: 10px 12px 8px; color: var(--muted); font-size: 12px; }

/* ---------- daily banner (hero) ---------- */
.ct-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
	margin: 4px 0 14px; padding: 24px 24px; border-radius: var(--r-lg); color: #fff; background: var(--brand-grad); box-shadow: 0 14px 34px rgba(105,72,232,.22); }
.ct-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(260px 200px at 92% 0%, rgba(255,255,255,.22), transparent 70%), radial-gradient(300px 220px at 0% 120%, rgba(255,255,255,.12), transparent 70%); }
.ct-hero-in { position: relative; min-width: 0; }
.ct-hero-kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--r-pill); }
.ct-hero h1 { font-size: clamp(24px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.025em; margin: 10px 0 6px; }
.ct-hero p { margin: 0 0 16px; font-size: 15px; font-weight: 500; max-width: 560px; color: rgba(255,255,255,.92); }
.ct-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ct .ct-hero .ct-btn-hot { background: #fff; color: var(--violet-700); box-shadow: 0 6px 18px rgba(43,36,64,.18); font-size: 15px; min-height: 46px; padding: 0 22px; }
.ct .ct-hero .ct-btn-hot:hover { background: var(--violet-soft); }
.ct-hero-stat { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.9); }
.ct-hero-stat b { font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ct-hero-art { position: relative; width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ct-hero-art i { font-style: normal; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -.02em; }

/* ---------- daily reward indicators ---------- */
.ct-allow { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.ct-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
	font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ct-pill b { color: var(--text); font-weight: 700; }
/* free vote: soft violet (the main daily action) */
.ct-pill.is-ready { background: var(--violet-soft); border-color: transparent; color: var(--violet-700); }
.ct-pill.is-ready::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(105,72,232,.18); }
/* share bonus: soft coral */
.ct-allow .ct-pill:nth-child(2) { background: var(--coral-soft); border-color: transparent; color: var(--coral-700); }
.ct-allow .ct-pill:nth-child(2).is-ready::before { background: var(--coral); box-shadow: 0 0 0 3px rgba(255,120,101,.2); }

/* ---------- category filters ---------- */
.ct-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 14px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ct-cats::-webkit-scrollbar { display: none; }
.ct-cats .ct-chip { scroll-snap-align: start; }

/* ---------- section titles ---------- */
.ct-section-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; color: var(--muted); margin: 20px 2px 12px; }
.ct-section-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--violet); }
.ct-kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; color: var(--violet-700); background: var(--violet-soft); padding: 4px 9px; border-radius: var(--r-pill); }

/* ---------- competition card ---------- */
.ct-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-1);
	transition: box-shadow .25s var(--ease), transform .25s var(--ease); animation: ct-rise .4s var(--ease) both; }
.ct-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
@keyframes ct-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ct-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.ct-card-title { font-size: var(--fs-lg); font-weight: 800; flex: 1; min-width: 0; letter-spacing: -.02em; }
.ct-card-title a:hover { color: var(--violet-700); }
.ct-meta { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 16px 14px; color: var(--muted); font-size: 12.5px; }
.ct-meta span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ct-meta .ct-ic { width: 16px; height: 16px; color: var(--faint); }
.ct-state { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); }
.ct-state.is-live { background: var(--coral-soft); color: var(--coral-700); }
.ct-state.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-right: 6px; vertical-align: 1px; animation: ct-blink 1.6s ease-in-out infinite; }
@keyframes ct-blink { 50% { opacity: .3; } }
.ct-share { margin-left: auto; }
/* featured: same card, a quiet violet ring + larger type */
.ct-featured { margin-bottom: 18px; border-color: var(--violet-soft-2); box-shadow: 0 0 0 3px var(--violet-soft), var(--shadow-2); }
.ct-featured:hover { box-shadow: 0 0 0 3px var(--violet-soft), var(--shadow-3); }
.ct-featured .ct-card-title { font-size: 22px; }
.ct-featured .ct-side { aspect-ratio: 1 / 1; }
.ct-featured .ct-side-pct { font-size: 42px; }

/* the two photographs */
.ct-sides { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; position: relative; background: var(--surface); }
.ct-side { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.ct-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ct-card:hover .ct-side img { transform: scale(1.03); }
/* overlay: only the bottom third darkens, so the photo stays dominant and the numbers stay readable */
.ct-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23,18,38,0) 42%, rgba(23,18,38,.35) 62%, rgba(23,18,38,.86) 100%); }
.ct-side-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; font-weight: 800; color: #fff;
	background: radial-gradient(circle at 50% 30%, var(--side, var(--violet)) 0%, var(--text) 120%); }
.ct-side-label { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; color: #fff; }
.ct-side-name { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a small colour tab next to the name identifies the side (colour is never the only cue) */
.ct-side-name::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: var(--side, var(--violet)); flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.ct-side-pct { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 4px; color: #fff; font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 14px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.ct-side-sub { font-size: 12px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ct-side.is-mine::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--side); z-index: 2; pointer-events: none; }
.ct-vs { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; color: var(--violet-700); border: 0; font-weight: 800; font-size: 13px; letter-spacing: .04em; box-shadow: 0 4px 16px rgba(23,18,38,.28), 0 0 0 4px rgba(255,255,255,.35); }
.ct-sides.is-multi .ct-vs { display: none; }
.ct-sides.is-multi .ct-side { aspect-ratio: 3 / 4; }
.ct-sides.is-multi .ct-side-pct { font-size: 24px; }

/* score bar: violet vs coral, animated; the percentages above carry the numbers */
.ct-bar { display: flex; height: 8px; margin: 14px 16px 4px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); gap: 3px; }
.ct-bar i { display: block; height: 100%; background: var(--side); border-radius: var(--r-pill); transition: flex-grow .9s var(--ease); flex-basis: 0; min-width: 4px; }

/* ---------- voting buttons: equal weight, one system, tinted by side ---------- */
.ct-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding: 12px 16px 14px; }
.ct .ct-vote { --tint: var(--violet-soft); --ink: var(--violet-700);
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; padding: 7px 10px;
	border-radius: 16px; border: 1.5px solid transparent; background: var(--tint); color: var(--ink); text-shadow: none; box-shadow: none;
	cursor: pointer; line-height: 1.15; white-space: normal; overflow: hidden;
	transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .2s ease, transform .12s ease; }
/* side B (coral) - app.js marks it via --side; the second button in a row gets the coral tint */
.ct .ct-actions .ct-vote:nth-child(2) { --tint: var(--coral-soft); --ink: var(--coral-700); }
.ct .ct-actions .ct-vote:nth-child(n+3) { --tint: var(--surface-2); --ink: var(--text); }
.ct-vote .ct-vote-k { font-size: 11.5px; font-weight: 600; opacity: .85; }
.ct-vote b { font-size: 15px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.ct .ct-vote:hover { border-color: var(--side); box-shadow: 0 6px 16px -6px var(--side); }
.ct .ct-vote:active { transform: scale(.97); }
/* selected: the side this person already supports - solid fill */
.ct .ct-vote.is-picked { background: var(--ink); color: #fff; border-color: var(--ink); }
.ct .ct-vote.is-picked .ct-vote-k { opacity: .9; }
.ct .ct-vote.is-busy { opacity: .7; pointer-events: none; }
.ct .ct-vote:disabled:not(.is-busy) { background: var(--surface-2); color: var(--faint); border-color: transparent; box-shadow: none; cursor: default; transform: none; }
/* success: a soft ring + a tick that fades out (app.js adds .is-done for ~900ms) */
.ct .ct-vote.is-done { animation: ct-vote-ok .9s var(--ease); }
.ct .ct-vote.is-done::after { content: "✓"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 16px; animation: ct-tick .9s var(--ease) both; }
@keyframes ct-vote-ok { 0% { box-shadow: 0 0 0 0 var(--side); } 60% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: none; } }
@keyframes ct-tick { 0% { opacity: 0; transform: translate(4px, -50%) scale(.6); } 30% { opacity: 1; transform: translate(0, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(0, -50%) scale(1); } }

/* free-vote status under the buttons */
.ct-free-note { margin: -4px 16px 10px; font-size: 12px; font-weight: 600; color: var(--violet-700); display: flex; align-items: center; gap: 7px; }
.ct-free-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(105,72,232,.16); flex: none; }
.ct-free-note.is-done { color: var(--muted); }
.ct-free-note.is-done::before { background: var(--faint); box-shadow: none; }

/* ---------- competition page ---------- */
.ct-detail-head { padding: 6px 0 14px; }
.ct-detail-head h1 { font-size: clamp(26px, 5.5vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.ct-detail-head p { color: var(--muted); margin: 8px 0 0; max-width: 680px; }
.ct-arena { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-2); }
.ct-arena .ct-side { aspect-ratio: 3 / 4; max-height: 58vh; }
.ct-arena .ct-side-pct { font-size: clamp(32px, 8vw, 56px); }
.ct-arena .ct-side-name { font-size: clamp(15px, 4vw, 21px); }
.ct-arena .ct-vs { width: 56px; height: 56px; font-size: 15px; }
.ct-toggle { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; border: 1px solid var(--line); }
.ct-toggle button { border: 0; background: none; padding: 7px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .18s, color .18s; }
.ct-toggle button.is-on { background: var(--surface); color: var(--violet-700); box-shadow: var(--shadow-1); }
.ct-score-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px 0; color: var(--muted); font-size: 12.5px; }
.ct-score-head .ct-toggle { margin-left: auto; }
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.ct-col-main, .ct-col-side, .ct-panel { min-width: 0; }
.ct-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-1); }
.ct-panel h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ct-panel h2 svg { color: var(--violet); }
.ct-panel h2 small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---------- premium badges: clean tray, each badge its own soft halo ---------- */
.ct-badges { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ct-badges::-webkit-scrollbar { display: none; }
.ct-badge { --halo: var(--violet-soft); flex: 0 0 106px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 8px 10px;
	text-align: center; cursor: pointer; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
.ct-badge:hover { border-color: var(--violet-soft-2); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ct-badge:active { transform: translateY(-1px) scale(.98); }
.ct-badge:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.ct-badge-art { width: 58px; height: 58px; margin: 0 auto 7px; border-radius: 50%; padding: 7px; background: radial-gradient(circle, var(--halo) 0%, transparent 72%); }
.ct-badge-art svg { width: 100%; height: 100%; transition: transform .3s var(--ease); }
.ct-badge:hover .ct-badge-art svg { transform: scale(1.08) rotate(-4deg); }
.ct-badge[data-code="rose"] { --halo: #FFE3EA; }
.ct-badge[data-code="fire"] { --halo: #FFE8DC; }
.ct-badge[data-code="crown"] { --halo: #FFF3CF; }
.ct-badge[data-code="lion"] { --halo: #FDEBD6; }
.ct-badge[data-code="supercar"] { --halo: #FFE1E1; }
.ct-badge[data-code="dragon"] { --halo: #DFF5EC; }
.ct-badge[data-code="galaxy"] { --halo: #E6E0FF; }
.ct-badge b { display: block; font-size: 13px; font-weight: 700; }
.ct-badge span { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ct-badge span .ct-coin { width: 13px; height: 13px; }
.ct-badge em { display: inline-block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--violet-700); background: var(--violet-soft); padding: 2px 8px; border-radius: var(--r-pill); }

/* transparency table */
.ct-breakdown { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ct-breakdown th, .ct-breakdown td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.ct-breakdown th:first-child, .ct-breakdown td:first-child { text-align: left; }
.ct-breakdown th { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .02em; }
.ct-breakdown td b { color: var(--text); }
.ct-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--side); margin-right: 7px; vertical-align: -1px; }
.ct-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; line-height: 1.55; }

/* activity */
.ct-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ct-feed li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 13.5px; border-radius: 10px; animation: ct-in .45s ease both; }
.ct-feed li i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--violet); }
.ct-feed li i svg { width: 18px; height: 18px; }
.ct-feed li b { font-weight: 700; }
.ct-feed li time { margin-left: auto; color: var(--faint); font-size: var(--fs-xs); white-space: nowrap; }
.ct-feed .ct-plus { color: var(--ok); font-weight: 700; }
.ct-feed li > .ct-plus { margin-left: auto; white-space: nowrap; }
.ct-feed li i.ct-rank { font-style: normal; font-weight: 700; font-size: 13px; }
@keyframes ct-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* comments */
.ct-compose { display: grid; gap: 8px; margin-bottom: 14px; }
.ct-compose textarea, .ct-input, .ct-select { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); padding: 12px 14px;
	font: inherit; resize: vertical; min-height: 46px; transition: border-color .18s, box-shadow .18s; }
.ct-compose textarea:focus, .ct-input:focus, .ct-select:focus { outline: none; border-color: var(--violet); box-shadow: var(--ring); }
.ct-compose textarea { min-height: 76px; }
.ct-compose-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-compose-row small { color: var(--muted); font-size: 12px; }
.ct-compose-row .ct-btn { margin-left: auto; }
.ct-comment { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ct-comment .ct-avatar { width: 36px; height: 36px; font-size: 14px; cursor: default; }
.ct-comment-head { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.ct-comment-head time { color: var(--faint); font-size: var(--fs-xs); }
.ct-comment p { margin: 3px 0 6px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.55; }
.ct-comment p.is-gone { color: var(--faint); font-style: italic; }
.ct-comment-acts { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.ct-comment-acts button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; display: inline-flex; gap: 5px; align-items: center; transition: color .18s; }
.ct-comment-acts button:hover { color: var(--violet-700); }
.ct-comment-acts button.is-on { color: var(--coral-600); }
.ct-replies { grid-column: 2; }
.ct-replies .ct-comment { border-top: 0; padding: 8px 0 0; }
.ct-more { display: block; margin: 12px auto 0; }

/* ---------- wallet / account ---------- */
.ct-wallet-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-balance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-1); }
.ct-balance small { color: var(--muted); font-size: 12px; letter-spacing: .03em; font-weight: 600; }
.ct-balance b { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ct-balance p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.ct-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ct-pack { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: left; cursor: pointer; display: grid; gap: 4px;
	transition: border-color .18s, box-shadow .18s, transform .12s; }
.ct-pack:hover { border-color: var(--violet-soft-2); box-shadow: var(--shadow-2); }
.ct-pack:active { transform: scale(.98); }
.ct-pack b { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ct-pack span { color: var(--muted); font-size: 13px; }
.ct-pack strong { font-size: 15px; color: var(--violet-700); }
.ct-steps { display: flex; align-items: center; gap: 10px; }
.ct-steps button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 20px; font-weight: 800; cursor: pointer; }
.ct-steps button:hover { background: var(--violet-soft); color: var(--violet-700); }
.ct-steps output { min-width: 48px; text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ct-list li:last-child { border-bottom: 0; }
.ct-list .ct-amt { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-list .ct-amt.is-plus { color: var(--ok); }
.ct-list small { display: block; color: var(--faint); font-size: var(--fs-xs); }
.ct-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ct-form { display: grid; gap: 10px; }
.ct-form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ct-check { display: flex !important; grid-auto-flow: column; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: var(--text) !important; cursor: pointer; }
.ct-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.ct-banner { border-radius: var(--r); padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ct-banner.is-ok { border-color: transparent; background: var(--ok-soft); color: #145A46; }
.ct-banner.is-warn { border-color: transparent; background: var(--warn-soft); color: #6E4300; }
.ct-banner.is-err { border-color: transparent; background: var(--err-soft); color: #8A2323; }
.ct-sandbox { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); }

/* ---------- dialogs / sheets / toasts ---------- */
.ct-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(43,36,64,.42); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: ct-fade .2s ease; }
.ct-sheet { width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px 24px 0 0;
	padding: 22px 18px calc(20px + var(--safe-b)); box-shadow: var(--shadow-3); animation: ct-up .28s var(--ease); position: relative; }
.ct-sheet h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.ct-sheet > p { color: var(--muted); margin: 0 0 16px; }
.ct-sheet-close { position: absolute; top: 12px; right: 12px; }
.ct-sheet .ct-badge-art { width: 88px; height: 88px; margin: 0 auto 10px; background: radial-gradient(circle, var(--violet-soft) 0%, transparent 72%); }
.ct-price { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin: 12px 0 16px; font-size: 14px; }
.ct-price span { color: var(--muted); }
.ct-price b { text-align: right; font-variant-numeric: tabular-nums; }
.ct-sheet-acts { display: grid; gap: 8px; }
.ct-sheet .ct-actions { padding: 0 0 14px; }
.ct-divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0; }
.ct-divider::before, .ct-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.ct .ct-google { background: #fff; color: #1f1f1f; }
.ct-err { color: var(--err); font-size: 13px; min-height: 18px; }
.ct-link { background: none; border: 0; color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; font-size: 13px; }
@keyframes ct-fade { from { opacity: 0; } }
@keyframes ct-up { from { transform: translateY(40px); opacity: 0; } }
.ct-toasts { position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.ct-toast { background: var(--text); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-3); animation: ct-up .25s ease; }
.ct-toast.is-err { background: var(--err-soft); color: #8A2323; }
.ct-notes { position: absolute; right: 12px; top: 58px; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r); box-shadow: var(--shadow-3); z-index: 60; padding: 8px; }
.ct-notes a, .ct-notes div.ct-note-row { display: block; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.ct-notes a:hover { background: var(--surface-2); }
.ct-notes .is-unread { background: var(--violet-soft); }
.ct-notes-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px 12px; font-size: 14px; }
.ct-notes-head button { background: none; border: 0; color: var(--violet); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.ct-notes-head button:hover { background: var(--surface-2); }
.ct-note-item { display: flex; align-items: flex-start; border-radius: 10px; }
.ct-note-item a { flex: 1; min-width: 0; }
.ct-note-item.is-unread a:hover { background: transparent; }
.ct-note-x { flex: none; background: none; border: 0; color: var(--faint); cursor: pointer; width: 32px; height: 32px; margin: 4px 4px 0 0; border-radius: 8px; display: grid; place-items: center; }
.ct-note-x:hover { background: var(--surface-2); color: var(--text); }
.ct-note-x .ct-ic { width: 16px; height: 16px; }
.ct-notes time { display: block; color: var(--faint); font-size: var(--fs-xs); margin-top: 2px; }

/* sign in: one-tap providers first */
.ct-google-hero { margin: 4px 0 6px; }
.ct a.ct-google-big { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 20px; border-radius: 16px;
	background: #fff; color: #1f1f1f; font-size: 17px; font-weight: 700; border: 1.5px solid var(--line-2); box-shadow: var(--shadow-1); transition: border-color .18s, box-shadow .18s, transform .12s; }
.ct a.ct-google-big:hover { border-color: var(--violet-soft-2); box-shadow: var(--shadow-2); }
.ct a.ct-google-big:active { transform: scale(.98); }
.ct-google-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.ct-email-toggle { display: block; margin: 14px auto 2px; background: none; border: 0; color: var(--violet-700); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.ct-email { margin-top: 10px; }
.ct a.ct-apple-big { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 20px; border-radius: 16px;
	background: #000; color: #fff; font-size: 17px; font-weight: 700; box-shadow: var(--shadow-1); transition: transform .12s ease; }
.ct a.ct-apple-big:active { transform: scale(.98); }
.ct-google-hero a + a { margin-top: 10px; }

/* payment method buttons */
.ct .ct-paybtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; border-radius: 16px; font-size: 16px; font-weight: 700; cursor: pointer;
	border: 1.5px solid var(--line-2); background: #fff; color: var(--text); transition: border-color .18s, box-shadow .18s, transform .12s; }
.ct .ct-paybtn:hover { border-color: var(--violet-soft-2); box-shadow: var(--shadow-2); }
.ct .ct-paybtn:active { transform: scale(.98); }
.ct .ct-paybtn-apple_pay { background: #000; color: #fff; border-color: #000; }
.ct .ct-paybtn.is-busy { opacity: .6; }

/* ---------- footer, empty, loading ---------- */
.ct-foot { border-top: 1px solid var(--line); margin-top: 36px; background: var(--surface); }
.ct-foot-in { max-width: 1180px; margin: 0 auto; padding: 22px 16px calc(28px + var(--safe-b)); display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; color: var(--muted); font-size: 13px; }
.ct-foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
.ct-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ct-foot nav a:hover { color: var(--violet-700); }
.ct-foot-copy { margin-left: auto; color: var(--faint); }
.ct-credits { margin: 18px 2px 0; font-size: var(--fs-xs); color: var(--faint); line-height: 1.6; }
.ct-credits a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.ct-empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.ct-empty h1 { color: var(--text); font-size: 26px; margin-bottom: 14px; }
.ct-boot-loading { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.ct-boot-loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); animation: ct-bounce 1s infinite; }
.ct-boot-loading span:nth-child(2) { animation-delay: .15s; background: var(--violet-soft-2); }
.ct-boot-loading span:nth-child(3) { animation-delay: .3s; background: var(--coral); }
@keyframes ct-bounce { 50% { transform: translateY(-10px); opacity: .5; } }
.ct-skel { background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: ct-sh 1.2s infinite; border-radius: var(--r-lg); min-height: 380px; }
@keyframes ct-sh { to { background-position: -200% 0; } }
.ct-ssr-list { display: grid; gap: 16px; }
.ct-ssr-card { background: var(--surface); border-radius: var(--r); padding: 16px; }
.ct-ssr-card ul { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.ct-ssr-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }

/* ---------- larger screens ---------- */
@media (min-width: 700px) {
	.ct-main { padding: 22px 24px 50px; }
	.ct-grid { grid-template-columns: repeat(2, 1fr); }
	.ct-overlay { align-items: center; }
	.ct-sheet { border-radius: 24px; }
	.ct-cats { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
}
@media (min-width: 1000px) {
	.ct-grid { grid-template-columns: repeat(3, 1fr); }
	.ct-featured .ct-side, .ct-arena .ct-side { aspect-ratio: auto; height: clamp(240px, 46vh, 440px); }
	.ct-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
	.ct-layout > .ct-col-side { position: sticky; top: 76px; display: grid; gap: 18px; }
}

/* ---------- phones (primary platform: 360-430px) ---------- */
@media (max-width: 520px) {
	.ct-nav { display: none; }
	.ct-wallet-top { grid-template-columns: 1fr; }
	.ct-chip .ct-hide-sm { display: none; }
	.ct-main { padding: 10px 12px 28px; }
	.ct-top-in { height: 56px; padding: 0 12px; gap: 8px; }
	.ct-logo { font-size: 18px; gap: 7px; }
	.ct-logo img { width: 30px; height: 30px; }
	.ct-icon-btn, .ct-avatar { width: 38px; height: 38px; }
	/* compact banner: competitions appear on the first screen */
	.ct-hero { grid-template-columns: 1fr; padding: 15px 16px 16px; border-radius: 20px; margin: 2px 0 10px; box-shadow: 0 10px 24px rgba(105,72,232,.2); }
	.ct-hero-art { display: none; }
	.ct-hero-kicker { font-size: 11px; padding: 3px 9px; }
	.ct-hero h1 { font-size: 22px; margin: 7px 0 4px; }
	/* the "1 free vote" pill right below says the same thing - on phones the banner keeps only title + action */
	.ct-hero p { display: none; }
	.ct-hero h1 { margin-bottom: 12px; }
	.ct-hero-cta { gap: 6px 12px; flex-wrap: nowrap; }
	.ct-hero-stat { white-space: nowrap; }
	.ct .ct-hero .ct-btn-hot { min-height: 42px; padding: 0 18px; font-size: 14px; }
	.ct-hero-stat { font-size: 12px; }
	.ct-hero-stat b { font-size: 14px; }
	.ct-allow { gap: 6px; margin: 0 0 10px; }
	.ct-pill { padding: 6px 10px; font-size: 12px; }
	.ct-cats { margin: 0 -12px; padding: 2px 12px 12px; gap: 6px; }
	.ct-chip { height: 36px; padding: 0 13px; }
	.ct-grid { gap: 14px; }
	.ct-card { border-radius: 20px; }
	.ct-card-head { padding: 12px 14px 8px; gap: 8px; }
	.ct-card-title, .ct-featured .ct-card-title { font-size: 18px; }
	.ct-featured .ct-card-title { font-size: 19px; }
	.ct-share { width: 36px; height: 36px; }
	.ct-side, .ct-featured .ct-side, .ct-arena .ct-side { aspect-ratio: 4 / 5; height: auto; max-height: none; }
	.ct-side-label { left: 10px; right: 10px; bottom: 9px; }
	.ct-side-name { font-size: 14px; }
	.ct-side-pct, .ct-featured .ct-side-pct { font-size: 31px; }
	.ct-arena .ct-side-pct { font-size: 35px; }
	.ct-side-sub { font-size: 11.5px; }
	.ct-vs, .ct-arena .ct-vs { width: 40px; height: 40px; font-size: 12px; top: 40%; }
	.ct-bar { margin: 12px 14px 2px; }
	.ct-actions { padding: 10px 12px 12px; gap: 8px; }
	.ct .ct-vote { min-height: 54px; border-radius: 14px; }
	.ct-vote b { font-size: 14px; }
	.ct-free-note { margin: -4px 14px 8px; font-size: 11.5px; }
	.ct-meta { padding: 0 14px 12px; gap: 12px; font-size: 12px; }
	.ct-section-title { margin: 16px 2px 10px; }
	.ct-detail-head h1 { font-size: 26px; }
	.ct-score-head { padding: 10px 12px 0; }
	.ct-panel { padding: 14px 12px; }
	.ct-badge { flex-basis: 96px; padding: 10px 6px 9px; }
	.ct-badge-art { width: 50px; height: 50px; padding: 6px; }
	.ct-balance b { font-size: 26px; }
	.ct-sheet { padding: 20px 14px calc(18px + var(--safe-b)); }
	.ct-foot-in { padding: 18px 12px calc(22px + var(--safe-b)); font-size: 12.5px; }
	.ct-foot-copy { margin-left: 0; }
}
@media (max-width: 400px) {
	.ct-hero-stat + .ct-hero-stat { display: none; }
}
@media (max-width: 360px) {
	.ct-side-pct, .ct-featured .ct-side-pct { font-size: 27px; }
	.ct-vote .ct-vote-k { font-size: 10.5px; }
	.ct-acct .ct-chip { padding: 0 10px; }
	.ct-hero h1 { font-size: 20px; }
}

/* ---------- motion: subtle, and off for people who ask for less ---------- */
@media (prefers-reduced-motion: reduce) {
	.ct *, .ct *::before, .ct *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ct-card:hover, .ct-badge:hover { transform: none; }
	.ct-card:hover .ct-side img { transform: none; }
}

/* ---------- members' own challenges ---------- */
.ct-create-cta { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--violet-soft-2); color: var(--violet-700); font-weight: 700; font-size: 14.5px; }
.ct-create-cta b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 20px; line-height: 1; flex: none; }
.ct-create-cta:hover { border-style: solid; background: var(--violet-soft); }
.ct-by { font-size: var(--fs-sm) !important; font-weight: 600; color: var(--violet-700) !important; }
.ct-ugc-lead { color: var(--muted); margin: 0 0 4px; max-width: 720px; font-size: 14.5px; line-height: 1.55; }
.ct-ugc-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.ct-ugc-side { display: grid; gap: 8px; min-width: 0; }
.ct-ugc-vs { font-style: normal; font-weight: 800; color: var(--muted); font-size: 15px; }
.ct-ugc-pick { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); border: 2px dashed var(--line-2); background: var(--surface-2); display: grid !important; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); font-weight: 700; text-align: center; padding: 6px; }
.ct-ugc-pick:hover { border-color: var(--violet); color: var(--violet-700); }
.ct-ugc-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-ugc-pick.is-busy { opacity: .6; }
.ct-ugc-side[data-side="0"] .ct-ugc-pick { border-color: rgba(105,72,232,.35); }
.ct-ugc-side[data-side="1"] .ct-ugc-pick { border-color: rgba(255,120,101,.45); }
.ct-ugc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ct-ugc-list { list-style: none; margin: 0; padding: 0; }
.ct-ugc-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ct-ugc-list li:last-child { border-bottom: 0; }
.ct-ugc-thumbs { display: flex; flex: none; }
.ct-ugc-thumbs img, .ct-ugc-thumbs span { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 2px solid var(--surface); }
.ct-ugc-thumbs > :last-child { margin-left: -12px; }
.ct-ugc-info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.ct-ugc-info b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-ugc-info small { color: var(--faint); font-size: var(--fs-xs); }
.ct-ugc-why { color: var(--err) !important; }
.ct-ugc-st { justify-self: start; font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); }
.ct-ugc-st.is-pending { background: var(--warn-soft); color: var(--warn); }
.ct-ugc-st.is-published { background: var(--ok-soft); color: var(--ok); }
.ct-ugc-st.is-rejected { background: var(--err-soft); color: var(--err); }
.ct-ugc-side-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ct-ugc-side-acts .ct-amt { font-weight: 800; color: var(--ok); font-size: 13.5px; white-space: nowrap; }
.ct-ugc-total { font-size: 30px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
	.ct-ugc-sides { grid-template-columns: 1fr 1fr; }
	.ct-ugc-vs { display: none; }
	.ct-ugc-list li { flex-wrap: wrap; }
	.ct-ugc-side-acts { flex-direction: row; width: 100%; justify-content: flex-end; align-items: center; }
}
