/*
 * custom_hero (user request of 2026-10-26): What's New pages - black marble and gold, scoped to .chn so the tibiacom
 * layout (templates/tibiacom/basic.css) is not touched. No external resources: the marble and the Uncial Antiqua
 * font come from the tibiacom template of this site.
 */
@font-face {
	font-family: 'CH Uncial';
	src: url('../../../templates/tibiacom/fonts/UncialAntiqua-Regular.ttf') format('truetype');
	font-display: swap;
}

.chn {
	--g1: #fbefc3;
	--g2: #e7c56b;
	--g3: #b8903e;
	--g4: #6b4e1c;
	--ink: #0e0c0a;
	--ink2: #17130f;
	--ink3: #241d16;
	--txt: #f1e7d0;
	--mut: #c3b291;
	--line: rgba(231, 197, 107, .28);
	--marble: url('../../../templates/tibiacom/images/header/custom-hero-marble.png');
	--ease: cubic-bezier(.2, .8, .2, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	position: relative;
	font-family: Verdana, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.55;
	color: #3b2410;
	max-width: 1100px;
	margin: 0 auto;
}
.chn *, .chn *::before, .chn *::after { box-sizing: border-box; }
.chn p { margin: 0 0 8px; }
.chn small { font-size: 10px; }
.chn kbd {
	display: inline-block; padding: 0 5px; margin: 0 1px; border: 1px solid var(--g3); border-bottom-width: 2px;
	border-radius: 4px; background: var(--ink3); color: var(--g1); font: bold 10px Verdana, Arial, sans-serif;
}
.chn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; flex: none; }
.chn-gold { color: var(--g2); }
.chn-small { font-size: 11px; opacity: .85; }
.chn-center { text-align: center; }
.chn-game-name { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(231, 197, 107, .14); color: var(--mut); font-weight: normal; letter-spacing: .02em; }

/* ------------------------------------------------------------------ reveal on scroll (only with JavaScript) */
.chn-js .chn-reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.chn-js .chn-reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ navigation */
.chn-nav {
	display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 14px; border-radius: 12px;
	background: linear-gradient(180deg, rgba(14, 12, 10, .92), rgba(23, 19, 15, .96)), var(--marble);
	border: 1px solid var(--g4); box-shadow: inset 0 0 0 1px rgba(251, 239, 195, .08), 0 4px 14px rgba(40, 20, 0, .3);
}
.chn a.chn-nav-item {
	flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px;
	border-radius: 8px; color: var(--mut); font-weight: bold; font-size: 11px; text-decoration: none; white-space: nowrap;
	border: 1px solid transparent; transition: color .25s, background .25s, border-color .25s, transform .25s var(--spring);
}
.chn a.chn-nav-item:hover { color: var(--g1); background: rgba(231, 197, 107, .1); border-color: var(--line); transform: translateY(-1px); text-decoration: none; }
.chn a.chn-nav-item.is-active {
	color: #241505; background: linear-gradient(180deg, var(--g1), var(--g2) 55%, var(--g3));
	border-color: var(--g1); box-shadow: 0 0 14px rgba(231, 197, 107, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ------------------------------------------------------------------ hero */
.chn-hero {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 26px 26px 24px;
	margin-bottom: 18px; border-radius: 14px; color: var(--txt);
	background:
		radial-gradient(ellipse 80% 70% at 15% 0%, rgba(231, 197, 107, .2), transparent 60%),
		radial-gradient(ellipse 60% 80% at 100% 100%, rgba(120, 70, 20, .25), transparent 60%),
		linear-gradient(180deg, rgba(12, 10, 9, .78), rgba(12, 10, 9, .92)),
		var(--marble);
	border: 1px solid var(--g3);
	box-shadow: inset 0 0 0 1px rgba(251, 239, 195, .14), inset 0 0 60px rgba(0, 0, 0, .7), 0 10px 26px rgba(40, 20, 0, .4);
}
.chn-hero--kit {
	background:
		linear-gradient(90deg, rgba(10, 8, 7, .94) 30%, rgba(10, 8, 7, .55) 75%, rgba(10, 8, 7, .3)),
		var(--banner) right center / cover no-repeat,
		var(--marble);
}
.chn-hero::before {
	content: ''; position: absolute; top: -20%; left: -60%; width: 35%; height: 140%; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(255, 236, 170, .16), transparent);
	transform: skewX(-18deg); animation: chn-sweep 7s ease-in-out infinite;
}
.chn-hero::after {
	content: ''; position: absolute; inset: 7px; border-radius: 10px; pointer-events: none;
	border: 1px solid rgba(231, 197, 107, .22);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
}
.chn-hero-body { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; }
.chn-kicker {
	display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 20px; border: 1px solid var(--line);
	color: var(--g2); font-size: 10px; font-weight: bold; letter-spacing: .14em; text-transform: uppercase;
	background: rgba(231, 197, 107, .08);
}
.chn-title, .chn-h3, .chn-panel-title, .chn-card-title, .chn-group-title, .chn-title-card-name, .chn-soon-title {
	font-family: 'CH Uncial', Georgia, 'Times New Roman', serif; font-weight: normal; letter-spacing: .02em;
}
.chn-title {
	margin: 2px 0 8px; font-size: 30px; line-height: 1.15;
	background: linear-gradient(180deg, #fff6d8 10%, var(--g2) 55%, var(--g3) 95%); -webkit-background-clip: text; background-clip: text;
	color: transparent; text-shadow: 0 2px 18px rgba(231, 197, 107, .25); filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .8));
}
.chn-lead { max-width: 640px; font-size: 13px; color: var(--txt); }
.chn-hero-note { margin-top: 10px; color: var(--mut); }
.chn-hero-note b { color: var(--g1); }
.chn-hero-art { position: relative; z-index: 2; flex: none; image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(231, 197, 107, .45)); }
.chn-hero-crown { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; color: var(--g2);
	background: radial-gradient(circle, rgba(231, 197, 107, .25), transparent 70%); }
.chn-hero-crown .chn-icon { width: 76px; height: 76px; stroke-width: 1.3; }
.chn-float { animation: chn-float 4.5s ease-in-out infinite; }
.chn-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.chn-spark {
	position: absolute; bottom: -10px; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%;
	background: radial-gradient(circle, #fff6d0, var(--g2) 60%, transparent 70%); box-shadow: 0 0 6px var(--g2);
	opacity: 0; animation: chn-rise var(--t, 6s) linear infinite; animation-delay: var(--delay, 0s);
}

.chn-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chn-stat {
	flex: 1 1 110px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(231, 197, 107, .1), rgba(0, 0, 0, .25));
	transition: transform .3s var(--spring), border-color .3s, box-shadow .3s;
}
.chn-stat:hover { transform: translateY(-3px); border-color: var(--g2); box-shadow: 0 0 16px rgba(231, 197, 107, .3); }
.chn-stat b { display: block; font-size: 24px; line-height: 1.1; color: var(--g1); text-shadow: 0 0 12px rgba(231, 197, 107, .5); }
.chn-stat span { font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }

/* ------------------------------------------------------------------ chips, pills, buttons */
.chn-chip {
	display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11px;
	border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--txt); white-space: nowrap;
}
.chn-chip b { color: var(--g1); font-size: 13px; }
.chn-chip--gold { border-color: rgba(231, 197, 107, .55); background: linear-gradient(180deg, rgba(231, 197, 107, .2), rgba(80, 55, 15, .35)); }
.chn-chip--dark { background: var(--ink2); }
.chn-rates-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.chn-rates-ribbon--panel { margin: 4px 0 12px; }
.chn-rates-ribbon-label { margin-right: 4px; color: var(--g2); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .12em; }
.chn-pill {
	display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 10px; line-height: 16px; white-space: nowrap;
	background: rgba(231, 197, 107, .16); color: var(--g1); border: 1px solid rgba(231, 197, 107, .3);
}
.chn-pill--dim { background: rgba(255, 255, 255, .05); color: var(--mut); border-color: rgba(255, 255, 255, .1); }
.chn-pill--warn { background: rgba(229, 72, 77, .18); color: #ffb3b5; border-color: rgba(229, 72, 77, .4); }
.chn-pill--fire { background: rgba(255, 106, 58, .2); color: #ffc0a8; border-color: rgba(255, 106, 58, .45); }
.chn-pill--ice { background: rgba(122, 232, 255, .16); color: #c8f6ff; border-color: rgba(122, 232, 255, .4); }
.chn-pill--energy { background: rgba(192, 122, 255, .18); color: #e3c8ff; border-color: rgba(192, 122, 255, .45); }
/* PLAN-0016 frente A: elements of the free spells */
.chn-pill--earth { background: rgba(90, 255, 122, .14); color: #c4f5c8; border-color: rgba(90, 255, 122, .38); }
.chn-pill--physical { background: rgba(216, 208, 192, .14); color: #ece4d4; border-color: rgba(216, 208, 192, .38); }
/* M105 (ADR-0164): the tiers of the outfit and mount bonuses, the colors of the client (game_outfit_bonuses) */
.chn-tier--common { background: rgba(180, 180, 180, .14); color: #d6d6d6; border-color: rgba(180, 180, 180, .4); }
.chn-tier--uncommon { background: rgba(95, 211, 95, .14); color: #9ee89e; border-color: rgba(95, 211, 95, .42); }
.chn-tier--rare { background: rgba(90, 160, 255, .16); color: #a9cbff; border-color: rgba(90, 160, 255, .45); }
.chn-tier--epic { background: rgba(194, 124, 255, .16); color: #dcb8ff; border-color: rgba(194, 124, 255, .45); }
.chn-tier--legendary { background: rgba(255, 165, 60, .18); color: #ffc98a; border-color: rgba(255, 165, 60, .5); }
/* M109 (ADR-0169): the images of the bonuses page: the outfit or mount beside its name, the addon preview and the items of a
   recipe or of a taming as chips (item image, count, name) */
.chn-look { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; flex: none; }
.chn-look--small { width: 40px; height: 40px; }
.chn-recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.chn-recipe-label { color: var(--g1); font-weight: bold; min-width: 56px; }
.chn-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.chn-chip img { width: 32px; height: 32px; image-rendering: pixelated; }
/* M227 (kiki20072/custom_hero_prod#347): in a recipe of The Outfitter, the item only bosses drop and the gold */
.chn-recipe .chn-chip--boss { border-color: rgba(255, 179, 92, .6); background: rgba(255, 179, 92, .12); }
.chn-recipe .chn-chip--gold { border-color: rgba(231, 197, 107, .55); background: rgba(231, 197, 107, .12); }
.chn-chip-tag { font-style: normal; font-size: 10px; color: #ffb35c; text-transform: uppercase; letter-spacing: .06em; }
/* M228 (kiki20072/custom_hero_prod#348): a part of a recipe as in Tibia or adapted */
.chn-kind { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 10px; text-transform: uppercase; letter-spacing: .06em; }
.chn-kind--standard { color: #9be29b; border: 1px solid rgba(155, 226, 155, .5); }
.chn-kind--adapted { color: #ffb35c; border: 1px solid rgba(255, 179, 92, .5); }
/* M230 (kiki20072/custom_hero_prod#353): the parts won by killing a boss */
.chn-kind--kill { color: #ff8f8f; border: 1px solid rgba(255, 143, 143, .5); }

.chn .chn-btn {
	position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
	border-radius: 8px; border: 1px solid var(--g1); cursor: pointer; font: bold 12px Verdana, Arial, sans-serif; color: #241505;
	background: linear-gradient(180deg, var(--g1), var(--g2) 50%, var(--g3));
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 4px 12px rgba(184, 144, 62, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
	transition: transform .2s var(--spring), box-shadow .25s, filter .25s;
}
.chn .chn-btn::after {
	content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; transform: skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transition: left .6s var(--ease);
}
.chn .chn-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 20px rgba(231, 197, 107, .6), inset 0 1px 0 rgba(255, 255, 255, .7); }
.chn .chn-btn:hover:not(:disabled)::after { left: 130%; }
.chn .chn-btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.chn .chn-btn:disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.7); }
.chn .chn-btn--ghost { color: var(--g1); background: rgba(231, 197, 107, .08); border-color: var(--line); box-shadow: none; padding: 5px 12px; font-size: 11px; }
.chn .chn-btn--ghost:hover:not(:disabled) { background: rgba(231, 197, 107, .18); box-shadow: 0 0 12px rgba(231, 197, 107, .3); }
.chn-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .55); pointer-events: none; animation: chn-ripple .6s ease-out forwards; }

/* ------------------------------------------------------------------ headings */
.chn-heading { margin: 26px 0 12px; text-align: center; }
.chn-heading-kicker { display: block; color: var(--g3); font-size: 10px; font-weight: bold; letter-spacing: .2em; text-transform: uppercase; }
.chn-h3 {
	margin: 2px 0 4px; font-size: 22px; line-height: 1.2; color: #4a2c0c;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 0 18px rgba(231, 197, 107, .35);
}
.chn-ornament { display: inline-flex; align-items: center; gap: 6px; }
.chn-ornament i { display: block; width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--g3)); }
.chn-ornament i:last-child { transform: scaleX(-1); }
.chn-ornament b { display: block; width: 9px; height: 9px; transform: rotate(45deg); background: linear-gradient(135deg, var(--g1), var(--g3)); box-shadow: 0 0 8px rgba(184, 144, 62, .8); }
.chn-reveal.is-in .chn-ornament i { animation: chn-grow .9s var(--ease) both; }

/* ------------------------------------------------------------------ panels */
.chn-panel, .chn-group, .chn-rule, .chn-step, .chn-callout, .chn-soon, .chn-card, .chn-journey-step, .chn-update {
	position: relative; color: var(--txt); border-radius: 12px;
	background: linear-gradient(180deg, rgba(23, 19, 15, .93), rgba(12, 10, 9, .97)), var(--marble);
	border: 1px solid var(--g4);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(251, 239, 195, .07), 0 8px 20px rgba(40, 20, 0, .28);
}
.chn-panel { padding: 16px 18px; margin-bottom: 14px; }
.chn-panel::before, .chn-group::before {
	content: ''; position: absolute; inset: 5px; pointer-events: none; border-radius: 8px;
	background:
		linear-gradient(var(--g3), var(--g3)) top left / 14px 2px no-repeat,
		linear-gradient(var(--g3), var(--g3)) top left / 2px 14px no-repeat,
		linear-gradient(var(--g3), var(--g3)) top right / 14px 2px no-repeat,
		linear-gradient(var(--g3), var(--g3)) top right / 2px 14px no-repeat,
		linear-gradient(var(--g3), var(--g3)) bottom left / 14px 2px no-repeat,
		linear-gradient(var(--g3), var(--g3)) bottom left / 2px 14px no-repeat,
		linear-gradient(var(--g3), var(--g3)) bottom right / 14px 2px no-repeat,
		linear-gradient(var(--g3), var(--g3)) bottom right / 2px 14px no-repeat;
	opacity: .8;
}
.chn-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.chn-panel-title { font-size: 18px; color: var(--g1); }
.chn-panel p { color: var(--txt); }

.chn-callout { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 14px 0; border-left: 4px solid #e5484d; }
.chn-callout--gold { border-left-color: var(--g2); }
.chn-callout b { display: block; margin-bottom: 4px; color: var(--g1); font-size: 13px; }
.chn-callout p { color: var(--txt); }
.chn-callout-icon {
	display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: #ffd5d6;
	background: radial-gradient(circle, rgba(229, 72, 77, .45), rgba(229, 72, 77, .1)); box-shadow: 0 0 16px rgba(229, 72, 77, .4);
	animation: chn-pulse 2.4s ease-in-out infinite;
}
.chn-callout .chn-chip b { display: inline; margin: 0; }
.chn-callout .chn-rates-ribbon { margin: 8px 0; }
.chn-callout--gold .chn-callout-icon { color: #fff3c9; background: radial-gradient(circle, rgba(231, 197, 107, .5), rgba(231, 197, 107, .1)); box-shadow: 0 0 16px rgba(231, 197, 107, .45); }

/* ------------------------------------------------------------------ feature cards (overview) */
.chn-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.chn-cards > * { flex: 1 1 230px; min-width: 0; }
.chn a.chn-card {
	--mx: 50%; --my: 0%;
	display: flex; flex-direction: column; gap: 8px; padding: 18px; overflow: hidden; text-decoration: none; color: var(--txt); font-weight: normal;
	border-color: color-mix(in srgb, var(--accent) 40%, var(--g4));
	transition: transform .35s var(--spring), box-shadow .35s, border-color .35s;
}
.chn a.chn-card:hover {
	transform: translateY(-6px); text-decoration: none; color: var(--txt); border-color: var(--accent);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 14px 30px rgba(40, 20, 0, .45), 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
}
.chn-card-glow {
	position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%);
}
.chn a.chn-card:hover .chn-card-glow { opacity: 1; }
.chn-card-icon {
	display: grid; place-items: center; width: 66px; height: 66px; border-radius: 16px; color: var(--accent);
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
	transition: transform .5s var(--spring);
}
.chn-card-icon img { image-rendering: pixelated; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.chn-card-icon--svg .chn-icon { width: 42px; height: 42px; stroke-width: 1.5; filter: drop-shadow(0 0 8px var(--accent)); }
.chn a.chn-card:hover .chn-card-icon { transform: rotate(-6deg) scale(1.12); }
.chn-card-stat b { font-size: 34px; line-height: 1; color: var(--accent); text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
.chn-card-stat small { margin-left: 6px; color: var(--mut); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.chn-card-title { font-size: 19px; color: var(--g1); }
.chn-card-text { flex: 1 1 auto; color: var(--txt); }
.chn-card-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: bold; }
.chn-card-cta .chn-icon { transition: transform .3s var(--spring); }
.chn a.chn-card:hover .chn-card-cta .chn-icon { transform: translateX(5px); }

/* ------------------------------------------------------------------ journey */
.chn-journey { position: relative; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.chn-journey > * { flex: 1 1 130px; min-width: 0; }
.chn-journey-step { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; text-align: center; align-items: center; }
.chn-journey-step b { color: var(--g1); font-size: 13px; }
.chn-journey-dot {
	display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 50%; color: var(--accent);
	border: 2px solid var(--accent); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), var(--ink));
	box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.chn-journey-step.is-in .chn-journey-dot { animation: chn-pop .7s var(--spring) both; animation-delay: calc(var(--d, 0s) + .2s); }
.chn-journey-dot .chn-icon { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ steps and rules */
.chn-steps { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 6px; list-style: none; }
.chn-step { display: flex; flex-direction: column; gap: 5px; padding: 16px 14px 14px 14px; transition: transform .3s var(--spring), border-color .3s, box-shadow .3s; }
.chn-step:hover, .chn-rule:hover { transform: translateY(-4px); border-color: var(--g3); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 20px rgba(231, 197, 107, .25); }
.chn-step b { color: var(--g1); font-size: 13px; }
.chn-step-num {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: bold; color: #241505;
	background: linear-gradient(180deg, var(--g1), var(--g3)); box-shadow: 0 0 12px rgba(231, 197, 107, .5);
}
.chn-rules { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
/* PLAN-0012: the cards fill every row, so no card stands alone with a blank area beside it: the cards of a short last
   row grow to the full width, and 4 cards make 2 rows of 2 */
.chn-steps > *, .chn-rules > * { flex: 1 1 190px; min-width: 0; }
.chn-steps:has(> :last-child:nth-child(4)) > *, .chn-rules:has(> :last-child:nth-child(4)) > * { flex-basis: 40%; }
.chn-rule { padding: 16px 14px 12px; border-top: 3px solid var(--accent); transition: transform .3s var(--spring), border-color .3s, box-shadow .3s; }
.chn-rule b { display: block; margin: 6px 0 4px; color: var(--g1); font-size: 13px; }
.chn-rule p { color: var(--txt); }
.chn-rule-icon {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--accent);
	background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ------------------------------------------------------------------ tables */
.chn .chn-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; margin: 4px 0 8px; }
.chn .chn-table th { padding: 4px 8px; background: none; color: var(--g2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.chn .chn-table td { padding: 8px; color: var(--txt); font-size: 12px; background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(231, 197, 107, .12); border-bottom: 1px solid rgba(231, 197, 107, .12); }
.chn .chn-table td:first-child { border-left: 3px solid var(--accent, var(--g3)); border-radius: 6px 0 0 6px; }
.chn .chn-table td:last-child { border-radius: 0 6px 6px 0; }
.chn .chn-table tr:hover td { background: rgba(231, 197, 107, .1); }
.chn-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ------------------------------------------------------------------ number fields and footers */
.chn .chn-sim-level-input, .chn .chn-sim-row input[type=number], .chn .chn-rc-number {
	width: 72px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--ink);
	color: var(--g1); font: bold 12px Verdana, Arial, sans-serif; text-align: right;
}
.chn-calc-foot, .chn-sim-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

/* ------------------------------------------------------------------ resets (PLAN-0005) */
.chn-chip-plus { margin-left: 4px; padding: 0 6px; border-radius: 10px; font-style: normal; font-weight: bold; font-size: 10px; color: #241505; background: var(--accent, #ff8a3d); }
.chn a.chn-link { display: inline-flex; align-items: center; gap: 4px; color: var(--g1); font-weight: bold; text-decoration: none; border-bottom: 1px dashed var(--g3); }
.chn a.chn-link:hover { color: #fff; text-decoration: none; border-bottom-color: var(--g1); }
.chn a.chn-link .chn-icon { transition: transform .3s var(--spring); }
.chn a.chn-link:hover .chn-icon { transform: translateX(4px); }
.chn-hero--resets { background:
	radial-gradient(ellipse 70% 80% at 85% 40%, rgba(255, 138, 61, .28), transparent 60%),
	radial-gradient(ellipse 80% 70% at 15% 0%, rgba(231, 197, 107, .2), transparent 60%),
	linear-gradient(180deg, rgba(12, 10, 9, .78), rgba(12, 10, 9, .92)), var(--marble); }
.chn-hero--resets .chn-hero-art { filter: drop-shadow(0 0 22px rgba(255, 138, 61, .65)); }
.chn-formula {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; margin-bottom: 8px; text-align: center;
	border-radius: 14px; color: var(--txt); border: 1px solid var(--g3);
	background: radial-gradient(ellipse at center, rgba(255, 138, 61, .2), transparent 70%), linear-gradient(180deg, rgba(23, 19, 15, .95), rgba(12, 10, 9, .98)), var(--marble);
	box-shadow: inset 0 0 0 1px rgba(251, 239, 195, .1), 0 8px 20px rgba(40, 20, 0, .3);
}
.chn-formula-label { color: var(--g2); font-size: 10px; font-weight: bold; letter-spacing: .16em; text-transform: uppercase; }
.chn-bonus-cards { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.chn-bonus-cards > * { flex: 1 1 170px; min-width: 0; }
.chn-bonus-card {
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border-radius: 12px; text-align: center;
	border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
	background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 26%, transparent), rgba(0, 0, 0, .4) 70%);
	transition: transform .3s var(--spring), box-shadow .3s;
}
.chn-bonus-card:hover { transform: translateY(-4px); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 45%, transparent); }
.chn-bonus-value { font-size: 28px; line-height: 1.1; color: #fff; text-shadow: 0 0 14px var(--accent); }
.chn-bonus-name { color: var(--accent); font-weight: bold; }
.chn-bonus-card small { color: var(--mut); }
.chn-formula .chn-rates-ribbon { justify-content: center; }
.chn-compare-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.chn-compare-grid > * { flex: 1 1 250px; min-width: 0; }
.chn-compare-grid .chn-panel { border-top: 3px solid var(--accent); margin-bottom: 0; }
.chn-checks { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 6px; }
.chn-checks li { position: relative; padding: 6px 8px 6px 30px; border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--txt); }
.chn-checks li::before {
	content: '✓'; position: absolute; left: 7px; top: 5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
	font-size: 10px; font-weight: bold; color: #10230f; background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.chn-checks--change li::before { content: '↻'; color: #2a1204; }
.chn-reset-num {
	display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font-weight: bold; color: #241505;
	background: linear-gradient(180deg, #ffc58a, #ff8a3d); box-shadow: 0 0 10px rgba(255, 138, 61, .5);
}
.chn-js .chn-reset-table:not(.is-open) .chn-row-more { display: none; }
.chn-reset-table.is-open .chn-row-more td { animation: chn-fade-up .45s var(--ease) both; }
.chn-timeline { position: relative; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 10px 0; list-style: none; }
.chn-timeline > * { flex: 1 1 190px; min-width: 0; }
.chn-timeline-step {
	display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; color: var(--txt);
	border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, rgba(0, 0, 0, .3));
}
.chn-timeline-step b { color: var(--accent); font-size: 13px; }
.chn-timeline-dot {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: bold; color: #1d1204;
	background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.chn-timeline-dot .chn-icon { width: 16px; height: 16px; }
.chn-rc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.chn-rc-inputs .chn-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.chn-rc-inputs .chn-field > span { grid-column: 1 / -1; }
.chn-rc-out { display: flex; flex-wrap: wrap; gap: 10px; }
.chn-rc-out > * { flex: 1 1 140px; min-width: 0; }
.chn-rc-box {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; text-align: center;
	border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(ellipse at center, rgba(231, 197, 107, .12), rgba(0, 0, 0, .35) 70%);
}
.chn-rc-box small { color: var(--mut); text-transform: uppercase; letter-spacing: .06em; font-size: 9px; }
.chn-rc-box > b { font-size: 26px; line-height: 1.15; color: var(--g1); text-shadow: 0 0 12px rgba(231, 197, 107, .55); }
.chn-rc-rate { border-color: rgba(255, 138, 61, .65); background: radial-gradient(ellipse at center, rgba(255, 138, 61, .3), rgba(0, 0, 0, .35) 70%); }
.chn-rc-rate > b { color: #ffd9b0; text-shadow: 0 0 16px rgba(255, 138, 61, .9); }
.chn-rc-rate.is-bump > b { animation: chn-bump .45s var(--spring); }
.chn-burst { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 220, 160, .9), rgba(255, 138, 61, .35) 40%, transparent 70%); }
.chn-burst.is-on { animation: chn-burst .9s ease-out both; }
.chn-rc-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.chn-rc-bar { position: relative; flex: 1 1 220px; height: 12px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
.chn-rc-bar i { position: relative; display: block; height: 100%; width: 0; border-radius: 7px; overflow: hidden; background: linear-gradient(90deg, var(--g3), var(--g1)); box-shadow: 0 0 10px var(--g2); transition: width .5s var(--spring); }
.chn-rc-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: chn-shimmer 2.4s ease-in-out infinite; }
.chn-rc.is-ready .chn-rc-bar i { background: linear-gradient(90deg, #c4561c, #ffc58a); box-shadow: 0 0 14px #ff8a3d; }
.chn-rc-status { color: var(--g1); font-weight: bold; font-size: 11px; }
.chn-rc.is-ready .chn-rc-try:not(:disabled) { animation: chn-pulse 1.6s ease-in-out infinite; }
.chn .chn-rc-try { border-color: var(--accent); background: linear-gradient(180deg, #fff, var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #000)); }
.chn-rc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.chn-rc-bonus {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 12px; text-align: center;
	border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, rgba(0, 0, 0, .35));
}
.chn-rc-bonus.is-bump .chn-rc-bonus-rate { animation: chn-bump .45s var(--spring); }
.chn-rc-bonus-name { color: var(--accent); font-weight: bold; }
.chn-rc-bonus-name em { font-style: normal; color: #fff; }
.chn-rc-bonus small { color: var(--mut); font-size: 10px; }
.chn-rc-stepper { display: inline-flex; align-items: center; gap: 4px; }
.chn .chn-rc-stepper .chn-btn { padding: 2px 10px; font-size: 14px; }
.chn-rc-bonus-rate { display: inline-block; font-size: 24px; color: #fff; text-shadow: 0 0 12px var(--accent); }
.chn .chn-rc-try.is-denied { animation: chn-shake .35s ease; }

/* range inputs */
.chn .chn-range {
	-webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 6px 0; border-radius: 6px; cursor: pointer;
	background: linear-gradient(90deg, var(--accent, var(--g2)) var(--p, 0%), rgba(255, 255, 255, .1) var(--p, 0%));
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); outline: none;
}
.chn .chn-range::-webkit-slider-thumb {
	-webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #2a1a06;
	background: radial-gradient(circle at 35% 35%, #fff8dc, var(--g2) 55%, var(--g3)); box-shadow: 0 0 10px rgba(231, 197, 107, .8);
	transition: transform .2s var(--spring);
}
.chn .chn-range:active::-webkit-slider-thumb { transform: scale(1.25); }
.chn .chn-range::-moz-range-thumb {
	width: 16px; height: 16px; border-radius: 50%; border: 2px solid #2a1a06;
	background: radial-gradient(circle at 35% 35%, #fff8dc, var(--g2) 55%, var(--g3)); box-shadow: 0 0 10px rgba(231, 197, 107, .8);
}
.chn .chn-range:focus-visible { box-shadow: 0 0 0 2px var(--g2); }

/* ------------------------------------------------------------------ attribute groups (wiki) */
.chn-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.chn-group { padding: 14px 14px 10px; border-top: 3px solid var(--accent); transition: box-shadow .35s, transform .35s var(--spring); }
.chn-group:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 26px color-mix(in srgb, var(--accent) 35%, transparent); }
.chn-group-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.chn-group-head p { margin: 4px 0 0; color: var(--mut); font-size: 11px; }
.chn-group-icon {
	display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; color: var(--accent);
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), rgba(0, 0, 0, .3));
	border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.chn-group-icon img { image-rendering: pixelated; }
.chn-group-icon .chn-icon { width: 26px; height: 26px; }
.chn-group-title { font-size: 17px; color: var(--accent); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent); }
.chn-attr-list { padding: 0; margin: 0; list-style: none; }
.chn-attr {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 6px 8px; margin: 2px 0;
	border-radius: 6px; border-left: 2px solid transparent; cursor: help; transition: background .2s, border-color .2s, transform .2s;
}
.chn-attr:hover, .chn-attr:focus { background: color-mix(in srgb, var(--accent) 14%, transparent); border-left-color: var(--accent); transform: translateX(3px); outline: none; }
.chn-attr-name { font-weight: bold; color: var(--txt); }
.chn-attr-meta { display: flex; flex-wrap: wrap; gap: 4px; }

/* ------------------------------------------------------------------ attribute simulator */
.chn-sim-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.chn-sim-level { flex: 1 1 260px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; color: var(--g1); font-weight: bold; }
.chn-sim-level > span { grid-column: 1 / -1; }
.chn .chn-sim-level .chn-range { --accent: var(--g2); }
.chn-orb {
	position: relative; display: grid; place-items: center; align-content: center; width: 118px; height: 118px; border-radius: 50%;
	text-align: center; color: var(--g1);
	background: radial-gradient(circle at 35% 30%, rgba(255, 246, 216, .35), rgba(231, 197, 107, .18) 40%, rgba(0, 0, 0, .6) 75%);
	border: 2px solid var(--g3); box-shadow: 0 0 24px rgba(231, 197, 107, .4), inset 0 0 20px rgba(0, 0, 0, .7);
	animation: chn-breathe 3.2s ease-in-out infinite;
}
.chn-orb-value { font-size: 26px; line-height: 1; text-shadow: 0 0 14px rgba(231, 197, 107, .8); }
.chn-orb span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.chn-orb small { font-size: 9px; color: var(--mut); }
.chn-orb.is-empty { border-color: #e5484d; box-shadow: 0 0 24px rgba(229, 72, 77, .45), inset 0 0 20px rgba(0, 0, 0, .7); }
.chn-orb.is-bump { animation: chn-bump .35s var(--spring); }
.chn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chn .chn-tab {
	position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
	border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: rgba(0, 0, 0, .35); color: var(--txt);
	font: bold 11px Verdana, Arial, sans-serif; transition: background .2s, border-color .2s, transform .2s var(--spring), box-shadow .2s;
}
.chn .chn-tab img { width: 20px; height: 20px; image-rendering: pixelated; }
.chn .chn-tab:hover { transform: translateY(-2px); border-color: var(--accent); }
.chn .chn-tab.is-active { background: color-mix(in srgb, var(--accent) 22%, rgba(0, 0, 0, .4)); border-color: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
.chn-tab-badge { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #111; font-size: 9px; line-height: 16px; text-align: center; }
.chn-tab-badge:empty { display: none; }
/* PLAN-0012: test phase notice of every page */
.chn-test {
	display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; color: var(--txt);
	background: linear-gradient(180deg, rgba(60, 34, 8, .95), rgba(28, 16, 6, .97)), var(--marble);
	border: 1px solid #c9822a; box-shadow: 0 0 18px rgba(255, 150, 40, .25), inset 0 0 0 1px rgba(255, 210, 140, .1);
}
.chn-test b { display: block; margin-bottom: 4px; color: #ffcf7a; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.chn-test p { margin: 2px 0; color: var(--txt); font-size: 12px; line-height: 1.6; }
.chn-test-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #ffcf7a; background: rgba(255, 160, 50, .16); border: 1px solid rgba(255, 180, 80, .45); }
/* PLAN-0012: screenshots of the client and galleries */
.chn-shot { margin: 10px 0 16px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(23, 19, 15, .93), rgba(12, 10, 9, .97)); border: 1px solid var(--g4); box-shadow: 0 6px 18px rgba(40, 20, 0, .35); }
.chn-shot img { display: block; width: 100%; height: auto; border-radius: 8px; image-rendering: auto; }
.chn-shot figcaption { padding: 8px 4px 2px; color: var(--txt); font-size: 11px; line-height: 1.5; text-align: center; }
.chn-split { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.chn-split > * { flex: 1 1 260px; min-width: 0; }
.chn-split > .chn-shot { flex-basis: 100%; }
.chn-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .chn-gallery { grid-template-columns: 1fr; } }
.chn-scenery { margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--g4); background: linear-gradient(180deg, rgba(23, 19, 15, .93), rgba(12, 10, 9, .97)); color: var(--txt); }
.chn-scenery img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.chn-scenery figcaption { padding: 8px 10px 10px; font-size: 11px; line-height: 1.5; }
.chn-scenery figcaption b { display: block; margin-bottom: 2px; color: var(--g1); font-size: 13px; }
.chn-cmd { font-family: Consolas, 'Courier New', monospace; color: #ffe08a; white-space: nowrap; }
.chn-list { margin: 6px 0; padding-left: 18px; color: var(--txt); line-height: 1.6; }
.chn-list li { margin: 2px 0; }
.chn a.chn-rule { display: block; text-decoration: none; cursor: pointer; }

/* PLAN-0012: spell icons of the client (sheet of 32x32 icons, one per clientId) */
.chn-icon-cell { width: 40px; }
.chn-spell-icon { display: inline-block; width: 32px; height: 32px; border-radius: 6px; background-image: url(../images/spells/spell-icons-32x32.png); background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 8px rgba(231, 197, 107, .25); vertical-align: middle; }

/* PLAN-0012: pager of the long lists (adapter items, spells) */
.chn-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 4px; }
.chn-pager[hidden] { display: none; }
.chn-pager .chn-tab[disabled] { opacity: .35; cursor: default; transform: none; }
.chn-pager-label { min-width: 120px; text-align: center; font: bold 11px Verdana, Arial, sans-serif; color: var(--txt); }
.chn-sim-group { padding: 8px 10px; margin-bottom: 8px; border-radius: 8px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--txt); font-size: 11px; }
.chn-sim-row {
	display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(120px, 2fr) auto minmax(90px, auto); align-items: center; gap: 4px 10px;
	padding: 6px 8px; margin: 3px 0; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.chn-sim-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chn-sim-row.is-on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chn-sim-row.chn-shake-row { animation: chn-shake .35s ease; }
.chn-sim-name { font-weight: bold; color: var(--txt); }
.chn-sim-name small { display: block; color: var(--mut); font-weight: normal; }
.chn-sim-effect { text-align: right; font-weight: bold; color: var(--accent); white-space: nowrap; text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent); }
.chn-sim-effect.is-bump { animation: chn-bump .3s var(--spring); }
.chn-sim-message { color: #ffb3b5; font-size: 11px; }
.chn-build { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.chn-build-title { display: block; margin-bottom: 6px; color: var(--g2); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.chn-build-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chn-build-chip {
	display: inline-flex; gap: 5px; align-items: center; padding: 3px 9px; border-radius: 14px; font-size: 11px; color: var(--txt);
	border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent);
	animation: chn-pop .4s var(--spring) both;
}
.chn-build-chip b { color: var(--accent); }

/* ------------------------------------------------------------------ daily reward */
.chn-days { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.chn-days-line { position: absolute; left: 4%; right: 4%; top: 50%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); z-index: 0; }
.chn-days-line i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--g3), var(--g1)); box-shadow: 0 0 10px var(--g2); transition: width 1.6s var(--ease); }
.chn-reward.is-in .chn-days-line i { width: 100%; }
.chn .chn-day {
	position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 4px; cursor: pointer;
	border-radius: 12px; border: 1px solid var(--g4); color: var(--txt); font: 11px Verdana, Arial, sans-serif;
	background: linear-gradient(180deg, #221b14, #100d0b); box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
	transition: transform .3s var(--spring), border-color .3s, box-shadow .3s;
}
.chn-js .chn-reward:not(.is-in) .chn-day { opacity: 0; transform: translateY(16px) scale(.9); }
.chn-reward.is-in .chn-day { animation: chn-pop .6s var(--spring) both; animation-delay: var(--d, 0s); }
.chn .chn-day:hover { transform: translateY(-4px); border-color: var(--g3); }
.chn .chn-day.is-active { border-color: var(--g1); box-shadow: 0 0 0 1px var(--g2), 0 0 22px rgba(231, 197, 107, .55); background: linear-gradient(180deg, #3a2c17, #15100a); }
.chn .chn-day--xp { border-color: #8a5a1a; }
.chn-day-num { color: var(--g2); font-weight: bold; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.chn-day-amount { color: var(--txt); font-size: 10px; text-align: center; line-height: 1.25; min-height: 26px; }
.chn-day-items { position: relative; display: block; width: 52px; height: 36px; }
.chn-day-items img { position: absolute; top: 2px; left: calc(var(--i) * 10px); image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); transition: transform .3s var(--spring); }
.chn .chn-day:hover .chn-day-items img { transform: translateY(calc(var(--i) * -2px - 2px)) rotate(calc((var(--i) - 1) * 8deg)); }
.chn-day-svg { display: grid; place-items: center; width: 36px; height: 36px; color: #c07aff; filter: drop-shadow(0 0 6px #c07aff); }
.chn-day-svg .chn-icon { width: 28px; height: 28px; }
.chn-day-svg--xp { color: #ffb347; filter: drop-shadow(0 0 8px #ffb347); animation: chn-flicker 2.2s ease-in-out infinite; }
.chn-js .chn-day-detail:not(.is-active) { display: none; }
.chn-day-detail { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); margin-bottom: 8px; }
.chn-day-detail.is-active { animation: chn-fade-up .45s var(--ease) both; }
.chn-day-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.chn-day-detail-title { color: var(--g1); font-size: 14px; }
.chn-compare { display: inline-flex; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: 10px; }
.chn-compare span { padding: 3px 9px; }
.chn-picker-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.chn-picker-bar { flex: 1 1 160px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
.chn-picker-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g3), var(--g1)); box-shadow: 0 0 10px var(--g2); transition: width .35s var(--spring); }
.chn-picker.is-full .chn-picker-bar i { background: linear-gradient(90deg, #3aa35b, #8affb0); box-shadow: 0 0 12px #5aff7a; }
.chn-picker-text { color: var(--g1); font-weight: bold; font-size: 11px; }
.chn-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.chn .chn-item {
	position: relative; display: grid; place-items: center; height: 46px; padding: 0; cursor: pointer; border-radius: 8px;
	border: 1px solid rgba(231, 197, 107, .25); background: radial-gradient(circle, #2b2219, #120f0c);
	transition: transform .2s var(--spring), border-color .2s, box-shadow .2s;
}
.chn .chn-item img { image-rendering: pixelated; transition: transform .25s var(--spring); }
.chn .chn-item:hover { transform: translateY(-3px); border-color: var(--g2); box-shadow: 0 0 14px rgba(231, 197, 107, .45); }
.chn .chn-item:hover img { transform: scale(1.15); }
.chn .chn-item.is-picked { border-color: var(--g1); box-shadow: 0 0 0 1px var(--g2), 0 0 16px rgba(231, 197, 107, .6); background: radial-gradient(circle, #4a3816, #15100a); }
.chn .chn-item.is-pop img { animation: chn-bump .35s var(--spring); }
.chn .chn-item.is-denied { animation: chn-shake .35s ease; }
.chn-item-count { position: absolute; right: 2px; bottom: 1px; min-width: 15px; padding: 0 3px; border-radius: 7px; background: var(--g2); color: #1b1004; font-size: 9px; font-weight: bold; line-height: 14px; }
.chn-item-count:empty { display: none; }
.chn-big-reward {
	display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; margin: 6px 0; border-radius: 12px;
	color: var(--accent); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
}
.chn-big-reward .chn-icon { width: 46px; height: 46px; filter: drop-shadow(0 0 10px var(--accent)); animation: chn-float 3s ease-in-out infinite; }
.chn-big-reward b { font-size: 36px; color: var(--g1); text-shadow: 0 0 16px var(--accent); }
.chn-big-reward span { color: var(--txt); font-size: 13px; }

.chn-streak-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 10px 0 12px; }
.chn-streak-flame { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--g1); background: radial-gradient(circle, rgba(231, 197, 107, .45), transparent 70%); animation: chn-breathe 3s ease-in-out infinite; }
.chn-streak-value { color: var(--g1); font-size: 14px; white-space: nowrap; }
.chn-ladder { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; }
.chn-rung {
	display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .3); color: var(--mut); filter: grayscale(.9); opacity: .55;
	transition: filter .4s, opacity .4s, border-color .4s, box-shadow .4s, transform .4s var(--spring);
}
.chn-rung.is-on { filter: none; opacity: 1; color: var(--txt); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.chn-rung.is-new { animation: chn-pop .5s var(--spring); }
.chn-rung-level { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: bold; font-size: 15px; color: var(--accent); border: 2px solid var(--accent); background: rgba(0, 0, 0, .4); }
.chn-rung-body b { display: block; color: var(--accent); }
.chn-rung-state { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; }
.chn-rung.is-on .chn-rung-state { color: var(--accent); }

/* ------------------------------------------------------------------ titles */
.chn-title-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 0; margin: 0 0 14px; list-style: none; }
.chn .chn-title-badge {
	--hue: calc(40 + var(--tier) * 0);
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 10px 4px 8px; cursor: pointer;
	border-radius: 10px; color: var(--txt); font: bold 11px Verdana, Arial, sans-serif;
	border: 1px solid rgba(231, 197, 107, calc(.2 + var(--tier) * .6));
	background: linear-gradient(180deg, rgba(231, 197, 107, calc(.05 + var(--tier) * .25)), rgba(0, 0, 0, .55));
	box-shadow: 0 0 calc(var(--tier) * 16px) rgba(231, 197, 107, calc(var(--tier) * .45));
	transition: transform .3s var(--spring), box-shadow .3s, border-color .3s;
}
.chn-js .chn-titles:not(.is-in) .chn-title-badge { opacity: 0; transform: scale(.8); }
.chn-titles.is-in .chn-title-badge { animation: chn-pop .55s var(--spring) both; animation-delay: var(--d, 0s); }
.chn .chn-title-badge:hover { transform: translateY(-4px) scale(1.04); }
.chn .chn-title-badge.is-active { border-color: var(--g1); box-shadow: 0 0 0 1px var(--g2), 0 0 24px rgba(231, 197, 107, .7); background: linear-gradient(180deg, #5a4214, #160f07); }
.chn-title-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #241505; font-size: 11px; background: linear-gradient(180deg, var(--g1), var(--g3)); }
/* Title names are game data: a plain serif keeps them readable (the uncial H looks like a D). */
.chn-title-name { font-family: Georgia, 'Times New Roman', serif; font-weight: bold; font-size: 12px; letter-spacing: .02em; color: var(--g1); }
.chn-title-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(ellipse at top left, rgba(231, 197, 107, .15), transparent 60%), rgba(0, 0, 0, .3); }
.chn-title-card.is-swap { animation: chn-fade-up .45s var(--ease); }
.chn-title-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.chn-title-card-head > div { flex: 1 1 auto; }
.chn-title-medal { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--g2); border: 2px solid var(--g3); background: radial-gradient(circle, rgba(231, 197, 107, .3), rgba(0, 0, 0, .6)); box-shadow: 0 0 20px rgba(231, 197, 107, .45); }
.chn-title-medal .chn-icon { width: 34px; height: 34px; }
.chn-title-medal-rank { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g2); color: #1d1204; font-size: 11px; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.chn .chn-title-card-name { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: bold; font-size: 24px; letter-spacing: .03em; color: var(--g1); text-shadow: 0 0 16px rgba(231, 197, 107, .45); }
.chn-title-card-sub { color: var(--mut); }
.chn-meters { display: grid; gap: 10px; }
.chn-meter { display: grid; grid-template-columns: 180px 1fr 240px; align-items: center; gap: 10px; }
.chn-meter-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: bold; }
.chn-meter-bar { height: 12px; border-radius: 7px; background: rgba(255, 255, 255, .08); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
.chn-meter-bar i { position: relative; display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #000), var(--accent)); box-shadow: 0 0 12px var(--accent); transition: width .8s var(--spring); overflow: hidden; }
.chn-meter-bar i::after, .chn-chart-bar i::after, .chn-picker-bar i::after {
	content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-100%); animation: chn-shimmer 2.4s ease-in-out infinite;
}
.chn-picker-bar i { position: relative; overflow: hidden; }
.chn-meter-value { color: var(--txt); font-weight: bold; text-align: right; white-space: nowrap; }
.chn-chart { display: grid; gap: 4px; }
.chn-chart-row { display: grid; grid-template-columns: minmax(90px, .8fr) 2fr 2fr; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 6px; transition: background .2s; }
.chn-chart-row:not(.chn-chart-row--head):hover { background: rgba(231, 197, 107, .08); }
.chn-chart-row--head { color: var(--g2); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; }
.chn-chart-name { font-family: Georgia, 'Times New Roman', serif; font-weight: bold; color: var(--g1); }
.chn-chart-cell { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 6px; }
.chn-chart-cell b { color: var(--txt); text-align: right; font-size: 11px; }
.chn-chart-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.chn-chart-bar i { position: relative; display: block; height: 100%; width: 0; border-radius: 6px; overflow: hidden; transition: width 1.1s var(--ease); transition-delay: var(--d, 0s); }
.chn-chart-bar--regen i { background: linear-gradient(90deg, #a8272b, #e5484d 50%, #3e8cff); box-shadow: 0 0 8px rgba(229, 72, 77, .6); }
.chn-chart-bar--soul i { background: linear-gradient(90deg, #5b3a8f, #b07cff); box-shadow: 0 0 8px rgba(176, 124, 255, .6); }
/* PLAN-0016 frente C: the maximum soul column of the titles chart */
.chn-chart--4 .chn-chart-row { grid-template-columns: minmax(90px, .8fr) 2fr 2fr 2fr; }
.chn-chart-bar--soulmax i { background: linear-gradient(90deg, #7a4fae, #d8a8ff); box-shadow: 0 0 8px rgba(216, 168, 255, .6); }
/* PLAN-0041: the stamina column of the titles chart, the items of a title and the steps of the progression */
.chn-chart--5 .chn-chart-row { grid-template-columns: minmax(90px, .8fr) 2fr 2fr 2fr 2.2fr; }
.chn-chart--5 .chn-chart-cell:last-child { grid-template-columns: 1fr 78px; }
.chn-chart-bar--stamina i { background: linear-gradient(90deg, #a8701c, #ffb84a); box-shadow: 0 0 8px rgba(255, 184, 74, .6); }
.chn-title-needs { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.chn-title-needs-head { display: block; color: var(--g1); font-size: 12px; margin-bottom: 6px; }
.chn-title-needs-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chn-title-needs-list li, .chn-step-item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--txt); font-size: 11px; }
.chn-title-needs-list b, .chn-step-item b { color: var(--g1); }
/* M188 (ERR-0838): only the progression of the titles (the panel .chn-title-steps of titles.html.twig); without the scope these
   two rules also changed the steps of the other pages (the rules of the "steps and rules" section above). :where() keeps the
   specificity of the old unscoped rules, so the titles look the same. */
:where(.chn-title-steps) .chn-steps { margin: 10px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
:where(.chn-title-steps) .chn-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.chn-step-name { min-width: 96px; font-family: Georgia, 'Times New Roman', serif; color: var(--g1); }
.chn-step-store { color: #ff9df0; font-weight: bold; font-size: 11px; }
.chn-regen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.chn-field { display: flex; flex-direction: column; gap: 4px; color: var(--g1); font-weight: bold; font-size: 11px; }
.chn-field small { color: var(--mut); font-weight: normal; }
.chn .chn-select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); color: var(--g1); font: bold 12px Verdana, Arial, sans-serif; }
.chn-toggle { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.chn .chn-toggle-option { flex: 1 1 50%; padding: 6px 8px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .35); color: var(--mut); font: bold 10px Verdana, Arial, sans-serif; transition: background .25s, color .25s; }
.chn .chn-toggle-option.is-active { color: #1d1204; background: linear-gradient(180deg, var(--g1), var(--g2)); }
.chn-regen-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.chn-regen-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 22%, transparent), rgba(0, 0, 0, .35) 70%); }
.chn-regen-box > span { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: bold; }
.chn-regen-box b { font-size: 30px; color: var(--g1); text-shadow: 0 0 14px var(--accent); }
.chn-regen-box b.is-bump { animation: chn-bump .35s var(--spring); }
.chn-regen-box small { color: var(--mut); }
.chn-regen-box.is-off b { color: var(--mut); text-shadow: none; }
.chn-regen-box.is-double { box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent); }
.chn-regen-note { margin-top: 10px; min-height: 16px; color: var(--g1); text-align: center; }
.chn-soon {
	display: flex; align-items: center; gap: 16px; padding: 20px; overflow: hidden; border-style: dashed; border-color: var(--g3);
}
.chn-soon p { color: var(--txt); }
.chn-soon-title { display: block; font-size: 22px; color: var(--g1); }
.chn-soon-lock { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; color: var(--g2); border: 2px dashed var(--g3); background: radial-gradient(circle, rgba(231, 197, 107, .25), transparent 70%); animation: chn-wobble 3.5s ease-in-out infinite; }
.chn-soon-lock .chn-icon { width: 30px; height: 30px; }
.chn-soon-shine { position: absolute; top: 0; left: -40%; width: 30%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 236, 170, .12), transparent); animation: chn-sweep 5s ease-in-out infinite; pointer-events: none; }

/* ------------------------------------------------------------------ starter kit */
.chn-kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.chn .chn-kit-item {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; text-align: center;
	border-radius: 12px; color: var(--txt); font: 11px Verdana, Arial, sans-serif;
	background: linear-gradient(180deg, rgba(23, 19, 15, .95), rgba(12, 10, 9, .98)), var(--marble);
	border: 1px solid var(--g4); box-shadow: 0 6px 14px rgba(40, 20, 0, .3);
	transition: transform .3s var(--spring), border-color .3s, box-shadow .3s;
}
.chn .chn-kit-item:hover, .chn .chn-kit-item:focus-visible { transform: translateY(-4px); border-color: var(--g3); box-shadow: 0 0 18px rgba(231, 197, 107, .35); outline: none; }
.chn .chn-kit-choice { cursor: pointer; }
.chn .chn-kit-choice.is-selected { border-color: var(--g1); box-shadow: 0 0 0 1px var(--g2), 0 0 26px rgba(231, 197, 107, .65); background: linear-gradient(180deg, rgba(74, 56, 22, .95), rgba(18, 13, 8, .98)), var(--marble); }
.chn .chn-kit-choice.is-selected::after {
	content: '✓'; position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	background: linear-gradient(180deg, var(--g1), var(--g3)); color: #1d1204; font-weight: bold; box-shadow: 0 0 10px rgba(231, 197, 107, .8);
	animation: chn-pop .4s var(--spring);
}
.chn-kit-choices.has-choice .chn-kit-choice:not(.is-selected) { filter: brightness(.62) saturate(.55); }
.chn-kit-choices.has-choice .chn-kit-choice:not(.is-selected):hover { filter: none; }
.chn .chn-kit-choice { padding-top: 24px; }
.chn-kit-kind { position: absolute; top: 6px; left: 8px; color: var(--g3); font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; }
.chn-kit-slot {
	position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px;
	background: radial-gradient(circle, #2f251a, #0f0c0a); border: 1px solid rgba(231, 197, 107, .35); box-shadow: inset 0 0 10px rgba(0, 0, 0, .8);
}
.chn-kit-slot img { image-rendering: pixelated; transition: transform .35s var(--spring); }
.chn .chn-kit-item:hover .chn-kit-slot img { transform: scale(1.2) rotate(-6deg); }
.chn-kit-slot em { position: absolute; right: 3px; bottom: 1px; color: #fff; font-style: normal; font-weight: bold; font-size: 10px; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.chn-kit-slot--empty { color: var(--g3); font-size: 22px; font-weight: bold; border-style: dashed; animation: chn-breathe 2.6s ease-in-out infinite; }
.chn-kit-name { color: var(--g1); font-size: 12px; }
.chn-kit-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
/* PLAN-0016 frente A: the free spells (macros.html.twig freeSpells) */
.chn-free-group { margin: 14px 0 6px; }
.chn-free-group:first-child { margin-top: 4px; }
.chn-free-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.chn-free-icons { display: flex; gap: 6px; }
.chn .chn-free-spell .chn-small { color: var(--mut); }
.chn-kit-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.chn-kit-chest { position: relative; display: grid; place-items: center; width: 130px; height: 130px; flex: none; }
.chn-kit-chest-img { image-rendering: pixelated; width: 112px; height: 112px; filter: drop-shadow(0 0 16px rgba(231, 197, 107, .5)); transition: transform .4s var(--spring); }
.chn-kit-summary.is-ready .chn-kit-chest-img { animation: chn-wobble 1.8s ease-in-out infinite; }
.chn-kit-summary.is-open .chn-kit-chest-img { animation: chn-open .9s var(--spring) both; }
.chn-kit-burst { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 240, 180, .9), rgba(231, 197, 107, .35) 40%, transparent 70%); }
.chn-kit-summary.is-open .chn-kit-burst { animation: chn-burst 1s ease-out both; }
.chn-kit-summary-body { flex: 1 1 240px; }
.chn-kit-picked { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.chn-kit-picked-slot { display: flex; align-items: center; gap: 8px; color: var(--mut); font-weight: bold; }
.chn-kit-picked-slot.is-filled .chn-kit-slot { border-color: var(--g1); box-shadow: 0 0 14px rgba(231, 197, 107, .55); animation: chn-pop .45s var(--spring); }
.chn-kit-picked-slot.is-filled > span:last-child { color: var(--g1); }
.chn-kit-weight { color: var(--txt); }
.chn-kit-weight b { color: var(--g1); }
.chn-kit-message { color: var(--g1); }
.chn-fly { position: fixed; z-index: 9999; width: 32px; height: 32px; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 0 8px rgba(231, 197, 107, .9)); }
.chn-confetti { position: absolute; width: 6px; height: 10px; border-radius: 2px; pointer-events: none; animation: chn-confetti 1.2s ease-out forwards; }

/* ------------------------------------------------------------------ updates (user request of 2026-10-31, updates.html.twig) */
.chn-updates { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0 0 8px; list-style: none; }
.chn-update {
	display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-left: 4px solid var(--accent);
	transition: transform .3s var(--spring), border-color .3s, box-shadow .3s;
}
.chn-update:hover { transform: translateX(4px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.chn-update-body { flex: 1 1 auto; min-width: 0; }
.chn-update-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.chn-update-head b { color: var(--g1); font-size: 13px; }
.chn-update p { color: var(--txt); }
.chn-update-where { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(231, 197, 107, .12); }
.chn-update-label { display: block; color: var(--accent); font-size: 10px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.chn-update-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.chn-update-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.chn-update-pills .chn-pill { white-space: normal; }
.chn-pill--done { background: rgba(90, 255, 122, .14); color: #c4f5c8; border-color: rgba(90, 255, 122, .38); }
.chn-pill--later { background: rgba(255, 179, 71, .16); color: #ffd9a3; border-color: rgba(255, 179, 71, .4); }
.chn-pill--untested { background: rgba(160, 160, 170, .14); color: #d6d6de; border-color: rgba(160, 160, 170, .4); }
.chn-update-later { border-style: dashed; }
.chn-progress-list { list-style: none; padding-left: 0; }
.chn-progress-list li { margin: 6px 0; }
.chn-progress-list b { color: var(--g1); }
.chn code { padding: 0 4px; border-radius: 4px; background: rgba(231, 197, 107, .14); color: var(--g1); font-size: 11px; }

/* ------------------------------------------------------------------ next page */
.chn a.chn-next {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 24px 0 4px; padding: 12px 16px;
	border-radius: 12px; text-decoration: none; color: var(--g1); font-weight: bold;
	background: linear-gradient(90deg, transparent, rgba(23, 19, 15, .9) 40%), var(--marble);
	border: 1px solid var(--g4); transition: border-color .3s, box-shadow .3s;
}
.chn a.chn-next:hover { text-decoration: none; color: var(--g1); border-color: var(--g2); box-shadow: 0 0 20px rgba(231, 197, 107, .35); }
.chn-next-label { color: var(--mut); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.chn-next-page { display: inline-flex; align-items: center; gap: 6px; font-family: 'CH Uncial', Georgia, serif; font-weight: normal; font-size: 16px; }
.chn a.chn-next > .chn-icon { transition: transform .3s var(--spring); }
.chn a.chn-next:hover > .chn-icon { transform: translateX(6px); }

/* ------------------------------------------------------------------ tooltip */
.chn-tooltip {
	position: fixed; z-index: 10000; max-width: 260px; padding: 6px 10px; border-radius: 8px; pointer-events: none;
	color: #f6ecd6; font: 11px/1.45 Verdana, Arial, sans-serif; background: rgba(14, 12, 10, .96); border: 1px solid #b8903e;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .6), 0 0 12px rgba(231, 197, 107, .25);
	opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.chn-tooltip.is-on { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ narrow content column (small windows, phones) */
@media (max-width: 1100px) {
	.chn-title { font-size: 24px; }
	.chn-hero { padding: 20px 18px; }
	.chn-hero-art { display: none; }
	.chn-sim-row { grid-template-columns: 1fr auto; }
	.chn-sim-row .chn-range { grid-column: 1 / -1; grid-row: 2; }
	.chn-meter { grid-template-columns: 1fr auto; }
	.chn-meter-bar { grid-column: 1 / -1; grid-row: 2; }
	.chn-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.chn-days-line { display: none; }
	.chn-chart-row { grid-template-columns: 80px 1fr 1fr; gap: 6px; }
	.chn-chart--4 .chn-chart-row { grid-template-columns: 80px 1fr 1fr 1fr; }
	.chn-chart--5 .chn-chart-row { grid-template-columns: 80px 1fr 1fr; }
	.chn-groups { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ keyframes */
@keyframes chn-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes chn-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes chn-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translateY(-260px) translateX(var(--x, 0px)) scale(1); opacity: 0; } }
@keyframes chn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes chn-breathe { 0%, 100% { box-shadow: 0 0 14px rgba(231, 197, 107, .3), inset 0 0 20px rgba(0, 0, 0, .7); } 50% { box-shadow: 0 0 28px rgba(231, 197, 107, .6), inset 0 0 20px rgba(0, 0, 0, .7); } }
@keyframes chn-pop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes chn-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes chn-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes chn-grow { from { transform: scaleX(0); } }
@keyframes chn-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes chn-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(200%); } }
@keyframes chn-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .75; } 50% { opacity: 1; } 55% { opacity: .8; } }
@keyframes chn-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
@keyframes chn-open { 0% { transform: scale(1); } 30% { transform: scale(.85, 1.1); } 60% { transform: scale(1.2) translateY(-6px); } 100% { transform: scale(1.05); } }
@keyframes chn-burst { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes chn-ripple { to { transform: scale(3.2); opacity: 0; } }
@keyframes chn-confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.chn *, .chn *::before, .chn *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.chn-js .chn-reveal { opacity: 1; transform: none; }
}

/* custom_hero (PLAN-0021): the off-hand choices greyed out while a monk weapon is chosen. */
.chn-kit-choices.is-locked .chn-kit-choice {
	opacity: .35;
	cursor: not-allowed;
	filter: grayscale(.6);
}

/* custom_hero (M188, kiki20072/custom_hero_prod#288, ADR-0222): the quick tutorial at the top of a page (macro chn.quick):
   numbered cards side by side, two per row on a narrow screen, one on a phone; the screenshots of a page in a grid. */
.chn-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.chn-quick-item { position: relative; padding-top: 18px; }
.chn-quick-num {
	position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
	font-weight: bold; font-size: 11px; color: #241505; background: linear-gradient(180deg, var(--g1), var(--g3));
	box-shadow: 0 0 10px rgba(231, 197, 107, .45);
}
.chn-quick-item p { font-size: 12px; line-height: 1.55; }
.chn-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.chn-shots .chn-shot { margin: 0; }
.chn-table-scroll { overflow-x: auto; }

/* custom_hero (kiki20072/custom_hero_prod#327, user request of 2026-11-21): the outfit and mount bonus cards of
   /whats-new/outfit-bonuses. One block per part (an outfit: the base, the 1st addon, the 2nd addon, both addons; a mount:
   owned, ridden), each value in a chip with its label beside its bonus type, the "+" and "=" between the blocks. The layout
   follows the width of the card (container queries): stacked on a phone, the two addons side by side, then the four blocks
   in one row on a wide column. */
.chn-ob-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.chn .chn-ob-legend p { flex: 1 1 220px; margin: 0; font-size: 11px; color: var(--txt); }
.chn-ob-legend .chn-ob-val { margin-right: 4px; }
.chn-ob-list { display: grid; gap: 12px; margin-top: 10px; }
.chn-ob-list--mounts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.chn-ob-card {
	container-type: inline-size; min-width: 0; padding: 10px 12px 12px; border-radius: 10px; color: var(--txt);
	border: 1px solid rgba(231, 197, 107, .2); border-left: 3px solid var(--tier, var(--g3)); background: rgba(255, 255, 255, .035);
}
.chn-ob-card--common { --tier: #d6d6d6; }
.chn-ob-card--uncommon { --tier: #9ee89e; }
.chn-ob-card--rare { --tier: #a9cbff; }
.chn-ob-card--epic { --tier: #dcb8ff; }
.chn-ob-card--legendary { --tier: #ffc98a; }
.chn-ob-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.chn-ob-name { color: var(--g1); font-size: 14px; }
.chn-ob-parts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.chn-ob-part {
	position: relative; min-width: 0; margin: 0; padding: 8px 10px 10px; border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .08); border-top: 2px solid var(--part, var(--g3)); background: rgba(0, 0, 0, .32);
}
.chn-ob-part--base, .chn-ob-part--empty { --part: #8a8a8a; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.chn-ob-part--addon { --part: var(--g2); }
.chn-ob-part--total { --part: #ffb347; background: linear-gradient(180deg, rgba(255, 179, 71, .13), rgba(0, 0, 0, .32) 60%); }
.chn-ob-part--owned { --part: #8fe88a; }
.chn-ob-part--ridden { --part: #ffd54a; }
.chn-ob-part-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--g1); font-size: 12px; font-weight: bold; }
.chn-ob-part--base .chn-ob-part-head { margin: 0; }
.chn-ob-part-look { width: 40px; height: 40px; margin: -6px 0 -4px -4px; object-fit: contain; image-rendering: pixelated; flex: none; }
.chn .chn-ob-part-note { margin: -4px 0 6px; color: var(--mut); font-size: 10px; }
.chn .chn-ob-none { margin: 0; color: var(--mut); font-size: 11px; }
.chn-ob-rows { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chn-ob-row { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.chn-ob-type { flex: 1 0 100%; color: var(--txt); font-size: 11px; font-weight: bold; }
.chn-ob-val {
	display: inline-flex; align-items: baseline; gap: 5px; padding: 1px 8px; border-radius: 10px; border: 1px solid;
	font-size: 9px; font-weight: bold; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.chn-ob-val b { color: #fff; font-size: 12px; letter-spacing: 0; text-transform: none; }
.chn-ob-val--always { color: #a8f0a4; border-color: rgba(143, 232, 138, .42); background: rgba(143, 232, 138, .1); }
.chn-ob-val--worn { color: #ffe08a; border-color: rgba(255, 213, 74, .48); background: rgba(255, 213, 74, .12); }
/* the "+" and "=" between the blocks: on the top edge while they are stacked, on the left edge side by side */
.chn-ob-part[data-join]::before {
	content: attr(data-join); position: absolute; z-index: 1; top: -19px; left: 50%; transform: translateX(-50%);
	display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
	font: bold 14px/1 Verdana, Arial, sans-serif; color: #241505; background: linear-gradient(180deg, var(--g1), var(--g3));
	box-shadow: 0 0 8px rgba(231, 197, 107, .5);
}
@container (min-width: 430px) {
	.chn-ob-parts--outfit, .chn-ob-parts--mount { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chn-ob-parts--outfit > .chn-ob-part--base, .chn-ob-parts--outfit > .chn-ob-part--total, .chn-ob-parts--outfit > .chn-ob-part--empty { grid-column: 1 / -1; }
	.chn-ob-part--addon[data-join]::before, .chn-ob-part--ridden[data-join]::before { top: 50%; left: -19px; transform: translateY(-50%); }
}
@container (min-width: 760px) {
	.chn-ob-parts--outfit { grid-template-columns: minmax(96px, .5fr) repeat(3, minmax(0, 1fr)); }
	.chn-ob-parts--outfit > .chn-ob-part--base, .chn-ob-parts--outfit > .chn-ob-part--total { grid-column: auto; }
	.chn-ob-parts--outfit > .chn-ob-part--base { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
	.chn-ob-parts--outfit > .chn-ob-part--base .chn-ob-part-head { margin-bottom: 6px; }
	.chn-ob-part--total[data-join]::before { top: 50%; left: -19px; transform: translateY(-50%); }
}
.chn-ob-how { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(231, 197, 107, .22); }
.chn-ob-how > .chn-recipe { flex: 1 0 100%; margin-top: 2px; }
.chn-ob-how-label { color: var(--g2); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.chn-ob-notes { margin: 10px 0 0; padding-left: 18px; color: var(--txt); font-size: 11px; }
.chn-ob-notes li { margin-bottom: 3px; }
