/* Rugby Arena — front-end styles. Brand: navy #0A2342, teal #00979E / #1FC8C3, gold #F7C52B. */
.r25ch {
	--r25-navy: #0a2342;
	--r25-navy-2: #12325c;
	--r25-teal: #00979e;
	--r25-teal-bright: #1fc8c3;
	--r25-gold: #f7c52b;
	--r25-accent: var(--r25-teal);
	--r25-accent-ink: #fff;
	--r25-border: rgba(10, 35, 66, 0.14);
	--r25-muted: rgba(10, 35, 66, 0.62);
	--r25-card: #fff;
	--r25-radius: 12px;
	color: var(--r25-navy);
}
.r25ch *, .r25ch *::before, .r25ch *::after { box-sizing: border-box; }
.r25ch h3 { color: var(--r25-navy); font-weight: 800; }

.r25ch .r25-card {
	border: 1px solid var(--r25-border);
	border-radius: var(--r25-radius);
	background: var(--r25-card);
	padding: 1.25rem;
	margin: 0 0 1rem;
	box-shadow: 0 1px 2px rgba(10, 35, 66, 0.06), 0 6px 18px -12px rgba(10, 35, 66, 0.25);
}
.r25ch .r25-empty { text-align: center; }
.r25ch .r25-muted { color: var(--r25-muted); font-size: 0.9em; }

/* Buttons */
.r25ch .r25-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	background: linear-gradient(180deg, var(--r25-teal-bright), var(--r25-teal));
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.6em 1.3em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	font-size: 0.95em;
	box-shadow: 0 4px 12px -6px rgba(0, 151, 158, 0.8);
	transition: transform 0.15s ease, filter 0.15s ease;
}
.r25ch .r25-btn:hover, .r25ch .r25-btn:focus-visible { filter: brightness(1.07); transform: translateY(-1px); color: #fff; }
.r25ch .r25-btn--ghost { background: transparent; color: var(--r25-navy); box-shadow: inset 0 0 0 2px var(--r25-navy); }
.r25ch .r25-btn--ghost:hover, .r25ch .r25-btn--ghost:focus-visible { color: #fff; background: var(--r25-navy); }

/* Forms */
.r25ch .r25-form h3 { margin: 0.5rem 0 1rem; }
.r25ch .r25-field { margin: 0 0 1rem; }
.r25ch .r25-field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.r25ch input[type="text"], .r25ch input[type="email"], .r25ch input[type="password"], .r25ch input[type="number"],
.r25ch input[type="search"], .r25ch input[type="datetime-local"], .r25ch select, .r25ch textarea {
	width: 100%; max-width: 100%; padding: 0.6em 0.75em; border: 1px solid var(--r25-border); border-radius: 8px; font: inherit; background: #fff; color: var(--r25-navy);
}
.r25ch input:focus, .r25ch select:focus, .r25ch textarea:focus { outline: 2px solid var(--r25-teal-bright); outline-offset: 1px; border-color: transparent; }
.r25ch .r25-field small { display: block; color: var(--r25-muted); margin-top: 0.3rem; }
.r25ch .r25-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.r25ch .r25-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Notices */
.r25ch .r25-notice { border-radius: var(--r25-radius); padding: 0.85rem 1rem; margin: 0 0 1rem; font-weight: 600; }
.r25ch .r25-notice ul { margin: 0; padding-left: 1.2rem; }
.r25ch .r25-notice--ok { background: #e3f8f7; border: 1px solid #8fdcd8; color: #05555a; }
.r25ch .r25-notice--error { background: #fdecec; border: 1px solid #f1a9a9; color: #7f1d1d; }

/* Directory */
.r25ch .r25-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.r25ch .r25-filters input[type="search"] { flex: 1 1 220px; width: auto; }
.r25ch .r25-filters select { width: auto; }
.r25ch .r25-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.r25ch .r25-grid .r25-card { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; border-top: 4px solid var(--r25-teal); }
.r25ch .r25-grid .r25-card .r25-btn { align-self: flex-start; margin-top: auto; }
.r25ch .r25-player__head { display: flex; gap: 0.75rem; align-items: center; }
.r25ch .r25-player__head img { border-radius: 50%; }
.r25ch .r25-handle { display: block; font-size: 1.1em; font-weight: 800; word-break: break-word; }
.r25ch .r25-record { font-weight: 700; color: var(--r25-teal); font-size: 0.9em; }
.r25ch .r25-bio { margin: 0; font-size: 0.95em; }
.r25ch .r25-player p { margin: 0; }

.r25ch .r25-badge { display: inline-block; font-size: max(11px, 0.72em); font-weight: 700; padding: 0.15em 0.6em; border-radius: 999px; background: #eef1f5; color: var(--r25-navy); vertical-align: middle; letter-spacing: 0.02em; }
.r25ch .r25-badge--playstation { background: #e3ecfb; color: #0b3a8c; }
.r25ch .r25-badge--xbox { background: #e3f4e3; color: #135e13; }
.r25ch .r25-badge--pc { background: #eceff3; color: #222; }

.r25ch .r25-pagination { display: flex; gap: 0.4rem; margin-top: 1rem; }
.r25ch .r25-pagination a, .r25ch .r25-pagination span { padding: 0.3em 0.7em; border: 1px solid var(--r25-border); border-radius: 6px; text-decoration: none; }
.r25ch .r25-pagination .current { background: var(--r25-navy); color: #fff; border-color: var(--r25-navy); }

/* My matches */
.r25ch .r25-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.r25ch .r25-section { margin: 1.75rem 0; }
.r25ch .r25-section h3 { display: flex; align-items: center; gap: 0.5rem; }
.r25ch .r25-count { background: var(--r25-gold); color: var(--r25-navy); border-radius: 999px; font-size: 0.7em; padding: 0.1em 0.6em; }
.r25ch .r25-challenge { border-left: 5px solid var(--r25-border); }
.r25ch .r25-challenge p { margin: 0.4rem 0; }
.r25ch .r25-challenge__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.r25ch .r25-status { margin-left: auto; font-size: 0.75em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--r25-muted); }
.r25ch .r25-when { font-weight: 700; font-size: 1.05em; }
.r25ch .r25-status--pending { border-left-color: var(--r25-gold); }
.r25ch .r25-status--accepted { border-left-color: var(--r25-teal); }
.r25ch .r25-status--result-due, .r25ch .r25-status--result-reported { border-left-color: var(--r25-gold); }
.r25ch .r25-status--result-disputed { border-left-color: #d9480f; }
.r25ch .r25-status--completed { border-left-color: var(--r25-navy); }
.r25ch .r25-status--declined, .r25ch .r25-status--cancelled, .r25ch .r25-status--expired { border-left-color: #b91c1c; opacity: 0.75; }
.r25ch .r25-respond { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin-top: 0.75rem; }
.r25ch .r25-respond input[type="text"] { flex: 1 1 220px; width: auto; }
.r25ch .r25-score { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85em; font-weight: 700; }
.r25ch .r25-score input { width: 7.5em; font-size: 1.15em; font-weight: 800; text-align: center; }
.r25ch .r25-reported { background: #f4f8fb; border-radius: 8px; padding: 0.6rem 0.8rem; }
.r25ch .r25-reported--disputed { background: #fff3ea; }
.r25ch .r25-edit summary { cursor: pointer; color: var(--r25-teal); font-weight: 700; font-size: 0.9em; margin-top: 0.5rem; }
.r25ch .r25-final { display: flex; align-items: center; gap: 0.6rem; }
.r25ch .r25-final__score { font-size: 1.6em; font-weight: 900; font-style: italic; letter-spacing: -0.01em; }
.r25ch .r25-reported .r25-final__score { font-size: 1.1em; }

/* Form guide pills */
.r25ch .r25-fg { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 4px; font-style: normal; font-weight: 800; font-size: 0.75em; color: #fff; margin-right: 2px; }
.r25ch .r25-fg--w { background: #12a150; }
.r25ch .r25-fg--d { background: #8a94a6; }
.r25ch .r25-fg--l { background: #d33b3b; }
.r25ch .r25-final .r25-fg { width: 2em; height: 2em; font-size: 1em; }

/* Stats strip */
.r25ch .r25-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--r25-radius); overflow: hidden; margin-bottom: 1rem; }
.r25ch .r25-stat { background: var(--r25-navy); color: #fff; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.r25ch .r25-stat strong { font-size: 1.5em; font-weight: 900; font-style: italic; color: var(--r25-teal-bright); }
.r25ch .r25-stat span { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }

/* Leaderboard */
.r25ch .r25-lb__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.r25ch .r25-lb__head h3 { margin: 0; }
.r25ch .r25-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; background: #eef2f6; padding: 0.25rem; border-radius: 999px; }
.r25ch .r25-tabs a { padding: 0.35em 0.9em; border-radius: 999px; text-decoration: none; color: var(--r25-navy); font-weight: 700; font-size: 0.85em; }
.r25ch .r25-tabs a.is-active { background: var(--r25-navy); color: #fff; }
.r25ch .r25-table-wrap { overflow-x: auto; border-radius: var(--r25-radius); border: 1px solid var(--r25-border); background: #fff; }
.r25ch .r25-table { width: 100%; border-collapse: collapse; font-size: 0.95em; margin: 0; }
.r25ch .r25-table th { background: var(--r25-navy); color: #fff; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.7em 0.6em; text-align: left; border: 0; }
.r25ch .r25-table td { padding: 0.65em 0.6em; border: 0; border-top: 1px solid var(--r25-border); vertical-align: middle; }
.r25ch .r25-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.r25ch .r25-table td.player { min-width: 9em; }
.r25ch .r25-table td.player .r25-handle { font-size: 1em; display: inline; word-break: normal; overflow-wrap: anywhere; margin-right: 0.4em; }
.r25ch .r25-table td.rank { white-space: nowrap; }
.r25ch .r25-table .pts { font-weight: 900; }
.r25ch .r25-table th.pts { background: var(--r25-teal); }
.r25ch .r25-table td.rank { font-weight: 900; font-style: italic; }
.r25ch .r25-table tr.top-1 td.rank { color: #b88a00; }
.r25ch .r25-table tr.top-1 td.rank::before { content: "★ "; }
.r25ch .r25-table tr.is-me td { background: #e3f8f7; }
.r25ch .r25-table td.form { white-space: nowrap; }
.r25ch .r25-lb__key { margin-top: 0.5rem; }
.r25ch .r25-lb__recent { margin-top: 1.75rem; }
.r25ch .r25-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.r25ch .r25-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--r25-border); border-radius: 10px; padding: 0.6rem 0.9rem; }
.r25ch .r25-results .t:first-child { text-align: right; }
.r25ch .r25-results .t.win { font-weight: 800; }
.r25ch .r25-results .sc { white-space: nowrap; background: var(--r25-navy); color: #fff; font-weight: 900; font-style: italic; padding: 0.2em 0.7em; border-radius: 6px; font-variant-numeric: tabular-nums; }
.r25ch .r25-results .sc i { color: var(--r25-teal-bright); padding: 0 0.15em; font-style: normal; }
.r25ch .r25-results small { grid-column: 1 / -1; text-align: center; color: var(--r25-muted); margin-top: -0.25rem; }

/* Hero */
.r25ch .r25-hero {
	--r25-hero-image: none;
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	color: #fff;
	text-align: center;
	padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
	background:
		radial-gradient(ellipse 45% 30% at 8% 6%, rgba(255, 255, 255, 0.35), transparent 70%),
		radial-gradient(ellipse 45% 30% at 92% 6%, rgba(255, 255, 255, 0.35), transparent 70%),
		linear-gradient(180deg, rgba(10, 35, 66, 0.55) 0%, rgba(10, 35, 66, 0.88) 55%, rgba(6, 60, 48, 0.95) 100%),
		var(--r25-hero-image) center / cover no-repeat,
		linear-gradient(180deg, #1d4f80 0%, #0a2342 60%, #0b3b2c 100%);
	margin-bottom: 2rem;
}
.r25ch .r25-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 22%;
	background: repeating-linear-gradient(90deg, rgba(31, 120, 60, 0.35) 0 60px, rgba(20, 95, 45, 0.35) 60px 120px);
	mask-image: linear-gradient(180deg, transparent, #000);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000);
	pointer-events: none;
}
.r25ch .r25-hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.r25ch .r25-hero__logo { width: min(360px, 75%); height: auto; display: block; margin: 0 auto 1.25rem; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }
.r25ch .r25-hero__title { margin: 0 0 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.1em; line-height: 1; font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 900; font-style: italic; text-transform: none; letter-spacing: -0.01em; color: #fff; }
.r25ch .r25-brush { display: inline-block; padding: 0.08em 0.45em 0.12em; transform: rotate(-3deg); }
.r25ch .r25-brush--teal { background: linear-gradient(100deg, transparent 0 2%, var(--r25-teal-bright) 4% 96%, transparent 98%); color: #fff; text-shadow: 0 2px 0 rgba(10, 35, 66, 0.35); }
.r25ch .r25-brush--yellow { background: linear-gradient(100deg, transparent 0 2%, var(--r25-gold) 4% 96%, transparent 98%); color: var(--r25-navy); text-transform: uppercase; margin-top: -0.05em; }
.r25ch .r25-hero__intro { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 700; font-style: italic; max-width: 32ch; margin: 0 auto 1.75rem; }
.r25ch .r25-hero__features { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.r25ch .r25-hero__features li + li { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.r25ch .r25-hero__features a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.5rem; color: #fff; text-decoration: none; font-weight: 800; line-height: 1.2; font-size: 0.95em; }
.r25ch .r25-hero__features svg { width: 48px; height: 48px; color: var(--r25-teal-bright); filter: drop-shadow(0 0 8px rgba(31, 200, 195, 0.6)); transition: transform 0.15s ease; }
.r25ch .r25-hero__features a:hover svg { transform: translateY(-3px); }
.r25ch .r25-hero__cta {
	display: inline-block; padding: 0.7em 2em; border-radius: 999px; font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 900; font-style: italic; color: #fff; text-decoration: none;
	background: linear-gradient(180deg, var(--r25-teal-bright), var(--r25-teal)); border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 10px 30px -10px rgba(31, 200, 195, 0.9);
}
.r25ch .r25-hero__cta:hover, .r25ch .r25-hero__cta:focus-visible { color: #fff; filter: brightness(1.08); }
.r25ch .r25-hero__tagline { margin: 1.5rem 0 0.25rem; font-size: 1.15em; font-weight: 800; font-style: italic; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.r25ch .r25-hero__tagline::before, .r25ch .r25-hero__tagline::after { content: ""; width: 3rem; height: 2px; background: var(--r25-teal-bright); }
.r25ch .r25-hero__legal { font-size: 0.7em; opacity: 0.6; margin: 0.75rem 0 0; }

@media (max-width: 640px) {
	.r25ch .r25-row { grid-template-columns: 1fr; }
	.r25ch .r25-hero__features { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
	.r25ch .r25-hero__features li:nth-child(3) { border-left: 0; }
	.r25ch .r25-table .hide-sm { display: none; }
	.r25ch .r25-table td.player .r25-badge { display: table; margin-top: 0.2em; }
	.r25ch .r25-table { font-size: 0.88em; }
	.r25ch .r25-table th, .r25ch .r25-table td { padding-left: 0.4em; padding-right: 0.4em; }
	.r25ch .r25-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
	.r25ch .r25-tabs a { white-space: nowrap; }
}
.r25ch .r25-stat--form strong { white-space: nowrap; font-size: 1.1em; font-style: normal; }

/* ---------- Tournaments ---------- */
.r25ch .r25-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.r25ch .r25-tcard { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; border-top: 4px solid var(--r25-teal); position: relative; overflow: hidden; }
.r25ch .r25-tcard--registration { border-top-color: var(--r25-gold); }
.r25ch .r25-tcard--completed { border-top-color: var(--r25-navy); }
.r25ch .r25-tcard::after { content: "🏆"; position: absolute; right: -0.4rem; bottom: -1.2rem; font-size: 6rem; opacity: 0.06; pointer-events: none; }
.r25ch .r25-tcard__top { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.r25ch .r25-tcard__name { margin: 0.25rem 0 0; font-size: 1.5rem; line-height: 1.1; }
.r25ch .r25-tcard__name a { color: var(--r25-navy); text-decoration: none; }
.r25ch .r25-tcard__name a:hover { color: var(--r25-teal); }
.r25ch .r25-tcard__meta, .r25ch .r25-tcard__count, .r25ch .r25-tcard__progress { margin: 0; }
.r25ch .r25-tcard__meta { font-weight: 700; color: var(--r25-teal); font-size: 0.9em; }
.r25ch .r25-tcard__progress { font-weight: 700; }
.r25ch .r25-tcard__progress.is-champ { color: #a07800; }
.r25ch .r25-tcard .r25-btn { align-self: flex-start; margin-top: auto; }
.r25ch .r25-pill { display: inline-block; font-size: 0.72em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25em 0.7em; border-radius: 999px; background: #eef1f5; color: var(--r25-navy); }
.r25ch .r25-pill--registration { background: var(--r25-gold); color: var(--r25-navy); }
.r25ch .r25-pill--in_progress { background: var(--r25-teal); color: #fff; }
.r25ch .r25-pill--in_progress::before { content: "● "; animation: r25-blink 1.4s infinite; }
.r25ch .r25-pill--completed { background: var(--r25-navy); color: #fff; }
.r25ch .r25-pill--cancelled { background: #fdecec; color: #7f1d1d; }
@keyframes r25-blink { 50% { opacity: 0.3; } }
.r25ch .r25-meter { height: 8px; border-radius: 999px; background: #e7edf3; overflow: hidden; }
.r25ch .r25-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--r25-teal-bright), var(--r25-teal)); }

.r25ch .r25-back { margin: 0 0 1rem; }
.r25ch .r25-back a { font-weight: 700; text-decoration: none; color: var(--r25-teal); }
.r25ch .r25-thead {
	background: radial-gradient(ellipse 50% 80% at 100% 0, rgba(31, 200, 195, 0.25), transparent 70%), linear-gradient(135deg, var(--r25-navy) 0%, var(--r25-navy-2) 100%);
	color: #fff; border-radius: var(--r25-radius); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.r25ch .r25-thead::after { content: "🏆"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 9rem; opacity: 0.08; pointer-events: none; }
.r25ch .r25-thead .r25-badge { background: rgba(255, 255, 255, 0.12); color: #fff; }
.r25ch .r25-thead__name { color: #fff; margin: 0.5rem 0; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; font-style: italic; line-height: 1.05; }
.r25ch .r25-thead__desc { max-width: 65ch; opacity: 0.9; margin: 0 0 1rem; }
.r25ch .r25-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.25rem; }
.r25ch .r25-facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }
.r25ch .r25-facts dd { margin: 0; font-weight: 800; }
.r25ch .r25-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; position: relative; z-index: 1; }
.r25ch .r25-entry form { margin: 0; }
.r25ch .r25-entry .r25-muted { color: rgba(255, 255, 255, 0.8); }
.r25ch .r25-thead .r25-btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.r25ch .r25-thead .r25-btn--ghost:hover { background: #fff; color: var(--r25-navy); }
.r25ch .r25-btn--big { font-size: 1.15em; padding: 0.75em 1.8em; }
.r25ch .r25-entered { font-weight: 800; color: var(--r25-teal-bright); font-size: 1.1em; }

.r25ch .r25-champion { display: flex; align-items: center; gap: 1rem; background: linear-gradient(100deg, #fff6d6, #fffbea); border: 2px solid var(--r25-gold); border-radius: var(--r25-radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; }
.r25ch .r25-champion__cup { font-size: 2.6rem; }
.r25ch .r25-champion small { display: block; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: #8a6a00; font-size: 0.75em; }
.r25ch .r25-champion strong { font-size: 1.8em; font-weight: 900; font-style: italic; line-height: 1.1; }

/* Bracket */
.r25ch .r25-bracket-wrap { overflow-x: auto; padding-bottom: 0.5rem; }
.r25ch .r25-bracket { display: grid; grid-template-columns: repeat(var(--r25-rounds), minmax(190px, 1fr)); gap: 1.75rem; min-width: calc(var(--r25-rounds) * 215px); }
.r25ch .r25-bracket__round { display: flex; flex-direction: column; }
.r25ch .r25-bracket__round h4 { margin: 0 0 0.75rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--r25-teal); font-style: normal; }
.r25ch .r25-bracket__matches { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 0.75rem; }
.r25ch .r25-bm { background: #fff; border: 1px solid var(--r25-border); border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 4px 12px -8px rgba(10, 35, 66, 0.35); }
.r25ch .r25-bracket__round:not(.r25-bracket__round--champ) .r25-bm::after { content: ""; position: absolute; right: -1.75rem; top: 50%; width: 1.75rem; border-top: 2px solid var(--r25-border); }
.r25ch .r25-bm.is-live { border-color: var(--r25-teal-bright); box-shadow: 0 0 0 2px rgba(31, 200, 195, 0.25); }
.r25ch .r25-bm.is-mine { outline: 2px solid var(--r25-gold); outline-offset: 1px; }
.r25ch .r25-bm.is-bye { opacity: 0.7; }
.r25ch .r25-bm__row { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.6rem; font-size: 0.92em; }
.r25ch .r25-bm__row + .r25-bm__row { border-top: 1px solid var(--r25-border); }
.r25ch .r25-bm__row .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.r25ch .r25-bm__row .tbd { flex: 1; color: var(--r25-muted); font-style: italic; }
.r25ch .r25-bm__row b { min-width: 1.8em; text-align: right; font-variant-numeric: tabular-nums; }
.r25ch .r25-bm__row.is-winner { background: #e3f8f7; }
.r25ch .r25-bm__row.is-winner .n, .r25ch .r25-bm__row.is-winner b { font-weight: 900; color: var(--r25-navy); }
.r25ch .r25-bm__row.is-loser { color: var(--r25-muted); }
.r25ch .r25-seed { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 0.25em; border-radius: 4px; background: #eef2f6; color: var(--r25-slate, #5a6b82); font-size: 0.72em; font-style: normal; font-weight: 800; }
.r25ch .r25-bm__meta { display: block; padding: 0.25rem 0.6rem; background: #f4f8fb; font-size: 0.75em; font-weight: 700; color: var(--r25-teal); border-top: 1px solid var(--r25-border); }
.r25ch .r25-bm--champ { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1rem; text-align: center; background: var(--r25-navy); color: #fff; border: 0; }

.r25ch .r25-bm--champ strong { font-size: 1.15em; font-style: italic; }
.r25ch .r25-bm--champ.is-done { background: linear-gradient(135deg, #f7c52b, #e9a800); color: var(--r25-navy); }

/* League fixtures & entrants */
.r25ch .r25-fixtures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.25rem; }
.r25ch .r25-fixtures__round h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.r25ch .r25-fixtures__round h4 small { font-weight: 600; color: var(--r25-muted); font-style: normal; font-size: 0.8em; }
.r25ch .r25-results .sc.is-pending { background: #eef2f6; color: var(--r25-muted); }
.r25ch .r25-results li.is-mine { border-color: var(--r25-gold); }
.r25ch .r25-entrants { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.r25ch .r25-entrants li { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid var(--r25-border); border-radius: 999px; padding: 0.3rem 0.8rem 0.3rem 0.4rem; font-weight: 700; }
.r25ch .r25-entrants li.is-me { border-color: var(--r25-teal); background: #e3f8f7; }

/* Tournament info on match cards */
.r25ch .r25-tline { font-weight: 800; font-size: 0.9em; }
.r25ch .r25-tline a { color: var(--r25-teal); text-decoration: none; }
.r25ch .r25-when.is-late { color: #b91c1c; }
.r25ch .r25-icon-trophy { width: 1.1em; height: 1.1em; vertical-align: -0.15em; display: inline-block; }
.r25ch .r25-champion__cup { color: #d9a400; }
.r25ch .r25-champion__cup .r25-icon-trophy { width: 3rem; height: 3rem; }
.r25ch .r25-bm--champ .r25-icon-trophy { width: 2.4rem; height: 2.4rem; }
.r25ch .r25-tcard__progress .r25-icon-trophy { color: #d9a400; }
.r25ch .r25-swipe { display: none; margin: -0.5rem 0 0.75rem; }
@media (max-width: 700px) { .r25ch .r25-swipe { display: block; } }

/* ---------- Account menu & community stats (headers, landing pages, Brikly elements) ---------- */
.r25ch .r25-account { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; font-weight: 700; }
.r25ch .r25-account a { text-decoration: none; color: inherit; }
.r25ch .r25-account__login { padding: 0.45em 0.6em; }
.r25ch .r25-account__join, .r25ch .r25-account__matches {
	display: inline-flex; align-items: center; gap: 0.45em; padding: 0.5em 1.1em; border-radius: 999px; color: #fff !important;
	background: linear-gradient(180deg, var(--r25-teal-bright), var(--r25-teal)); font-style: italic; font-weight: 800;
}
.r25ch .r25-account__badge { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 0.35em; border-radius: 999px; background: var(--r25-gold); color: var(--r25-navy); font-style: normal; font-size: 0.8em; font-weight: 800; }
.r25ch .r25-account__me { display: inline-flex; align-items: center; gap: 0.5em; }
.r25ch .r25-account__me img { border-radius: 50%; border: 2px solid var(--r25-teal-bright); width: 32px; height: 32px; }
.r25ch .r25-statsband { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--r25-card); border-radius: var(--r25-radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(6, 22, 41, 0.6), 0 2px 4px rgba(6, 22, 41, 0.08); }
.r25ch .r25-statsband__item { padding: 1.4rem 1.5rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.2rem; }
.r25ch .r25-statsband__item + .r25-statsband__item { border-left: 1px solid var(--r25-border); }
.r25ch .r25-statsband dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--r25-muted); }
.r25ch .r25-statsband dd { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--r25-teal); overflow-wrap: anywhere; }
.r25ch .r25-statsband__item--leader { background: var(--r25-navy); }
.r25ch .r25-statsband__item--leader dt { color: rgba(255, 255, 255, 0.7); }
.r25ch .r25-statsband__item--leader dd { color: var(--r25-gold); font-size: clamp(1.5rem, 3vw, 2.1rem); }
@media (max-width: 760px) {
	.r25ch .r25-statsband { grid-template-columns: repeat(2, 1fr); }
	.r25ch .r25-statsband__item:nth-child(3) { border-left: 0; }
	.r25ch .r25-statsband__item:nth-child(n+3) { border-top: 1px solid var(--r25-border); }
}
.r25ch .r25-hero--square { border-radius: 0; margin-bottom: 0; }

/* ---------- Messaging ---------- */
.r25ch .r25-icon-msg { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.r25ch .r25-btn .r25-icon-msg { margin-right: 0.1em; }
.r25ch .r25-btn--sm { font-size: 0.82em; padding: 0.4em 0.9em; }
.r25ch .r25-player__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.r25ch .r25-player__actions .r25-btn { margin-top: 0 !important; }
.r25ch .r25-unread { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 0.35em; border-radius: 999px; background: var(--r25-gold); color: var(--r25-navy); font-size: 0.75em; font-weight: 800; font-style: normal; }
.r25ch .r25-chatlink { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.5rem 0 0; font-weight: 800; font-size: 0.9em; color: var(--r25-teal); text-decoration: none; }
.r25ch .r25-chatlink:hover { color: var(--r25-navy); }

.r25ch .r25-inbox { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; background: var(--r25-card); border: 1px solid var(--r25-border); border-radius: var(--r25-radius); overflow: hidden; min-height: 560px; box-shadow: 0 10px 30px -18px rgba(10, 35, 66, 0.4); }
.r25ch .r25-inbox__list { border-right: 1px solid var(--r25-border); display: flex; flex-direction: column; min-width: 0; background: #f8fafc; }
.r25ch .r25-inbox__listhead { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1rem 1rem 0.75rem; border-bottom: 1px solid var(--r25-border); }
.r25ch .r25-inbox__listhead h3 { margin: 0; font-size: 1.25rem; }
.r25ch .r25-inbox__empty { padding: 1rem; }
.r25ch .r25-inbox__list ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 640px; }
.r25ch .r25-inbox__list li a { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--r25-border); }
.r25ch .r25-inbox__list li a:hover { background: #eef5f8; }
.r25ch .r25-inbox__list li.is-active a { background: #e3f8f7; box-shadow: inset 3px 0 0 var(--r25-teal); }
.r25ch .r25-inbox__list li img { border-radius: 50%; flex: none; }
.r25ch .r25-inbox__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.r25ch .r25-inbox__who strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r25ch .r25-inbox__side { flex: none; }
.r25ch .r25-inbox__kind { font-size: 0.72rem; font-weight: 700; color: var(--r25-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.r25ch .r25-inbox__kind.is-match { color: var(--r25-teal); }
.r25ch .r25-inbox__snip { font-size: 0.88rem; color: var(--r25-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r25ch .r25-inbox__list li.is-unread .r25-inbox__snip { color: var(--r25-navy); font-weight: 700; }
.r25ch .r25-inbox__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; font-size: 0.75rem; color: var(--r25-muted); }
.r25ch .r25-inbox__thread { display: flex; flex-direction: column; min-width: 0; }
.r25ch .r25-inbox__placeholder { margin: auto; text-align: center; color: var(--r25-muted); padding: 2rem; }
.r25ch .r25-inbox__placeholder .r25-icon-msg { width: 3rem; height: 3rem; color: var(--r25-teal); opacity: 0.6; }

.r25ch .r25-thread { display: flex; flex-direction: column; height: 100%; min-height: 560px; }
.r25ch .r25-thread__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--r25-border); background: #fff; }
.r25ch .r25-thread__head img { border-radius: 50%; }
.r25ch .r25-thread__back { display: none; text-decoration: none; font-size: 1.4rem; color: var(--r25-navy); padding: 0 0.25rem; }
.r25ch .r25-thread__who { flex: 1 1 150px; min-width: 120px; }
.r25ch .r25-thread__who strong { overflow-wrap: anywhere; }
.r25ch .r25-thread__who strong { font-size: 1.1rem; }
.r25ch .r25-thread__who small { display: block; color: var(--r25-muted); font-size: 0.8rem; }
.r25ch .r25-thread__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin-left: auto; font-size: 0.9rem; }
.r25ch .r25-thread__actions .r25-btn--sm { font-size: 0.85rem; }
.r25ch .r25-thread__actions form { margin: 0; }
.r25ch .r25-linkbtn { background: none; border: 0; padding: 0.3em; color: var(--r25-muted); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; text-decoration: underline; }
.r25ch .r25-linkbtn:hover { color: #b91c1c; }
.r25ch .r25-thread__msgs { list-style: none; margin: 0; padding: 1rem; flex: 1; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 0.6rem; background:
	radial-gradient(circle at 100% 0, rgba(31, 200, 195, 0.06), transparent 40%), #f4f7fa; }
.r25ch .r25-thread__intro { align-self: center; max-width: 34ch; text-align: center; color: var(--r25-muted); font-size: 0.9rem; margin: 2rem 0; }
.r25ch .r25-msg { max-width: min(78%, 560px); align-self: flex-start; }
.r25ch .r25-msg__body { background: #fff; border: 1px solid var(--r25-border); border-radius: 16px 16px 16px 4px; padding: 0.6rem 0.85rem; line-height: 1.45; overflow-wrap: anywhere; }
.r25ch .r25-msg.is-mine { align-self: flex-end; }
.r25ch .r25-msg.is-mine .r25-msg__body { background: linear-gradient(180deg, var(--r25-teal-bright), var(--r25-teal)); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.r25ch .r25-msg.is-hidden .r25-msg__body { background: transparent; color: var(--r25-muted); border-style: dashed; }
.r25ch .r25-msg__meta { font-size: 0.72rem; color: var(--r25-muted); margin-top: 0.2rem; padding: 0 0.3rem; }
.r25ch .r25-msg.is-mine .r25-msg__meta { text-align: right; }
.r25ch .r25-report { display: inline; }
.r25ch .r25-report summary { display: inline; cursor: pointer; text-decoration: underline; }
.r25ch .r25-report form { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.r25ch .r25-report input { font-size: 0.85rem; padding: 0.35em 0.6em; }
.r25ch .r25-report .r25-btn { font-size: 0.8em; padding: 0.35em 0.8em; white-space: nowrap; }
.r25ch .r25-compose { display: flex; gap: 0.6rem; align-items: flex-end; padding: 0.8rem 1rem; border-top: 1px solid var(--r25-border); background: #fff; margin: 0; }
.r25ch .r25-compose textarea { flex: 1; resize: vertical; min-height: 2.9em; max-height: 12em; border-radius: 12px; }
.r25ch .r25-thread__closed { padding: 1rem; margin: 0; border-top: 1px solid var(--r25-border); color: var(--r25-muted); text-align: center; }
.r25ch .r25-check { display: flex; gap: 0.5rem; align-items: center; font-weight: 600; }
.r25ch .r25-check input { width: auto; }
.r25ch .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 760px) {
	.r25ch .r25-inbox { grid-template-columns: 1fr; min-height: 0; }
	.r25ch .r25-inbox.has-open .r25-inbox__list { display: none; }
	.r25ch .r25-inbox:not(.has-open) .r25-inbox__thread { display: none; }
	.r25ch .r25-inbox__list { border-right: 0; }
	.r25ch .r25-thread__back { display: inline; }
	.r25ch .r25-thread__msgs { max-height: 60vh; }
	.r25ch .r25-msg { max-width: 88%; }
}

/* Messages icon in the account menu */
.r25ch .r25-account__msgs { position: relative; display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; }
.r25ch .r25-account__msgs .r25-icon-msg { width: 1.35em; height: 1.35em; }
.r25ch .r25-account__badge--msgs { position: absolute; top: -0.35em; right: -0.45em; font-size: 0.7em; }
.r25ch .r25-account__menu { position: relative; }
.r25ch .r25-account__menu > summary { list-style: none; cursor: pointer; }
.r25ch .r25-account__menu > summary::-webkit-details-marker { display: none; }
.r25ch .r25-account__dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 220px; padding: 0.4rem; background: #fff; color: var(--r25-navy); border-radius: 12px; border-top: 3px solid var(--r25-teal-bright); box-shadow: 0 20px 50px -15px rgba(6, 22, 41, 0.55); white-space: nowrap; font-style: normal; }
.r25ch .r25-account__who { padding: 0.5rem 0.7rem 0.7rem; border-bottom: 1px solid var(--r25-border); margin-bottom: 0.3rem; }
.r25ch .r25-account__who strong { display: block; font-size: 1.05rem; }
.r25ch .r25-account__who small { color: var(--r25-teal); font-weight: 700; }
.r25ch .r25-account__dropdown a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; color: var(--r25-navy) !important; font-weight: 600; }
.r25ch .r25-account__dropdown a:hover { background: #e3f8f7; }
.r25ch .r25-account__dropdown .r25-account__logout { margin-top: 0.3rem; border-top: 1px solid var(--r25-border); border-radius: 0 0 8px 8px; color: #b42318 !important; }

/* ---------- Moderation ---------- */
.r25ch .r25-icon-flag { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.25em; }
.r25ch .r25-reportp { position: relative; display: inline-block; font-size: 0.85rem; }
.r25ch .r25-reportp > summary { list-style: none; cursor: pointer; color: var(--r25-muted); font-weight: 700; padding: 0.2em 0; }
.r25ch .r25-reportp > summary::-webkit-details-marker { display: none; }
.r25ch .r25-reportp > summary:hover, .r25ch .r25-reportp[open] > summary { color: #b42318; }
.r25ch .r25-reportp__form { position: absolute; z-index: 150; right: 0; top: calc(100% + 6px); width: min(320px, 86vw); display: grid; gap: 0.5rem; padding: 0.9rem; background: #fff; border: 1px solid var(--r25-border); border-top: 3px solid #b42318; border-radius: 12px; box-shadow: 0 20px 50px -15px rgba(6, 22, 41, 0.5); text-align: left; }
.r25ch .r25-player .r25-reportp { align-self: flex-end; margin-top: 0.25rem; }
.r25ch .r25-player .r25-reportp__form { right: 0; bottom: calc(100% + 6px); top: auto; }
.r25ch .r25-reportp__title { margin: 0; font-weight: 800; color: var(--r25-navy); }
.r25ch .r25-reportp__note { margin: 0; font-size: 0.78rem; color: var(--r25-muted); }
.r25ch .r25-reportp select, .r25ch .r25-reportp textarea { font-size: 0.9rem; }
.r25ch .r25-reportp .r25-btn { justify-self: start; background: #b42318; box-shadow: none; }
.r25ch .r25-challenge__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; }
.r25ch .r25-challenge__links .r25-chatlink { margin: 0; }
.r25ch .r25-thread__actions .r25-reportp { font-size: 0.85rem; }
.r25ch .r25-modnote { display: grid; gap: 0.25rem; padding: 0.9rem 1rem; border-radius: var(--r25-radius); margin: 0 0 1rem; }
.r25ch .r25-modnote strong { font-size: 1.05rem; }
.r25ch .r25-modnote form { margin: 0.4rem 0 0; }
.r25ch .r25-modnote--suspended { background: #fdecec; border: 1px solid #f1a9a9; color: #7f1d1d; }
.r25ch .r25-modnote--warning { background: #fff6d6; border: 1px solid #f2d27a; color: #6b4e00; }
/* Score + tries entry */
.r25ch .r25-scoregrid { display: grid; grid-template-columns: auto 6.5em; gap: 0.35rem 0.6rem; align-items: center; }
.r25ch .r25-respond .r25-scoregrid:has(input[name="my_tries"]) { grid-template-columns: auto 6.5em 5.5em; }
.r25ch .r25-scoregrid__h { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--r25-muted); text-align: center; }
.r25ch .r25-scoregrid__who { font-weight: 700; font-size: 0.9rem; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r25ch .r25-scoregrid input { width: 100%; font-size: 1.1em; font-weight: 800; text-align: center; padding: 0.45em 0.3em; }
.r25ch .r25-tries { font-size: 0.85rem; font-weight: 700; color: var(--r25-muted); white-space: nowrap; }

/* ---------- Help pages ---------- */
.r25ch .r25-helpnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; }
.r25ch .r25-helpnav a {
	padding: 7px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.92em;
	color: var(--r25-navy); box-shadow: inset 0 0 0 2px var(--r25-border);
}
.r25ch .r25-helpnav a:hover, .r25ch .r25-helpnav a:focus-visible { box-shadow: inset 0 0 0 2px var(--r25-teal); color: var(--r25-teal); }
.r25ch .r25-helpnav a.is-current { background: var(--r25-navy); color: #fff; box-shadow: none; }
.r25-lead { font-size: 1.15em; line-height: 1.55; }
.wp-block-image.r25-shot { margin: 1.25em 0 2em; }
.wp-block-image.r25-shot img {
	display: block; max-width: 100%; height: auto; border-radius: 12px;
	border: 1px solid rgba(10, 35, 66, 0.12); box-shadow: 0 10px 30px rgba(10, 35, 66, 0.10); background: #f1f6f9;
}
.wp-block-image.r25-shot figcaption { font-size: 0.88em; opacity: 0.75; text-align: left; }
.r25-callout {
	margin: 1.5em 0; padding: 14px 18px !important; border-radius: 12px;
	background: rgba(247, 197, 43, 0.14); border-left: 4px solid #f7c52b;
}
.r25-callout p { margin: 0; }
.r25ch .r25-pointstable { max-width: 560px; }
.r25ch .r25-pointstable td:last-child, .r25ch .r25-pointstable th:last-child { text-align: right; width: 90px; }

/* ---------- Screenshot uploads ---------- */
.r25ch .r25-evidence { display: grid; gap: 4px; margin: 8px 0; flex-basis: 100%; }
.r25ch .r25-evidence label { font-weight: 700; font-size: 0.9em; }
.r25ch .r25-evidence input[type=file] {
	font: inherit; font-size: 0.9em; padding: 8px; border: 2px dashed var(--r25-border); border-radius: 10px; background: #fff; max-width: 100%;
}
.r25ch .r25-evidence input[type=file]::file-selector-button {
	font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 6px 14px; margin-right: 10px;
	background: var(--r25-navy); color: #fff; cursor: pointer;
}
.r25ch .r25-evidence__hint { font-size: 0.82em; color: var(--r25-muted, #5b6b7f); }
.r25ch .r25-evadd { margin-top: 10px; }
.r25ch .r25-evadd summary { cursor: pointer; font-weight: 700; color: var(--r25-teal); font-size: 0.92em; }
.r25ch .r25-evadd__form { margin-top: 8px; }

/* ---------- Profile picture field ---------- */
.r25ch .r25-avatarfield__row { display: flex; gap: 14px; align-items: flex-start; }
.r25ch .r25-avatarfield__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--r25-teal); }
.r25ch .r25-avatarfield input[type=file] { font: inherit; font-size: 0.9em; max-width: 100%; }
.r25ch .r25-avatarfield input[type=file]::file-selector-button {
	font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 6px 14px; margin-right: 10px; background: var(--r25-navy); color: #fff; cursor: pointer;
}
.r25ch .r25-avatarfield small { display: block; margin-top: 4px; }

/* ---------- Open challenges ---------- */
.r25ch .r25-openform h3 { margin-top: 0; }
.r25ch .r25-openform .r25-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.r25ch .r25-open__who { display: inline-flex; align-items: center; gap: 10px; }
.r25ch .r25-open__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.r25ch .r25-open__now {
	display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75em; font-weight: 800; letter-spacing: 0.06em;
	text-transform: uppercase; background: #C8102E; color: #fff; animation: r25-pulse 1.6s ease-in-out infinite;
}
@keyframes r25-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .r25ch .r25-open__now { animation: none; } }
.r25ch .r25-open.is-now { border-left-color: #C8102E; }
.r25ch .r25-open__scope { font-weight: 600; }

/* ---------- Seasons ---------- */
.r25ch .r25-season { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.r25ch .r25-season__info { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--r25-navy); }
.r25ch .r25-season__info svg { width: 18px; height: 18px; color: #f7c52b; }
.r25ch .r25-season select { width: auto; max-width: 100%; font: inherit; font-weight: 600; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--r25-border); background: #fff; }
.r25ch .r25-champ { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; color: #d4a000; margin-left: 4px; }
.r25ch .r25-champ svg { width: 16px; height: 16px; }
.r25ch .r25-champ b { font-size: 0.72em; font-weight: 800; }


/* ---------- Small screens: long names, file inputs, narrow tables ---------- */
.r25ch { overflow-wrap: break-word; }
.r25ch .r25-handle, .r25ch .r25-open__who, .r25ch .r25-challenge__top strong, .r25ch .r25-results .t, .r25ch .r25-msg__body, .r25ch .r25-player__head strong { overflow-wrap: anywhere; min-width: 0; }
.r25ch .r25-open__who { flex-wrap: wrap; }
.r25ch .r25-challenge__top { flex-wrap: wrap; min-width: 0; }
.r25ch input[type=file] { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.r25ch .r25-avatarfield__row > div { flex: 1; min-width: 0; }
.r25ch .r25-evidence, .r25ch .r25-evidence__hint { min-width: 0; max-width: 100%; }
.r25ch .r25-reportp__form { max-width: calc(100vw - 2rem); box-sizing: border-box; }
@media (max-width: 560px) {
	/* Chat header: name on the first line, actions underneath. */
	.r25ch .r25-thread__actions { flex-basis: 100%; margin-left: 0; padding-left: 0.25rem; }
}
@media (max-width: 420px) {
	.r25ch .r25-results li { gap: 0.5rem; padding: 0.55rem 0.65rem; font-size: 0.94em; }
	.r25ch .r25-table .hide-xs { display: none; }
}
.r25ch .r25-msg__report .r25-btn, .r25ch .r25-reportmsg .r25-btn, .r25ch form .r25-btn--ghost[type=submit] { font-size: max(0.85rem, 0.82em); }
@media (max-width: 600px) {
	/* Report popovers open in place on phones instead of floating off the edge. */
	.r25ch .r25-reportp[open] .r25-reportp__form { position: static; width: auto; max-width: none; margin: 0.6rem 0 0.25rem; transform: none; left: auto; right: auto; }
}

/* Comfortable tap targets on touch screens (about 40px). */
@media (pointer: coarse), (max-width: 600px) {
	.r25ch .r25-btn--sm, .r25ch .r25-btn--ghost, .r25ch .r25-linkbtn, .r25ch .r25-reportp > summary, .r25ch .r25-evadd > summary {
		min-height: 40px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	}
	.r25ch .r25-reportp > summary, .r25ch .r25-evadd > summary { justify-content: flex-start; }
	.r25ch .r25-linkbtn { padding: 0 0.4rem; }
}
@media (max-width: 360px) {
	.r25ch .r25-results li { font-size: 0.86em; gap: 0.4rem; padding: 0.5rem; }
}
