/* ============================================================================
   play-room.css — the full-screen ROOM shell + the Character Screen rooms
   (docs/design/profile-and-screen-shell.md). A room is a destination scene:
   per-tab backdrop (crossfaded), gold title plate, ribbon tab rail, and the
   action bar still docked (the room sits BELOW it in z-order). The art is the
   BASE layer — readability comes from local scrims, never a page-wide film.
   ============================================================================ */

.tpq-room {
	position: fixed;
	inset: 0;
	/* Below the action bar (160) so the HUD stays docked + tappable; above the hub. */
	z-index: 150;
	display: flex;
	flex-direction: column;
	color: var(--text, #e8e6f0);
	opacity: 0;
	transition: opacity 0.24s ease;
}
.tpq-room.is-open { opacity: 1; }
.tpq-room.no-motion { transition: none; }
body.tpq-room-open { overflow: hidden; }
/* The test-only "Preview as prod" floating toggle has no business inside a room. */
body.tpq-room-open .view-as-prod-toggle { display: none; }

/* --- Backdrop: two art layers crossfade per tab; scrim is LOCAL ------------- */
.tpq-room-backdrop { position: absolute; inset: 0; overflow: hidden; }
.tpq-room-art {
	position: absolute;
	inset: 0;
	background: #0b0a12 center / cover no-repeat;
	image-rendering: pixelated; /* room art is wide pixel-art shown at/above size */
	opacity: 0;
	transition: opacity 0.22s ease;
	transform: scale(1.02);
}
.tpq-room-art.is-showing { opacity: 1; }
.tpq-room.no-motion .tpq-room-art { transition: none; transform: none; }
/* Per-room hue wash (§8) — a TINT, not a dimmer; plus a top fade for the plate
   and a bottom fade to seat the stage against the action bar. */
.tpq-room-scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 7, 13, 0.5) 0%, transparent 18%),
		linear-gradient(0deg, rgba(8, 7, 13, 0.62) 0%, transparent 26%),
		radial-gradient(120% 90% at 50% 58%, transparent 40%, var(--room-hue, rgba(20, 16, 34, 0.22)) 100%);
}
/* Fallback stage colors per tab — visible until/unless the art loads (§8 hues). */
.tpq-room[data-room-tab="character"]   { --room-hue: rgba(64, 42, 14, 0.30); }
.tpq-room[data-room-tab="skilltree"]   { --room-hue: rgba(38, 28, 84, 0.34); }
.tpq-room[data-room-tab="companions"]  { --room-hue: rgba(28, 52, 30, 0.32); }
.tpq-room[data-room-tab="collection"]  { --room-hue: rgba(58, 44, 14, 0.32); }
.tpq-room[data-room-tab="titles"]      { --room-hue: rgba(66, 18, 22, 0.32); }
.tpq-room[data-room-tab="resorts"]     { --room-hue: rgba(18, 40, 66, 0.32); }

/* --- Head: back ‹ + engraved gold title plate + ✕ --------------------------- */
.tpq-room-head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: calc(0.5rem + var(--play-safe-top, 0px)) 0.7rem 0.15rem;
}
.tpq-room-back,
.tpq-room-x {
	flex: 0 0 auto;
	min-width: 44px;
	min-height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.4);
	background: rgba(10, 9, 16, 0.62);
	color: var(--wow-gold-bright, #e7c97a);
	font: inherit;
	font-size: 1.2rem;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.08s;
}
.tpq-room-back:hover,
.tpq-room-x:hover { border-color: rgba(241, 196, 15, 0.75); background: rgba(20, 17, 30, 0.8); }
.tpq-room-back:active,
.tpq-room-x:active { transform: translateY(1px); }
.tpq-room-plate {
	flex: 0 1 auto;
	min-width: 0;
	padding: 0.3rem 1.3rem 0.35rem;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.5);
	background:
		linear-gradient(180deg, rgba(34, 28, 16, 0.88), rgba(16, 13, 9, 0.92));
	box-shadow:
		inset 0 1px 0 rgba(255, 226, 130, 0.18),
		0 10px 30px -12px rgba(0, 0, 0, 0.8);
}
.tpq-room-title {
	display: block;
	font-family: "Cinzel", "Inter", serif;
	font-weight: 700;
	font-size: clamp(0.95rem, 2.6vw, 1.25rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wow-gold-bright, #e7c97a);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 0 18px rgba(231, 201, 122, 0.25);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- Ribbon tab rail --------------------------------------------------------- */
.tpq-room-rail {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 0.3rem;
	justify-content: center;
	flex-wrap: nowrap;
	/* Never let the flex column squeeze the rail: it's a flex child, and once its
	   overflow is non-visible its automatic min-size collapses to 0 — so on a short
	   viewport the column shrank it below the 44px chips and overflow-y:hidden sheared
	   their bottoms off. Pin it to its content height. */
	flex: 0 0 auto;
	overflow-x: auto;
	/* overflow-x:auto forces overflow-y to `auto`; keep it hidden and give symmetric
	   vertical padding that exceeds the active tab's glow so nothing clips. */
	overflow-y: hidden;
	scrollbar-width: none;
	padding: 0.8rem 0.6rem 0.8rem;
}
.tpq-room-rail::-webkit-scrollbar { display: none; }
.tpq-room-tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	min-height: 44px;
	min-width: 44px;
	padding: 0.35rem 0.7rem;
	border-radius: 11px;
	border: 1px solid rgba(201, 162, 77, 0.28);
	background: rgba(10, 9, 16, 0.6);
	color: var(--text-muted, #9aa4b2);
	font: inherit;
	font-weight: 700;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tpq-room-tab:hover { color: var(--text, #fff); border-color: rgba(201, 162, 77, 0.55); }
.tpq-room-tab.is-active {
	background: linear-gradient(180deg, rgba(201, 162, 77, 0.3), rgba(201, 162, 77, 0.08));
	border-color: rgba(241, 196, 15, 0.75);
	color: var(--wow-gold-bright, #e7c97a);
	box-shadow: 0 0 10px rgba(231, 201, 122, 0.28), inset 0 1px 0 rgba(255, 226, 130, 0.22);
}
.tpq-room-tab-glyph { font-size: 0.95rem; line-height: 1; }
/* Narrow phones: glyph-first chips so all six stay one-tap without scrolling. */
@media (max-width: 480px) {
	.tpq-room-rail { justify-content: flex-start; }
	.tpq-room-tab { padding: 0.32rem 0.5rem; font-size: 0.72rem; }
	.tpq-room-tab:not(.is-active) .tpq-room-tab-label { display: none; }
}

/* --- Stage: the per-tab content region --------------------------------------- */
.tpq-room-stage {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}
.tpq-room-stagebody {
	flex: 1 1 auto;
	min-height: 0;
	width: min(880px, 100%);
	margin: 0 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	/* Bottom clearance = action bar + the now-playing/next-up chip riding above it,
	   so the last stage row can always scroll clear of the docked HUD. */
	padding: 0.4rem 0.75rem calc(3.6rem + var(--tpq-bar-h, 86px));
	opacity: 1;
	transition: opacity 0.2s ease;
}
.tpq-room-stagebody.is-swapping { opacity: 0.15; }
.tpq-room.no-motion .tpq-room-stagebody { transition: none; }

/* Content readability INSIDE the stage: panels/cards keep their own dark cards
   (local readability), so no global film is needed over the art. */
.tpq-room-stagebody > .play-meta:first-child { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

/* ============================================================================
   P1 — Character marquee ("Hero's Hall"): plate · paper-doll · power · XP rail
   ============================================================================ */
.char-sheet--room { display: flex; flex-direction: column; gap: 0.7rem; }

/* Identity title plate */
.char-room-plate {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.3rem 0.7rem;
	padding: 0.45rem 0.9rem;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.45);
	background: linear-gradient(180deg, rgba(26, 21, 12, 0.82), rgba(13, 11, 8, 0.88));
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.14);
}
.char-sheet--room .char-name { margin: 0; font-size: 1.02rem; }
.char-sheet--room .char-streak { margin: 0; }

/* Season-pass badge showcase strip on the identity plate (season-pass Part D). */
.char-season-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.45rem;
}
.char-season-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.22rem;
	padding: 0.16rem 0.5rem;
	border-radius: 999px;
	font-size: 0.66rem;
	font-weight: 700;
	color: #2a1c05;
	background: linear-gradient(90deg, #ffce5a, #ff9e5e);
	border: 1px solid rgba(255, 224, 122, 0.7);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Paper-doll: slot rails flank the spotlit model */
.char-doll {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(216px, 1.2fr) minmax(0, 1fr);
	gap: 0.6rem;
	align-items: center;
}
.char-doll-rail { display: flex; flex-direction: column; gap: 0.42rem; }
.char-doll-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}
/* The plinth: a local spotlight pool + dais under the model — the focal read. */
.char-sheet--room .char-model-stage {
	position: relative;
	padding: 0.9rem 0.9rem 1.3rem;
	border-radius: 16px;
	background:
		radial-gradient(70% 58% at 50% 38%, rgba(255, 236, 170, 0.2), transparent 70%),
		radial-gradient(90% 30% at 50% 96%, rgba(231, 201, 122, 0.3), transparent 75%),
		rgba(8, 7, 13, 0.32);
	border: 1px solid rgba(201, 162, 77, 0.3);
	box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.45);
}
.char-sheet--room .char-model-stage::after {
	/* the dais ellipse the hero stands on */
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: 0.55rem;
	height: 0.85rem;
	border-radius: 50%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(231, 201, 122, 0.4), rgba(231, 201, 122, 0.06) 80%);
	filter: blur(1px);
	pointer-events: none;
}
.char-sheet--room .char-model-sprite { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.65)); }
/* The emoji avatar editor shrinks to a chip (the model is the portrait now). */
.char-sheet--room .has-model ~ .char-portrait,
.char-sheet--room .char-portrait-col.has-model .char-portrait {
	width: auto;
	height: auto;
	padding: 0.22rem 0.6rem;
	border-radius: 999px;
	font-size: 0.78rem;
}
.char-sheet--room .char-portrait-col.has-model .char-portrait .char-portrait-emoji { font-size: 1rem; }
.char-sheet--room .char-portrait-col.has-model .char-portrait .char-portrait-level { display: none; }

/* Power Rating badge (with equip delta pop) */
.char-power-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	position: relative;
	padding: 0.32rem 0.95rem;
	border-radius: 999px;
	border: 1px solid rgba(241, 196, 15, 0.55);
	background: linear-gradient(180deg, rgba(60, 48, 18, 0.85), rgba(26, 21, 10, 0.9));
	box-shadow: 0 0 16px rgba(231, 201, 122, 0.22), inset 0 1px 0 rgba(255, 226, 130, 0.2);
}
.char-power-badge-label {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted, #9aa4b2);
}
.char-power-badge-val {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--wow-gold-bright, #e7c97a);
	font-variant-numeric: tabular-nums;
}
.char-power-badge-sub { font-size: 0.68rem; color: var(--text-muted, #9aa4b2); }
.char-power-delta {
	position: absolute;
	top: -0.4rem;
	right: -0.3rem;
	font-size: 0.82rem;
	font-weight: 800;
	pointer-events: none;
	animation: char-power-delta 1.5s ease-out forwards;
}
.char-power-delta.is-up { color: #7bed9f; }
.char-power-delta.is-down { color: #ff7f7f; }
@keyframes char-power-delta {
	0% { opacity: 0; transform: translateY(6px) scale(0.8); }
	18% { opacity: 1; transform: translateY(-2px) scale(1.15); }
	70% { opacity: 1; transform: translateY(-8px) scale(1); }
	100% { opacity: 0; transform: translateY(-14px) scale(1); }
}

/* Class crest chip → Skill Tree */
.char-crest-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.34rem 0.7rem;
	border-radius: 11px;
	border: 1px solid rgba(201, 162, 77, 0.4);
	background: rgba(10, 9, 16, 0.66);
	color: var(--text, #fff);
	font: inherit;
	font-weight: 700;
	font-size: 0.82rem;
	cursor: pointer;
	min-height: 44px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.char-crest-chip:hover { border-color: rgba(241, 196, 15, 0.7); box-shadow: 0 0 12px rgba(231, 201, 122, 0.25); }
.char-crest-chip .char-crest-go { color: var(--wow-gold-bright, #e7c97a); font-size: 0.72rem; font-weight: 800; }

/* XP rail with tier pips */
.char-xp-rail { width: 100%; max-width: 330px; }
.char-sheet--room .char-xp-bar {
	height: 0.6rem;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 77, 0.4);
	background: rgba(0, 0, 0, 0.5);
	overflow: hidden;
}
.char-sheet--room .char-xp-fill {
	background: linear-gradient(90deg, #8d6cf0, var(--wow-gold-bright, #e7c97a));
	box-shadow: 0 0 10px rgba(231, 201, 122, 0.5);
	/* Eases from the previous fill to the new % on remount (profile.js seeds the
	   prior width then rAFs to the target). Gated off below under reduced-motion. */
	transition: width 0.55s cubic-bezier(0.25, 0.8, 0.4, 1);
}
.char-sheet--room .char-xp-line { margin: 0.2rem 0 0; font-size: 0.72rem; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

/* Stats band below the doll */
.char-room-under { display: flex; flex-direction: column; gap: 0.7rem; }
.char-sheet--room .char-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.6rem;
}

/* Paper-doll collapse — phones: model first, sockets in a 2-col grid below. */
@media (max-width: 640px) {
	/* minmax(0,1fr) (not bare 1fr): clamp the single column to the viewport so a wide
	   child (e.g. the gear rails' min-content) can't stretch it past the screen — that
	   was widening .char-doll-center and pushing the centered XP bar off-center. */
	.char-doll { grid-template-columns: minmax(0, 1fr); }
	.char-doll-center { order: -1; }
	/* minmax(0,1fr) — let the columns shrink BELOW the slots' min-content. The long
	   gear-set line (white-space:nowrap) otherwise forced each 1fr track to ~250px, so
	   two columns overflowed a ~390px phone and the right column clipped off-screen. */
	.char-doll-rail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.42rem; }
	.char-doll-rail .char-slot { min-height: 44px; }
	/* The avatar chip was only ~29px tall — below the 44px touch-target minimum, so the
	   avatar/emoji editor was hard to tap on phones. Guarantee a 44px hit area. */
	.char-sheet--room .char-portrait-col.has-model .char-portrait { min-width: 44px; min-height: 44px; }
}
/* Phones: one full-width slot per row. Two columns leave each slot too narrow for the
   item name + gear-set line + GS badge (they truncated/clipped). 1-col up to 540px
   covers portrait phones; 541–640px keeps the 2-up grid, where it actually fits. */
@media (max-width: 540px) {
	.char-doll-rail { grid-template-columns: 1fr; }
}

/* ============================================================================
   P2 — Skill Tree ("Astral Observatory"): class rail + constellation board
   ============================================================================ */
.char-class-rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
	margin-bottom: 0.7rem;
}
.char-class-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.14rem;
	padding: 0.5rem 0.65rem;
	min-height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.3);
	background: rgba(10, 9, 16, 0.66);
	color: var(--text, #fff);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.char-class-card:hover:not(:disabled) { border-color: rgba(241, 196, 15, 0.7); }
.char-class-card.is-current {
	border-color: rgba(241, 196, 15, 0.85);
	background: linear-gradient(180deg, rgba(201, 162, 77, 0.24), rgba(20, 16, 8, 0.8));
	box-shadow: 0 0 16px rgba(231, 201, 122, 0.25);
	cursor: default;
}
.char-class-card:disabled:not(.is-current) { opacity: 0.6; cursor: not-allowed; }
.char-class-card-role { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #9aa4b2); }
.char-class-card-name { font-weight: 800; font-size: 0.86rem; }
.char-class-card-meta { font-size: 0.68rem; color: var(--text-muted, #9aa4b2); }
.char-class-card-tag { font-size: 0.64rem; font-weight: 800; color: var(--wow-gold-bright, #e7c97a); }
@media (max-width: 480px) {
	.char-class-rail { grid-template-columns: 1fr; }
	.char-class-card { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

/* Constellation: starfield behind the board, glowing nodes + wires */
.tpq-room[data-room-tab="skilltree"] .play-talent-board {
	background:
		radial-gradient(1px 1px at 18% 24%, rgba(255, 255, 255, 0.7), transparent 55%),
		radial-gradient(1px 1px at 64% 12%, rgba(255, 255, 255, 0.55), transparent 55%),
		radial-gradient(1.5px 1.5px at 82% 42%, rgba(200, 210, 255, 0.6), transparent 55%),
		radial-gradient(1px 1px at 36% 64%, rgba(255, 255, 255, 0.45), transparent 55%),
		radial-gradient(1.5px 1.5px at 12% 82%, rgba(200, 190, 255, 0.5), transparent 55%),
		radial-gradient(1px 1px at 74% 86%, rgba(255, 255, 255, 0.5), transparent 55%),
		radial-gradient(120% 100% at 50% 0%, rgba(54, 40, 110, 0.4), rgba(10, 8, 22, 0.85));
	border: 1px solid rgba(120, 110, 220, 0.35);
	border-radius: 14px;
}
.tpq-room[data-room-tab="skilltree"] .play-talent-node.is-available {
	box-shadow: 0 0 12px rgba(160, 150, 255, 0.6);
	animation: tpq-node-pulse 2.2s ease-in-out infinite;
}
.tpq-room[data-room-tab="skilltree"] .play-talent-node.is-maxed,
.tpq-room[data-room-tab="skilltree"] .play-talent-node.is-ranked {
	box-shadow: 0 0 14px rgba(231, 201, 122, 0.55);
}
@keyframes tpq-node-pulse {
	0%, 100% { box-shadow: 0 0 8px rgba(160, 150, 255, 0.35); }
	50% { box-shadow: 0 0 16px rgba(160, 150, 255, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
	.tpq-room[data-room-tab="skilltree"] .play-talent-node.is-available { animation: none; }
}

/* ============================================================================
   P3 — Companions ("Menagerie Grotto") + Collection ("Trophy Vault")
   ============================================================================ */
.char-pet-hero {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.7rem 0.9rem;
	margin-bottom: 0.7rem;
	border-radius: 14px;
	border: 1px solid rgba(201, 162, 77, 0.35);
	background:
		radial-gradient(60% 80% at 28% 45%, rgba(255, 236, 170, 0.16), transparent 70%),
		rgba(8, 7, 13, 0.66);
}
.char-pet-hero-stage {
	position: relative;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 86px;
	height: 86px;
	border-radius: 14px;
	background: radial-gradient(70% 70% at 50% 42%, rgba(255, 236, 170, 0.22), rgba(8, 7, 13, 0.3) 80%);
	border: 1px solid rgba(201, 162, 77, 0.4);
}
.char-pet-hero-stage img { width: 68px; height: 68px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.6)); }
.char-pet-hero-emoji { font-size: 2.2rem; line-height: 1; }
.char-pet-hero-body { min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.char-pet-hero-name { font-weight: 800; font-size: 0.95rem; }
.char-pet-hero-meta { font-size: 0.72rem; color: var(--text-muted, #9aa4b2); }
.char-pet-hero-power { font-size: 0.74rem; color: var(--wow-gold-bright, #e7c97a); font-weight: 700; }

/* Rarity-bordered companion cards (shared framed-card vocabulary) */
.play-companion { border-radius: 12px; border: 1px solid var(--rarity-border, rgba(201, 162, 77, 0.25)); background: rgba(10, 9, 16, 0.82); }
.play-companion[data-rarity="Common"]    { --rarity-border: rgba(170, 180, 190, 0.4); }
.play-companion[data-rarity="Uncommon"]  { --rarity-border: rgba(46, 204, 113, 0.55); }
.play-companion[data-rarity="Rare"]      { --rarity-border: rgba(52, 152, 219, 0.6); }
.play-companion[data-rarity="Epic"]      { --rarity-border: rgba(155, 89, 182, 0.65); }
.play-companion[data-rarity="Legendary"] { --rarity-border: rgba(241, 196, 15, 0.7); }
.play-companion[data-rarity="Mythic"]    { --rarity-border: rgba(255, 110, 160, 0.7); }
.play-companion.is-active { box-shadow: 0 0 12px var(--rarity-border, rgba(231, 201, 122, 0.4)); }

/* Trophy Vault: the strips read as framed museum rails */
.tpq-room[data-room-tab="collection"] .play-collection-overall {
	padding: 0.65rem 0.75rem;
	border-radius: 14px;
	border: 1px solid rgba(201, 162, 77, 0.35);
	background: rgba(10, 9, 16, 0.55);
}
.tpq-room[data-room-tab="collection"] .play-collection-fill {
	background: linear-gradient(90deg, #8d6cf0, var(--wow-gold-bright, #e7c97a));
	box-shadow: 0 0 8px rgba(231, 201, 122, 0.45);
}
/* Each park's roster reads as a framed rail in BOTH the Menagerie (companions) and
   the Trophy Vault (collection) — without the scrim the per-park headers + rows
   float on bare backdrop art and wash out (see the lighter lower art bands). */
.tpq-room[data-room-tab="collection"] .play-companion-park,
.tpq-room[data-room-tab="companions"] .play-companion-park {
	padding: 0.5rem 0.65rem;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.22);
	background: rgba(10, 9, 16, 0.62);
	margin-top: 0.5rem;
}
/* The lead summary line ("N/total companions collected…") sits directly on the art —
   give it a scrim shadow so it holds up like the other room copy. */
.tpq-room[data-room-tab="companions"] .tpq-room-stagebody > .play-meta {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ============================================================================
   P4 — Titles ("Banner Hall") + Resorts ("Sky Deck")
   ============================================================================ */
.char-title-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	padding: 0.8rem 0.9rem;
	margin-bottom: 0.7rem;
	border-radius: 14px;
	border: 1px solid rgba(201, 162, 77, 0.4);
	background:
		radial-gradient(80% 90% at 50% 0%, rgba(120, 30, 38, 0.3), transparent 70%),
		rgba(10, 9, 16, 0.55);
}
.char-title-preview-name { font-size: 1.25rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
.char-title-preview-title { font-size: 0.82rem; color: var(--wow-gold-bright, #e7c97a); font-weight: 700; min-height: 1.1em; }
.char-title-preview-hint { font-size: 0.66rem; color: var(--text-muted, #9aa4b2); }
.tpq-room[data-room-tab="titles"] .play-title-option {
	border-radius: 11px;
	border: 1px solid rgba(201, 162, 77, 0.3);
	background: linear-gradient(180deg, rgba(26, 21, 12, 0.7), rgba(13, 11, 8, 0.8));
	min-height: 44px;
}
.tpq-room[data-room-tab="titles"] .play-title-option.is-selected {
	border-color: rgba(241, 196, 15, 0.8);
	box-shadow: 0 0 12px rgba(231, 201, 122, 0.3);
}

/* Resorts: destination medallion cards — region art behind, park crests in a row */
.char-resort-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.6rem;
}
.char-resort-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	min-height: 120px;
	padding: 0.7rem 0.8rem;
	border-radius: 16px;
	border: 1px solid rgba(201, 162, 77, 0.3);
	background:
		linear-gradient(180deg, rgba(8, 7, 13, 0.25), rgba(8, 7, 13, 0.72)),
		var(--resort-art, none) center 35% / cover no-repeat,
		rgba(10, 9, 16, 0.7);
	color: var(--text, #fff);
	font: inherit;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
	image-rendering: pixelated;
}
.char-resort-card:hover { border-color: rgba(241, 196, 15, 0.7); transform: translateY(-1px); }
.char-resort-card.is-selected {
	border-color: rgba(241, 196, 15, 0.9);
	box-shadow: 0 0 18px rgba(231, 201, 122, 0.35), inset 0 0 0 1px rgba(241, 196, 15, 0.3);
}
.char-resort-card:not(.is-selected) { filter: saturate(0.55); }
.char-resort-card-name {
	font-family: "Cinzel", "Inter", serif;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}
.char-resort-crests { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: center; }
.char-resort-crest {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(70% 70% at 50% 38%, rgba(255, 236, 170, 0.3), rgba(10, 9, 16, 0.65) 75%);
	border: 1px solid rgba(231, 201, 122, 0.5);
	box-shadow: 0 0 8px rgba(231, 201, 122, 0.25);
}
.char-resort-crest img { width: 34px; height: 34px; object-fit: contain; image-rendering: auto; }
.char-resort-card-tag {
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--wow-gold-bright, #e7c97a);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Fallback plain picker (no park meta) keeps the sky-deck framing */
.tpq-room[data-room-tab="resorts"] .play-resort-btn {
	position: relative;
	min-height: 64px;
	border-radius: 14px;
	border: 1px solid rgba(201, 162, 77, 0.3);
	background:
		radial-gradient(80% 100% at 50% 0%, rgba(40, 70, 110, 0.35), transparent 75%),
		rgba(10, 9, 16, 0.6);
}
.tpq-room[data-room-tab="resorts"] .play-resort-btn.is-selected {
	border-color: rgba(241, 196, 15, 0.85);
	box-shadow: 0 0 16px rgba(231, 201, 122, 0.3);
}

/* ============================================================================
   Season marquee — a battle-pass-grade banner pinned to the hub home
   (play-hub.js buildSeasonBannerHtml). Key art is the BASE layer with a left
   scrim for the copy; eyebrow chip + display title + week pips + tier track +
   CTA — the grammar of a professional season banner.
   ============================================================================ */
.tpq-season-banner {
	position: relative;
	display: block;
	width: 100%;
	/* The marquee claims its own full row BUT stays a CONTAINED, CENTERED card
	   (battle-pass style). Full-bleed on a wide monitor letterboxes the key art
	   into a thin smear and the copy huddles in a corner — capping the card keeps
	   the art's composition (fireworks + castle) readable at every width. */
	flex: 1 1 100%;
	/* Keep a side gutter so the card never sits flush to the screen edges — in the
	   in-park hub the banner lives in a full-viewport FIXED hero with no padding, so
	   without this it clips at both edges on a phone (esp. the iOS home-screen app).
	   Safe-area-aware so a notched landscape doesn't tuck it under the sensor housing. */
	max-width: min(54rem, calc(100% - 1.5rem - var(--play-safe-left, 0px) - var(--play-safe-right, 0px)));
	margin: 0 auto 0.65rem;
	padding: 0;
	min-height: 158px;
	border-radius: 16px;
	border: 1px solid rgba(241, 196, 15, 0.55);
	background: #14101f;
	box-shadow: 0 10px 34px -16px rgba(0, 0, 0, 0.9), 0 0 18px rgba(231, 201, 122, 0.18), inset 0 1px 0 rgba(255, 226, 130, 0.18);
	color: var(--text, #fff);
	font: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
	/* The in-park hero zone is pointer-events:none (only the plate takes taps) —
	   the banner must re-enable itself or every click falls through to the hub. */
	pointer-events: auto;
}
/* The hero zone is flex-direction:row nowrap — allow the marquee to claim a full
   first row (centered) without disturbing heroes that have no banner. */
.vv-hub-hero:has(.tpq-season-banner) {
	flex-wrap: wrap;
	justify-content: center;
}
/* The row wrapper owns a FULL flex line (the capped card's hypothetical main size
   would otherwise let the welcome plate share its row on wide screens) and
   centers the card within it. pointer-events pass through except on the card. */
.tpq-season-row {
	flex: 1 1 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	pointer-events: none;
}
/* In-park, the hero is a full-viewport FIXED layer centering the welcome plate.
   With a banner present, center the two as one stack — season card directly
   above the plate — instead of letting rows stretch apart. */
body.play-inpark-hub-active
	.play-hub--park-selected
	.vv-hub-hero:has(.vv-hub-idle--inpark):has(.tpq-season-banner) {
	align-content: center;
	gap: 0.7rem 0.6rem;
}
/* Wide screens: a chunkier card — taller, bigger type, art crop biased to the
   upper band so the fireworks + castle tops stay in frame. */
@media (min-width: 720px) {
	.tpq-season-banner { min-height: 208px; }
	.tpq-season-art { background-position: right 30%, center, center; }
	.tpq-season-body { padding: 1rem 1.2rem 0.95rem; gap: 0.38rem; }
	.tpq-season-title { font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
}
/* Short / small windows: the in-park hub is a fixed full-viewport layer that CENTERS a
   tall stack (season banner + welcome plate) inside an overflow:hidden main — so on a
   short window the stack overflows and is clipped top+bottom ("scrunched"; same trap the
   victory stage fixes with overflow:auto). Below this height, shrink the banner, top-align
   the stack, and let the hub SCROLL so nothing is cut off. Tall screens are unaffected. */
@media (max-height: 800px) {
	.tpq-season-banner { min-height: 116px; }
	.tpq-season-body { padding: 0.55rem 0.8rem 0.5rem; gap: 0.25rem; }
	body.play-inpark-hub-active
		.play-hub--park-selected
		.vv-hub-hero:has(.vv-hub-idle--inpark):has(.tpq-season-banner) {
		align-content: start;
		gap: 0.5rem 0.6rem;
	}
	/* Compact the welcome plate so the whole stack fits the short pinned region without
	   needing to scroll: drop the redundant guidance line (the action bar is right there),
	   shrink the crest + title, and tighten the padding. */
	body.play-app .vv-hub-idle--inpark {
		padding: 0.9rem 1.1rem 1rem;
		gap: 0.18rem;
	}
	body.play-app .vv-hub-idle--inpark .vv-hub-idle-crest {
		width: clamp(3.4rem, 11vw, 4.3rem);
		margin-bottom: 0.3rem;
	}
	body.play-app .vv-hub-idle--inpark .vv-hub-idle-title {
		font-size: clamp(1.2rem, 5vw, 1.65rem);
	}
	body.play-app .vv-hub-idle--inpark .vv-hub-idle-lead {
		display: none;
	}
	body.play-app .vv-hub-idle--inpark .vv-hub-idle-worldmap {
		margin-top: 0.55rem;
	}
	body.play-inpark-hub-active .vv-hub {
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}
}
.tpq-season-banner:hover {
	border-color: rgba(241, 196, 15, 0.95);
	box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.9), 0 0 28px rgba(231, 201, 122, 0.35), inset 0 1px 0 rgba(255, 226, 130, 0.25);
}
.tpq-season-banner:active { transform: translateY(1px); }
/* Key art = the BASE layer (full-bleed); the left scrim seats the copy. A slow
   drift gives it the living-marquee read. */
.tpq-season-art {
	position: absolute;
	inset: 0;
	background:
		var(--season-art, none) right center / cover no-repeat,
		radial-gradient(140% 120% at 85% 30%, rgba(120, 70, 160, 0.55), transparent 60%),
		linear-gradient(180deg, #2a1a3e, #161020);
	image-rendering: pixelated;
	transform: scale(1.03);
	animation: tpq-season-art-drift 18s ease-in-out infinite alternate;
}
@keyframes tpq-season-art-drift {
	from { transform: scale(1.03) translateX(0); }
	to { transform: scale(1.03) translateX(-1.5%); }
}
.tpq-season-scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 7, 18, 0.92) 0%, rgba(10, 7, 18, 0.72) 38%, rgba(10, 7, 18, 0.12) 70%, rgba(10, 7, 18, 0.3) 100%),
		linear-gradient(0deg, rgba(10, 7, 18, 0.55) 0%, transparent 35%);
}
.tpq-season-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	padding: 0.75rem 0.95rem 0.7rem;
	max-width: min(34rem, 86%);
}
.tpq-season-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.tpq-season-chip {
	padding: 0.14rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(241, 196, 15, 0.65);
	background: rgba(241, 196, 15, 0.14);
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	color: var(--wow-gold-bright, #e7c97a);
}
.tpq-season-ends {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: #ffb38a;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.tpq-season-title {
	font-family: "Cinzel", "Inter", serif;
	font-weight: 700;
	font-size: clamp(1.25rem, 3.4vw, 1.8rem);
	line-height: 1.05;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffe9b8;
	text-shadow:
		0 1px 0 rgba(60, 30, 0, 0.9),
		0 2px 8px rgba(0, 0, 0, 0.8),
		0 0 26px rgba(255, 196, 92, 0.4);
}
.tpq-season-subtitle {
	margin-top: -0.15rem;
	font-size: 0.74rem;
	font-style: italic;
	color: rgba(255, 230, 190, 0.85);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.tpq-season-potw {
	display: flex;
	flex-direction: column;
	gap: 0.06rem;
	font-size: 0.74rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
/* The "why it matters" line — the banner explains the mechanic, not just names it. */
.tpq-season-potw-why {
	/* Always its own line — in the flex-column park-of-week block it already stacks,
	   but in the featured-raid <p> (.season-pass-challenge) it would otherwise butt
	   right up against the bold boss name ("Sovereignappears…"). */
	display: block;
	font-size: 0.64rem;
	font-weight: 700;
	color: #9fe6a0;
	letter-spacing: 0.03em;
}
/* Week pips */
.tpq-season-weeks { display: inline-flex; align-items: center; gap: 0.28rem; }
.tpq-season-pip {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	border: 1px solid rgba(231, 201, 122, 0.55);
	background: rgba(0, 0, 0, 0.45);
}
.tpq-season-pip.is-past { background: rgba(231, 201, 122, 0.55); }
.tpq-season-pip.is-now {
	background: var(--wow-gold-bright, #e7c97a);
	box-shadow: 0 0 8px rgba(231, 201, 122, 0.8);
}
.tpq-season-weeks-label {
	margin-left: 0.3rem;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--text-muted, #c9bd9a);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
/* Tier + XP track row */
.tpq-season-progress {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	max-width: 24rem;
}
.tpq-season-tier {
	flex: 0 0 auto;
	padding: 0.16rem 0.5rem;
	border-radius: 8px;
	border: 1px solid rgba(241, 196, 15, 0.6);
	background: linear-gradient(180deg, rgba(60, 48, 18, 0.92), rgba(26, 21, 10, 0.95));
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--wow-gold-bright, #e7c97a);
}
.tpq-season-tier strong { font-size: 0.82rem; }
.tpq-season-tier-total { opacity: 0.65; font-weight: 700; }
.tpq-season-track {
	display: block;
	flex: 1 1 auto;
	height: 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 77, 0.5);
	background: rgba(0, 0, 0, 0.6);
	overflow: hidden;
}
.tpq-season-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #ff9a3d, var(--wow-gold-bright, #e7c97a));
	box-shadow: 0 0 10px rgba(255, 170, 70, 0.6);
	transition: width 0.4s ease;
}
.tpq-season-xp {
	flex: 0 0 auto;
	font-size: 0.64rem;
	font-weight: 700;
	color: var(--text-muted, #c9bd9a);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.tpq-season-nextreward {
	display: block;
	margin-top: 0.18rem;
	font-size: 0.64rem;
	font-weight: 700;
	color: color-mix(in srgb, var(--text-muted, #c9bd9a) 70%, #ffd98a);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.tpq-season-nextreward-glyph { font-size: 0.78rem; }
.tpq-season-foot { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.1rem; }
.tpq-season-claim {
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 224, 122, 0.7);
	background: rgba(241, 196, 15, 0.18);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #ffe07a;
	animation: tpq-season-claim-pulse 1.8s ease-in-out infinite;
}
@keyframes tpq-season-claim-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
	.tpq-season-claim { animation: none; }
	.tpq-season-art { animation: none; }
}
.tpq-season-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(241, 196, 15, 0.7);
	background: linear-gradient(180deg, rgba(201, 162, 77, 0.35), rgba(201, 162, 77, 0.12));
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--wow-gold-bright, #e7c97a);
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.25);
}
.tpq-season-banner:hover .tpq-season-cta {
	background: linear-gradient(180deg, rgba(201, 162, 77, 0.5), rgba(201, 162, 77, 0.2));
}
/* Compact phones: tighter padding, full-width copy column, stronger scrim. */
@media (max-width: 480px) {
	.tpq-season-banner { min-height: 142px; }
	.tpq-season-body { max-width: 100%; padding: 0.65rem 0.75rem 0.6rem; }
	.tpq-season-scrim {
		background:
			linear-gradient(90deg, rgba(10, 7, 18, 0.9) 0%, rgba(10, 7, 18, 0.62) 55%, rgba(10, 7, 18, 0.28) 100%),
			linear-gradient(0deg, rgba(10, 7, 18, 0.55) 0%, transparent 35%);
	}
}

/* ============================================================================
   Season pass — the traditional battle-pass LOOT TRACK (routes/season.js):
   key-art hero, then a horizontal timeline of tier columns (single FREE lane —
   premium hidden for now), progress riding the tier heads, tap-to-claim.
   ============================================================================ */
.season-pass { display: flex; flex-direction: column; gap: 0.7rem; }
.season-pass-hero {
	position: relative;
	border-radius: 16px;
	border: 1px solid rgba(241, 196, 15, 0.55);
	background:
		var(--season-art, none) right 30% / cover no-repeat,
		radial-gradient(140% 120% at 85% 30%, rgba(120, 70, 160, 0.55), transparent 60%),
		linear-gradient(180deg, #2a1a3e, #161020);
	image-rendering: pixelated;
	box-shadow: 0 10px 34px -16px rgba(0, 0, 0, 0.9), 0 0 18px rgba(231, 201, 122, 0.18);
	overflow: hidden;
	min-height: 170px;
}
.season-pass-hero .tpq-season-scrim { border-radius: inherit; }
.season-pass-hero-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.32rem;
	padding: 0.8rem 1rem 0.85rem 3.4rem; /* room for the back chip */
	max-width: min(36rem, 92%);
}
.season-pass-hero .tpq-season-title { margin: 0; }
.season-pass-hero .tpq-season-subtitle,
.season-pass-hero .tpq-season-potw { margin: 0; }
.season-pass-challenge {
	margin: 0;
	font-size: 0.74rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.season-pass-status {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 0.2rem;
}
.season-pass-status .tpq-season-xp { font-size: 0.78rem; }
.season-claim-all { min-height: 44px; }
/* Exits — same grammar as the rooms (back ‹ top-left, ✕ top-right, Esc). */
.season-pass-back,
.season-pass-x {
	position: absolute;
	top: 0.6rem;
	z-index: 2;
	min-width: 44px;
	min-height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.45);
	background: rgba(10, 9, 16, 0.66);
	color: var(--wow-gold-bright, #e7c97a);
	font: inherit;
	font-size: 1.15rem;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.08s;
}
.season-pass-back { left: 0.6rem; }
.season-pass-x { right: 0.6rem; }
.season-pass-back:hover,
.season-pass-x:hover { border-color: rgba(241, 196, 15, 0.8); background: rgba(20, 17, 30, 0.85); }
.season-pass-back:active,
.season-pass-x:active { transform: translateY(1px); }

/* --- The loot track ---------------------------------------------------------- */
.season-track-wrap {
	border-radius: 16px;
	border: 1px solid rgba(201, 162, 77, 0.3);
	background: rgba(10, 9, 16, 0.55);
	padding: 0.6rem 0.2rem 0.4rem;
}
.season-track {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	padding: 0.3rem 0.6rem 0.55rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 162, 77, 0.5) transparent;
}
.season-tier-col {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 7.2rem;
	scroll-snap-align: center;
}
/* Tier head: the timeline node — a wire runs through them; reached = lit gold. */
.season-tier-head {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
}
.season-tier-head::before {
	/* the connecting wire */
	content: "";
	position: absolute;
	left: -0.6rem;
	right: -0.6rem;
	top: 50%;
	height: 2px;
	background: rgba(201, 162, 77, 0.25);
}
.season-tier-col:first-child .season-tier-head::before { left: 50%; }
.season-tier-col:last-child .season-tier-head::before { right: 50%; }
.season-tier-col.is-reached .season-tier-head::before { background: rgba(231, 201, 122, 0.75); }
.season-tier-num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	min-width: 1.9rem;
	height: 1.9rem;
	padding: 0 0.3rem;
	border-radius: 50%;
	border: 1px solid rgba(201, 162, 77, 0.5);
	background: #15101e;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--text-muted, #9aa4b2);
}
.season-tier-col.is-reached .season-tier-num {
	background: linear-gradient(180deg, rgba(201, 162, 77, 0.55), rgba(110, 86, 30, 0.7));
	color: #fff2cf;
	box-shadow: 0 0 10px rgba(231, 201, 122, 0.45);
}
.season-tier-col.is-current .season-tier-num {
	border-color: #ffe07a;
	box-shadow: 0 0 14px rgba(255, 224, 122, 0.7);
}
.season-tier-xp {
	font-size: 0.62rem;
	font-weight: 700;
	color: var(--text-muted, #9aa4b2);
	font-variant-numeric: tabular-nums;
}

/* --- Reward cards -------------------------------------------------------------- */
.season-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	width: 100%;
	min-height: 7.4rem;
	padding: 0.55rem 0.45rem 1.3rem;
	border-radius: 13px;
	border: 1px solid rgba(201, 162, 77, 0.3);
	background:
		radial-gradient(90% 70% at 50% 18%, rgba(255, 236, 170, 0.1), transparent 70%),
		linear-gradient(180deg, rgba(26, 21, 36, 0.92), rgba(13, 11, 18, 0.96));
	text-align: center;
}
.season-card-glyph {
	font-size: 1.9rem;
	line-height: 1;
	filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7));
}
.season-card-label {
	font-size: 0.64rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text, #e8e6f0);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.season-card-state {
	position: absolute;
	bottom: 0.4rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}
/* Locked: dark + muted */
.season-card.is-locked { opacity: 0.62; filter: saturate(0.6); }
.season-card.is-locked .season-card-state--lock { opacity: 0.9; }
/* Claimable: the gold beacon of the row */
.season-card.is-claimable {
	cursor: pointer;
	border-color: rgba(255, 224, 122, 0.9);
	background:
		radial-gradient(90% 70% at 50% 18%, rgba(255, 224, 122, 0.26), transparent 70%),
		linear-gradient(180deg, rgba(56, 43, 14, 0.95), rgba(26, 20, 8, 0.97));
	box-shadow: 0 0 16px rgba(255, 210, 100, 0.4), inset 0 1px 0 rgba(255, 226, 130, 0.3);
	animation: season-card-beacon 2s ease-in-out infinite;
}
.season-card.is-claimable:hover { box-shadow: 0 0 24px rgba(255, 210, 100, 0.6); }
.season-card.is-claimable:active { transform: translateY(1px); }
.season-card.is-busy { pointer-events: none; opacity: 0.7; animation: none; }
@keyframes season-card-beacon {
	0%, 100% { box-shadow: 0 0 12px rgba(255, 210, 100, 0.3); }
	50% { box-shadow: 0 0 22px rgba(255, 210, 100, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
	.season-card.is-claimable { animation: none; }
}
.season-card-state--claim {
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 224, 122, 0.8);
	background: rgba(241, 196, 15, 0.22);
	color: #ffe07a;
}
/* Claimed: quiet, done */
.season-card.is-claimed { opacity: 0.78; }
.season-card.is-claimed .season-card-glyph { filter: grayscale(0.25) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7)); }
.season-card-state--done {
	color: #7bed9f;
	font-size: 0.8rem;
}
.season-card.is-empty { visibility: hidden; }

/* The capstone column — the season's chase prize gets showcase staging:
   wider column, taller card, Mythic violet-gold frame, its own beacon. */
.season-tier-col.is-capstone { width: 9.4rem; }
.season-tier-col.is-capstone .season-card {
	min-height: 8.6rem;
	border-width: 2px;
	border-color: rgba(255, 140, 200, 0.75);
	background:
		radial-gradient(90% 70% at 50% 16%, rgba(255, 170, 220, 0.24), transparent 70%),
		radial-gradient(120% 90% at 50% 100%, rgba(255, 196, 92, 0.18), transparent 60%),
		linear-gradient(180deg, rgba(46, 22, 52, 0.96), rgba(20, 10, 24, 0.98));
	box-shadow: 0 0 22px rgba(255, 150, 210, 0.4), inset 0 1px 0 rgba(255, 210, 235, 0.3);
}
.season-tier-col.is-capstone .season-card.is-claimable {
	animation: season-capstone-beacon 1.8s ease-in-out infinite;
}
@keyframes season-capstone-beacon {
	0%, 100% { box-shadow: 0 0 18px rgba(255, 150, 210, 0.35), 0 0 10px rgba(255, 210, 100, 0.3); }
	50% { box-shadow: 0 0 32px rgba(255, 150, 210, 0.65), 0 0 18px rgba(255, 210, 100, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
	.season-tier-col.is-capstone .season-card.is-claimable { animation: none; }
}
.season-tier-col.is-capstone .season-card-glyph { font-size: 2.5rem; }
.season-tier-col.is-capstone .season-tier-num {
	border-color: rgba(255, 150, 210, 0.8);
	box-shadow: 0 0 12px rgba(255, 150, 210, 0.5);
}

/* Season-exclusive name glows (claimTier → unlocked_upgrades; same name-text-only
   application rule as the sink-ladder glows in play-polish.css). */
.name-glow--coral-drift {
	display: inline-block;
	background-image: linear-gradient(90deg, #ff8a80, #ffb37e, #7fd8d0, #ff8a80);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 800;
	animation: tpq-aurora-glow 6s ease-in-out infinite;
}
.name-glow--solar-flare {
	display: inline-block;
	background-image: linear-gradient(90deg, #fff3b0, #ffb13d, #ff6a3d, #ffd75e, #fff3b0);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 800;
	animation: tpq-aurora-glow 3.2s ease-in-out infinite;
}
.name-glow--twilight {
	display: inline-block;
	background-image: linear-gradient(90deg, #c7a8ff, #8e7bff, #ff9ec4, #c7a8ff);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 800;
	animation: tpq-aurora-glow 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.name-glow--coral-drift,
	.name-glow--solar-flare,
	.name-glow--twilight { animation: none; }
}

/* Tap-for-details hint under the track (mobile-first; no hover anywhere). */
.season-track-hint {
	margin: -0.2rem 0 0;
	text-align: center;
	font-size: 0.68rem;
	color: var(--text-muted, #9aa4b2);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* The reward DETAIL SHEET — slides up over the track; what-it-does in plain
   words + the Claim button. Tap-outside or ✕ closes. */
.season-sheet {
	position: fixed;
	inset: 0;
	z-index: 320;
	display: none;
	align-items: flex-end;
	justify-content: center;
	background: rgba(5, 4, 10, 0.55);
	padding: 0 0.7rem calc(0.9rem + var(--tpq-bar-h, 86px));
}
.season-sheet.is-open { display: flex; }
.season-sheet-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	width: min(26rem, 100%);
	padding: 1rem 1.1rem 1.05rem;
	border-radius: 18px;
	border: 1px solid rgba(241, 196, 15, 0.6);
	background:
		radial-gradient(100% 70% at 50% 0%, rgba(255, 224, 122, 0.14), transparent 65%),
		linear-gradient(180deg, rgba(30, 24, 40, 0.98), rgba(14, 11, 20, 0.99));
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.8), 0 0 22px rgba(231, 201, 122, 0.25);
	text-align: center;
	animation: season-sheet-up 0.22s ease;
}
@keyframes season-sheet-up {
	from { transform: translateY(14px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.season-sheet-card { animation: none; }
}
.season-sheet-x {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	min-width: 44px;
	min-height: 44px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	border: 1px solid rgba(201, 162, 77, 0.4);
	background: rgba(10, 9, 16, 0.6);
	color: var(--wow-gold-bright, #e7c97a);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.season-sheet-glyph { font-size: 3rem; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)); }
.season-sheet-tier {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: var(--text-muted, #9aa4b2);
}
.season-sheet-name { font-size: 1.05rem; line-height: 1.25; }
.season-sheet-what {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--text-muted, #c9c4d4);
	max-width: 22rem;
}
.season-sheet-state { font-size: 0.74rem; font-weight: 800; }
.season-sheet-state.is-ready { color: #ffe07a; }
.season-sheet-state.is-done { color: #7bed9f; }
.season-sheet-state.is-locked { color: var(--text-muted, #9aa4b2); }
.season-sheet-claim { min-height: 46px; min-width: 14rem; }
.season-sheet-equip { display: inline-flex; align-items: center; gap: 0.6rem; justify-content: center; }
.season-sheet-equip .season-sheet-unequip { min-height: 38px; }
.season-sheet-equip-btn, .season-sheet-equip { min-width: 14rem; }

/* Phones: slightly narrower columns; hero copy full width. */
@media (max-width: 480px) {
	.season-tier-col { width: 6.4rem; }
	.season-pass-hero-body { max-width: 100%; padding-left: 3.2rem; }
}

/* ============================================================================
   Room-mode containment for legacy bits reused inside the stage
   ============================================================================ */
.tpq-room .play-profile-settings,
.tpq-room .play-talent-panel {
	background: rgba(10, 9, 16, 0.55);
	border-radius: 14px;
	border: 1px solid rgba(201, 162, 77, 0.2);
	padding: 0.6rem 0.7rem;
}
/* Gear sockets + the Attributes block carry thin fills (~0.3 alpha) tuned for the
   old dark-page modal; over the room's backdrop art they vanish. Firm up the scrim
   so each box reads as a discrete framed slot on any tab art. */
.tpq-room .char-slot {
	background: rgba(8, 7, 13, 0.7);
	border-color: rgba(201, 162, 77, 0.32);
}
.tpq-room .char-slot:hover { background: rgba(22, 18, 30, 0.82); }
.tpq-room .char-stats-block {
	background: rgba(8, 7, 13, 0.66);
	border-color: rgba(201, 162, 77, 0.3);
}
/* Gear-slot text was tuned for a dark page: the label is --text-muted and an empty
   slot drops to 0.7 opacity, so "HEADWEAR / — empty —" washed out over the art.
   Lift both so the socket is readable. */
.tpq-room .char-slot-label { color: #d7cdb6; }
.tpq-room .char-slot.is-empty { opacity: 0.92; }
.tpq-room .char-slot.is-empty .char-slot-item { color: #cbd3e0; }

/* ── Contrast pass — controls riding directly on the lit stage art ────────────
   These reuse legacy fills/text (≈4% white, --text-muted) calibrated for the old
   dark modal; over the room's bright backdrop they fall below a legible contrast
   ratio. Firm up the scrim + brighten the text so each stays readable on any art. */

/* Per-park class chips were the worst — a 4%-white fill is invisible over the art. */
.tpq-room .char-class-level {
	background: rgba(8, 7, 13, 0.74);
	border-color: rgba(201, 162, 77, 0.4);
	color: #e8ecf4;
}
.tpq-room .char-class-level.is-current {
	background: rgba(255, 215, 106, 0.22);
	border-color: rgba(255, 215, 106, 0.7);
	color: #fff;
}

/* XP progress line — brighter than --text-muted, with a firmer shadow. */
.tpq-room .char-xp-line { color: #e7ddc4; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92); }

/* Female/Male toggle — deepen the well so the inactive option reads (the active
   gold pill was already fine). */
.tpq-room .char-gender-toggle {
	background: rgba(8, 7, 13, 0.74);
	border-color: rgba(201, 162, 77, 0.45);
}
.tpq-room .char-gender-opt:not(.is-active) { color: #ece3cc; }

/* Scroll containers inside tabs should not double-scroll the stage. */
.tpq-room .play-profile-settings-scroll { max-height: none; }

/* ============================================================================
   Social ROOM — "Passholder Lounge" (friends-social-room-plan.md §P1).
   Per-tab hue washes (visible until/unless the backdrop art loads) + containment
   so the legacy friends bits stay legible on the lit stage art, and the chat
   overlay fills the whole stage (not just the roster card stack).
   ============================================================================ */
.tpq-room[data-room="social"][data-room-tab="friends"] { --room-hue: rgba(64, 42, 14, 0.30); }
.tpq-room[data-room="social"][data-room-tab="party"]   { --room-hue: rgba(58, 30, 60, 0.32); }
.tpq-room[data-room="social"][data-room-tab="guild"]   { --room-hue: rgba(72, 18, 22, 0.32); }
.tpq-room[data-room="social"][data-room-tab="board"]   { --room-hue: rgba(50, 38, 14, 0.30); }
.tpq-room[data-room="social"][data-room-tab="pending"] { --room-hue: rgba(30, 28, 54, 0.32); }

/* Every Social tab (Roster/Caravan/Guild Hall/Notice Board/Mail Post) wraps its content in
   .play-friends--room, so capping it here gives ALL tabs one centered column instead of
   stretching edge-to-edge on wide screens (the shell stagebody flex-grows past its width cap). */
.tpq-room .play-friends--room {
	flex: none;
	min-height: 0;
	gap: 0.6rem;
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
}

/* Firm up the faint legacy fills so rows/bars read on bright backdrop art. */
.tpq-room .friend-row { background-image: none; background: rgba(10, 9, 16, 0.72); border-color: rgba(201, 162, 77, 0.22); }
.tpq-room .friend-statusbar { background-image: none; background: rgba(10, 9, 16, 0.68); }
.tpq-room .friend-divider { color: #e0d6bd; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
.tpq-room .friends-presence-summary { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
.tpq-room .friend-actionbar { border-top-color: rgba(201, 162, 77, 0.25); }
.tpq-room .board-week-title { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
/* The hero cards carry a real character portrait now — give the avatar room to read in the Lounge. */
.tpq-room .friend-avatar { width: 3.2rem; height: 3.2rem; font-size: 1.55rem; }
.tpq-room .friend-avatar-lvl { min-width: 1.2rem; height: 1.2rem; font-size: 0.66rem; }

/* Chat overlay: mounted against .tpq-room-stage (position:relative) it fills the conversation
   area below the ribbon rail — rail stays navigable, and a tab switch closes it. */
.tpq-room .friend-chat { border-radius: 0; }

/* ── P4: Guild Hall — heraldic banner header + gold beacon goal bar (was a teal web bar) ── */
.tpq-room .guild-head {
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.9rem;
	border-radius: 14px;
	border: 1px solid rgba(201, 162, 77, 0.45);
	background:
		radial-gradient(90% 120% at 50% 0%, rgba(120, 30, 38, 0.34), transparent 70%),
		rgba(10, 9, 16, 0.62);
}
.tpq-room .guild-crest { font-size: 1.7rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.tpq-room .guild-name {
	font-family: "Cinzel", "Inter", serif;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wow-gold-bright, #e7c97a);
}
.tpq-room .guild-goal-track,
.tpq-room .guild-goal .bar-track { border: 1px solid rgba(201, 162, 77, 0.4); background: rgba(0, 0, 0, 0.5); }
.tpq-room .guild-goal-fill {
	background: linear-gradient(90deg, #ffb13d, var(--wow-gold-bright, #e7c97a));
	box-shadow: 0 0 8px rgba(231, 201, 122, 0.55);
}
.tpq-room .guild-goal.is-done .guild-goal-fill { background: linear-gradient(90deg, #7bed9f, #2ecc71); }

/* ── P4: Notice Board — posts read as pinned paper notes ── */
.tpq-room .board-row {
	position: relative;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.32);
	background: linear-gradient(180deg, rgba(38, 31, 18, 0.84), rgba(20, 16, 10, 0.9));
	box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.85);
}
.tpq-room .board-row::before {
	content: "📌";
	position: absolute;
	top: -0.45rem;
	left: 0.7rem;
	font-size: 0.85rem;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}
/* The weekly ladder sits on the bright cork-board art — seat it on a scrim so it stays legible. */
.tpq-room .board-week {
	padding: 0.6rem 0.7rem;
	border-radius: 12px;
	background: rgba(10, 9, 16, 0.62);
	border: 1px solid rgba(201, 162, 77, 0.2);
}

/* ============================================================================
   Game-feel v2 — Phase 0 (docs/design/profile-game-feel-v2.md)
   CSS/JS-only quick wins. All motion is transform/opacity-only and gated off
   under prefers-reduced-motion + .tpq-room.no-motion (tpq_flow_off). Edge light
   only — never a page-wide film, so the focal plinth stays the brightest region.
   ============================================================================ */

/* --- Cinematic edge vignette (the room was the only game surface without one).
   Edge-only so the centre stays clear → luma-floor / focal-brightest safe. ---- */
.tpq-room-backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 110px 30px rgba(8, 6, 14, 0.45);
}

/* --- Themed gold keyboard-focus ring: no room control defined :focus-visible,
   so keyboard/controller focus fell back to the raw UA outline (a web tell). --- */
.tpq-room-tab:focus-visible,
.tpq-room-back:focus-visible,
.tpq-room-x:focus-visible,
.tpq-room .char-slot:focus-visible,
.tpq-room .char-class-card:focus-visible,
.tpq-room .char-crest-chip:focus-visible,
.tpq-room .char-resort-card:focus-visible,
.tpq-room .char-gender-opt:focus-visible,
.tpq-room .play-title-option:focus-visible,
.tpq-room .play-action-btn:focus-visible,
.tpq-room .play-resort-btn:focus-visible {
	outline: 2px solid rgba(255, 224, 122, 0.8);
	outline-offset: 2px;
}

/* --- Gold themed stage scrollbar (the default UA bar reads as a web page). ---- */
.tpq-room-stagebody {
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 162, 77, 0.5) transparent;
}
.tpq-room-stagebody::-webkit-scrollbar { width: 10px; }
.tpq-room-stagebody::-webkit-scrollbar-thumb {
	background: rgba(201, 162, 77, 0.45);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}
.tpq-room-stagebody::-webkit-scrollbar-track { background: transparent; }

/* --- One tactile-press vocabulary for every room control. They only swapped
   border-colour on hover today — the feel of hyperlinks/table rows. Transforms
   only; excludes :disabled and the current/active class card. ------------------ */
.tpq-room .char-slot,
.tpq-room .char-class-card,
.tpq-room .char-crest-chip,
.tpq-room .play-title-option,
.tpq-room .tpq-room-tab,
.tpq-room .char-resort-card {
	transition: transform 0.1s ease, border-color 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.tpq-room .char-slot:not(:disabled):hover,
.tpq-room .char-class-card:not(:disabled):not(.is-current):hover,
.tpq-room .char-crest-chip:not(:disabled):hover,
.tpq-room .play-title-option:not(:disabled):hover,
.tpq-room .tpq-room-tab:not(:disabled):hover,
.tpq-room .char-resort-card:not(:disabled):hover {
	transform: translateY(-1px);
}
.tpq-room .char-slot:not(:disabled):active,
.tpq-room .char-class-card:not(:disabled):not(.is-current):active,
.tpq-room .char-crest-chip:not(:disabled):active,
.tpq-room .play-title-option:not(:disabled):active,
.tpq-room .tpq-room-tab:not(:disabled):active,
.tpq-room .char-resort-card:not(:disabled):active {
	transform: translateY(1px) scale(0.98);
}

/* --- Companion roster thumbnails: the real pet sprite (emoji fallback on 404),
   sized to the existing 2rem grid cell. ---------------------------------------- */
.play-companion-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	image-rendering: auto;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

/* --- Motion gates: tpq_flow_off (.no-motion) + OS reduced-motion both collapse
   the XP tween + tactile transforms back to today's static feel. --------------- */
.tpq-room.no-motion .char-xp-fill { transition: none; }
.tpq-room.no-motion .char-slot,
.tpq-room.no-motion .char-class-card,
.tpq-room.no-motion .char-crest-chip,
.tpq-room.no-motion .play-title-option,
.tpq-room.no-motion .tpq-room-tab,
.tpq-room.no-motion .char-resort-card { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.char-sheet--room .char-xp-fill { transition: none; }
	.tpq-room .char-slot,
	.tpq-room .char-class-card,
	.tpq-room .char-crest-chip,
	.tpq-room .play-title-option,
	.tpq-room .tpq-room-tab,
	.tpq-room .char-resort-card { transform: none !important; }
}

/* ============================================================================
   Game-feel v2 — Phase 1 (docs/design/profile-game-feel-v2.md §3)
   Shared readout primitives: the .tpq-stat framed numeral plaque (generalizing
   the Power-badge recipe) + the .tpq-room-subhead Cinzel cartouche for section
   titles. Phase 2 routes Attributes / gear-score / set counts through these.
   ============================================================================ */

/* Engraved section title (Cinzel small-caps) — a pure text treatment so it can be
   added to any existing head span without disturbing its layout. */
.tpq-room-subhead {
	font-family: "Cinzel", "Inter", serif;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wow-gold-bright, #e7c97a);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Framed numeric readout: label cap · hero numeral · optional green gear-sub ·
   typed ±delta chip. --stat-accent tints the rim (per-stat / per-rarity). */
.tpq-stat {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.06rem;
	padding: 0.4rem 0.7rem;
	border-radius: 11px;
	border: 1px solid var(--stat-accent, rgba(201, 162, 77, 0.5));
	background: linear-gradient(180deg, rgba(26, 21, 12, 0.82), rgba(13, 11, 8, 0.9));
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.14);
}
.tpq-stat-label {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted, #9aa4b2);
}
.tpq-stat-ic { display: inline-flex; color: var(--stat-accent, #fff); }
.tpq-stat-val {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.05;
	color: var(--wow-gold-bright, #e7c97a);
	font-variant-numeric: tabular-nums;
}
.tpq-stat-sub { font-size: 0.66rem; font-weight: 700; color: #7bed9f; }
.tpq-stat-delta {
	position: absolute;
	top: -0.4rem;
	right: -0.3rem;
	font-size: 0.74rem;
	font-weight: 800;
	pointer-events: none;
	font-variant-numeric: tabular-nums;
}
.tpq-stat-delta.is-up { color: #7bed9f; }
.tpq-stat-delta.is-down { color: #ff7f7f; }

/* The Power badge's ±delta float was never motion-gated (profile-game-feel-v2.md
   §6 risk #2). Hide the decorative float under reduced-motion / tpq_flow_off; the
   value itself stays correct (count-up writes the final number instantly). */
.tpq-room.no-motion .char-power-delta,
.tpq-room.no-motion .tpq-stat-delta { display: none; }
@media (prefers-reduced-motion: reduce) {
	.tpq-room .char-power-delta,
	.tpq-room .tpq-stat-delta { display: none; }
}

/* ============================================================================
   Game-feel v2 — Phase 2: rarity-lit sockets + Power crest (profile-game-feel-v2.md §4)
   ============================================================================ */

/* Recessed, rarity-lit gear wells. The equipped item's rarity tints the well rim +
   a soft glow; set-complete items keep their violet signature (higher-specificity
   rule in play.css wins). Empty/Common sockets fall back to the gold default. */
.tpq-room .char-slot[data-rarity="Uncommon"]  { --rarity-border: rgba(46, 204, 113, 0.6); }
.tpq-room .char-slot[data-rarity="Rare"]      { --rarity-border: rgba(52, 152, 219, 0.65); }
.tpq-room .char-slot[data-rarity="Epic"]      { --rarity-border: rgba(155, 89, 182, 0.7); }
.tpq-room .char-slot[data-rarity="Legendary"] { --rarity-border: rgba(241, 196, 15, 0.78); }
.tpq-room .char-slot[data-rarity="Mythic"]    { --rarity-border: rgba(255, 110, 160, 0.78); }
.tpq-room .char-slot-icon {
	border-color: var(--rarity-border, rgba(201, 162, 77, 0.32));
	box-shadow:
		inset 0 2px 5px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 236, 170, 0.16),
		0 0 7px -1px var(--rarity-border, rgba(201, 162, 77, 0.25));
}

/* Power Rating → a stamped crest/seal: vertical stack, chunkier, the world-map
   node-ring shadow. Stays a rounded crest (not a hard circle) so 4-5 digit Power
   and the GS+companion sub never overflow. */
.char-sheet--room .char-power-badge {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.02rem;
	padding: 0.5rem 0.95rem;
	border-radius: 16px;
	background: radial-gradient(120% 120% at 50% 0, rgba(82, 66, 26, 0.92), rgba(24, 19, 9, 0.94));
	box-shadow:
		0 0 0 4px rgba(8, 6, 14, 0.5),
		0 0 20px rgba(231, 201, 122, 0.32),
		inset 0 1px 0 rgba(255, 226, 130, 0.25);
}
.char-sheet--room .char-power-badge-val { font-size: 1.5rem; }

/* ============================================================================
   Game-feel v2 — Phase 2b: Attributes as stat plates + Power-crest entrance
   ============================================================================ */

/* Attributes → a grid of framed, stat-tinted plates (was a label:value ledger).
   The block becomes a bare grid; each .char-attr is a plate. The breakdown popover
   anchoring is untouched (.char-attr--breakdown keeps position:relative in play.css). */
.tpq-room .char-stats-block { border: 0; background: transparent; padding: 0; box-shadow: none; }
.tpq-room .char-stats-head { display: block; margin-bottom: 0.5rem; }
.tpq-room .char-attr-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 0.5rem;
}
.tpq-room .char-attr {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.1rem;
	padding: 0.45rem 0.6rem;
	border-radius: 11px;
	border: 1px solid color-mix(in srgb, var(--char-stat, #c9a24d) 50%, rgba(8, 7, 13, 0.6));
	background: linear-gradient(180deg, rgba(20, 17, 28, 0.82), rgba(10, 9, 16, 0.9));
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.12);
}
.tpq-room .char-attr-label {
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted, #9aa4b2);
}
.tpq-room .char-attr-val {
	font-size: 1.25rem;
	line-height: 1.05;
	color: var(--char-stat, var(--wow-gold-bright, #e7c97a));
	font-variant-numeric: tabular-nums;
}
.tpq-room .char-attr-gear { font-size: 0.64rem; }

/* Power-crest entrance: a one-shot bloom on the FIRST build of the Character tab
   (not on equip/class remounts — those keep the sheet up via .is-refreshing). */
@keyframes char-crest-bloom {
	0% { transform: scale(0.62); opacity: 0; }
	60% { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); }
}
.char-sheet--room .char-power-badge.is-enter { animation: char-crest-bloom 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.tpq-room.no-motion .char-power-badge.is-enter { animation: none; }
@media (prefers-reduced-motion: reduce) {
	.char-sheet--room .char-power-badge.is-enter { animation: none; }
}

/* ============================================================================
   Game-feel v2 — Phase 3: Sky Deck (Resorts) — diegetic segmented control for
   "how do you play?" (was three big settings-checklist cards) + selection that
   reads as presence-of-light, not desaturation of the others.
   ============================================================================ */
.char-modepref { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; }
.char-modepref-head { display: block; }
.char-modepref-blurb { margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85); }
.tpq-segment {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 77, 0.4);
	background: rgba(8, 7, 13, 0.66);
	flex-wrap: wrap;
}
.tpq-segment-opt {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 0.4rem 0.85rem;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #ece3cc;
	font: inherit;
	font-weight: 700;
	font-size: 0.82rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, transform 0.1s;
}
.tpq-segment-opt:hover:not(.is-selected):not(:disabled) { background: rgba(255, 255, 255, 0.06); color: #fff; }
.tpq-segment-opt:active:not(:disabled) { transform: translateY(1px); }
.tpq-segment-opt.is-selected {
	background: linear-gradient(180deg, rgba(255, 224, 122, 0.92), rgba(217, 158, 6, 0.95));
	color: #2a1d00;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}
.tpq-room .char-resort-card:not(.is-selected) { filter: none; opacity: 0.88; }
@media (prefers-reduced-motion: reduce) { .tpq-segment-opt:active { transform: none; } }

/* Game-feel v2 — Phase 3: inline-SVG ribbon glyphs (ui/glyphs.js) take the tab's
   color (currentColor) and size to the chip. */
.tpq-room-tab-glyph svg { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; }

/* Game-feel v2 — Phase 3: Trophy Vault — framed exhibit plinthlets (reuse .tpq-stat). */
.char-collection-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 0.5rem;
	margin: 0.6rem 0;
}
.char-collection-card { align-items: center; text-align: center; padding: 0.6rem 0.5rem; gap: 0.12rem; }
.char-collection-glyph { font-size: 1.5rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.char-collection-card .tpq-stat-val { font-size: 1.45rem; }
.char-collection-total { font-size: 0.8rem; font-weight: 700; color: var(--text-muted, #9aa4b2); }
.char-collection-card .tpq-stat-label { letter-spacing: 0.06em; }
.char-collection-meter { width: 100%; height: 0.32rem; margin-top: 0.2rem; border-radius: 999px; background: rgba(0, 0, 0, 0.5); overflow: hidden; }
.char-collection-fill { display: block; height: 100%; background: linear-gradient(90deg, #8d6cf0, var(--wow-gold-bright, #e7c97a)); box-shadow: 0 0 6px rgba(231, 201, 122, 0.45); }

/* ============================================================================
   Game-feel v2 — Phase 3: Titles "Banner Hall" — a rack of heraldic pennant
   plates. The pennant shape is a CLIPPED ::before (the button itself stays
   rectangular so its :focus-visible ring isn't clipped). Selection reads as a
   lit + raised banner, not a checkbox row.
   ============================================================================ */
.tpq-room[data-room-tab="titles"] .play-title-picker {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.55rem;
	max-height: none;
}
.tpq-room[data-room-tab="titles"] .play-title-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 66px;
	padding: 0.6rem 0.7rem 1.2rem;
	border: 0;
	background: transparent;
	overflow: visible;
}
.tpq-room[data-room-tab="titles"] .play-title-option::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(180deg, rgba(46, 26, 28, 0.85), rgba(20, 13, 14, 0.92));
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(201, 162, 77, 0.35);
	clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
	transition: box-shadow 0.15s, background 0.15s;
}
.tpq-room[data-room-tab="titles"] .play-title-option > * { position: relative; z-index: 1; }
.tpq-room[data-room-tab="titles"] .play-title-option-label {
	font-family: "Cinzel", "Inter", serif;
	font-weight: 600;
	font-size: 0.84rem;
	letter-spacing: 0.04em;
	text-align: center;
	color: #f0e6cf;
}
.tpq-room[data-room-tab="titles"] .play-title-option.is-selected::before {
	background: linear-gradient(180deg, rgba(92, 54, 28, 0.92), rgba(40, 24, 12, 0.96));
	box-shadow: 0 0 16px rgba(231, 201, 122, 0.4), inset 0 0 0 1px rgba(241, 196, 15, 0.9), inset 0 1px 0 rgba(255, 226, 130, 0.25);
}
.tpq-room[data-room-tab="titles"] .play-title-option.is-selected { transform: translateY(-2px); }
.tpq-room[data-room-tab="titles"] .play-title-option-check {
	position: absolute;
	bottom: 0.5rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.56rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffe07a;
}

/* ============================================================================
   Game-feel v2 — Phase 3: Menagerie — companion roster as framed rarity exhibit
   cards (vertical), reusing the .play-companion[data-rarity] --rarity-border map.
   ============================================================================ */
.tpq-room[data-room-tab="companions"] .play-companion-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
	gap: 0.55rem;
	margin-top: 0.4rem;
}
.tpq-room[data-room-tab="companions"] .play-companion-list .play-companion {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.32rem;
	padding: 0.75rem 0.6rem;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(18, 16, 26, 0.82), rgba(10, 9, 16, 0.9));
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.1);
}
.tpq-room[data-room-tab="companions"] .play-companion-emoji {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	font-size: 2.2rem;
	border-radius: 13px;
	background: radial-gradient(70% 70% at 50% 40%, rgba(255, 236, 170, 0.16), rgba(8, 7, 13, 0.3) 80%);
	border: 1px solid var(--rarity-border, rgba(201, 162, 77, 0.3));
	box-shadow: 0 0 8px -2px var(--rarity-border, transparent);
}
.tpq-room[data-room-tab="companions"] .play-companion-img { width: 52px; height: 52px; }
.tpq-room[data-room-tab="companions"] .play-companion-body { min-width: 0; width: 100%; }
.tpq-room[data-room-tab="companions"] .play-companion-body .rpg-loot-name { font-weight: 800; }
.tpq-room[data-room-tab="companions"] .play-companion .play-action-btn,
.tpq-room[data-room-tab="companions"] .play-companion .play-companion-active { margin-top: auto; }
.tpq-room[data-room-tab="companions"] .play-companion.is-active { box-shadow: 0 0 14px var(--rarity-border, rgba(231, 201, 122, 0.4)), inset 0 1px 0 rgba(255, 226, 130, 0.18); }

/* Inspect (another passholder) reuses the room shell as a single read-only tab —
   hide the lone-tab rail (the player's name is on the gold title plate). */
.tpq-room[data-room="inspect"] .tpq-room-rail { display: none; }

/* Generalize: ANY single-tab room hides its lone ribbon pill (Quest / Shop / Dungeon / Raid
   finders are all one-tab — the floating chip read as an orphan). The gold title plate names the
   screen. :has() is ignored on old engines, so the rail just stays — graceful. */
.tpq-room-rail:has(.tpq-room-tab:only-child) { display: none; }

/* ============================================================================
   Game-feel v2 — Phase 4: per-class staging tints + diorama plinth fusion.
   The room model stage stops reading as a framed card and becomes a lit diorama:
   drop the card border + inset box, keep the spotlight pools (now class-tinted),
   so the hero stands on the backdrop floor. Brighten-only (focal stays brightest).
   ============================================================================ */
.char-sheet--room[data-archetype="thrill"]    { --class-glow: rgba(231, 76, 60, 0.22);  --class-glow-floor: rgba(231, 76, 60, 0.32); }
.char-sheet--room[data-archetype="magic"]     { --class-glow: rgba(155, 89, 182, 0.24); --class-glow-floor: rgba(155, 89, 182, 0.34); }
.char-sheet--room[data-archetype="wayfinder"] { --class-glow: rgba(46, 204, 113, 0.2);  --class-glow-floor: rgba(46, 204, 113, 0.32); }
.char-sheet--room .char-model-stage {
	border-color: transparent;
	box-shadow: none;
	background:
		radial-gradient(72% 58% at 50% 36%, var(--class-glow, rgba(255, 236, 170, 0.2)), transparent 70%),
		radial-gradient(92% 30% at 50% 96%, var(--class-glow-floor, rgba(231, 201, 122, 0.3)), transparent 76%),
		rgba(8, 7, 13, 0.2);
}

/* Phase 4: title "donned" flare on the Banner Hall name preview (donning juice). */
@keyframes char-title-donned {
	0% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
	35% { text-shadow: 0 0 18px rgba(255, 224, 122, 0.9), 0 0 6px rgba(255, 224, 122, 0.85); }
	100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
}
.char-title-preview-name.is-donned { animation: char-title-donned 1.1s ease-out; }
@media (prefers-reduced-motion: reduce) { .char-title-preview-name.is-donned { animation: none; } }

/* ============================================================================
   Feedback fix: the gear-kit banner + Optimize button blended into the warm
   Hero's Hall backdrop (faint gold-on-gold). Give the banner a dark plate and
   the gold Optimize pill a dark separation ring so both pop against lit art.
   ============================================================================ */
.tpq-room .char-kit-park {
	background: linear-gradient(180deg, rgba(16, 13, 9, 0.88), rgba(8, 7, 13, 0.92));
	border-color: rgba(241, 196, 15, 0.6);
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.16), 0 6px 18px -8px rgba(0, 0, 0, 0.8);
}
.tpq-room .char-kit-park-label { color: #d7cdb6; }
.tpq-room .char-optimize {
	box-shadow: 0 0 0 3px rgba(8, 6, 14, 0.6), 0 6px 16px -6px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 246, 214, 0.4);
}

/* The Optimize pill competes with play-polish's body.play-app .play-action-btn.primary
   (higher specificity). Force a SOLID gold fill + dark separation ring so it reads as a
   real button on the lit backdrop instead of a faint outline. */
.tpq-room .char-gear-bar .char-optimize {
	background: linear-gradient(180deg, #ffd76a, #d99e06) !important;
	color: #2a1d00 !important;
	border: 1px solid rgba(120, 86, 10, 0.85) !important;
	box-shadow: 0 0 0 3px rgba(8, 6, 14, 0.6), 0 6px 16px -6px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 246, 214, 0.5) !important;
	text-shadow: none !important;
	font-weight: 800 !important;
}

/* ============================================================================
   Feedback: (1) the room stagebody grew full-width on wide screens (flex-grow
   defeated its width:880px → the Character tabs stretched edge-to-edge); cap the
   Character/inspect rooms to a centered column. (2) The diorama fusion exposed the
   old ground-plane horizon line (.char-model-stage::before border-top), which the
   bobbing hero slid across as a "weird horizontal line" — remove it (the backdrop
   floor replaces it).
   ============================================================================ */
.tpq-room[data-room="character"] .tpq-room-stagebody,
.tpq-room[data-room="inspect"] .tpq-room-stagebody {
	max-width: 820px;
}
.char-sheet--room .char-model-stage::before { display: none; }

/* ============================================================================
   Feedback ("you can barely see the gear sets"): the Set Bonuses panels were
   tuned for the OLD dark popup — a near-transparent 7% violet fill and unmet
   tiers at opacity:0.6. Over the lit Hero's Hall backdrop the painted art bled
   through and washed the set name + requirement text to near-invisible. Give the
   panels a dark plate and lift the unmet-tier dimming, scoped to .tpq-room so the
   legacy popup (already on a dark bg) is untouched.
   ============================================================================ */
.tpq-room .play-gear-set {
	background: linear-gradient(180deg, rgba(18, 14, 26, 0.9), rgba(10, 8, 16, 0.94));
	border-color: rgba(159, 122, 234, 0.5);
	box-shadow: inset 0 1px 0 rgba(190, 160, 255, 0.12), 0 6px 16px -8px rgba(0, 0, 0, 0.8);
}
.tpq-room .play-gear-sets-head,
.tpq-room .play-gear-set-name { color: #f3eeff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.tpq-room .play-gear-set-have { opacity: 0.9; color: #cdbff0; }
/* Unmet tiers: dark chip + readable muted text (was a 6%-white wash at 0.6 opacity). */
.tpq-room .play-gear-set-tier {
	background: rgba(0, 0, 0, 0.42);
	opacity: 0.94;
	color: #d7cce8;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.tpq-room .play-gear-set-tier.is-met {
	background: rgba(124, 224, 160, 0.22);
	color: #c9f7da;
	border-color: rgba(124, 224, 160, 0.42);
}
.tpq-room .play-gear-set-tier.is-signature {
	background: rgba(149, 110, 255, 0.26);
	color: #e7dbff;
	border-color: rgba(181, 140, 255, 0.42);
}
.tpq-room .play-gear-set-tier.is-signature.is-met {
	background: rgba(149, 110, 255, 0.38);
	color: #f3ecff;
}

/* ============================================================================
   Feedback (same washed-out-over-lit-backdrop class as the gear sets):
   (1) the Friend-code panel used a SOFT GOLD fill (--gold-grad-soft) + a muted
   blue-grey label, so over the lit Resorts/cream backdrop it was gold-on-gold and
   the code barely read. Dark plate + brighter label/value. (body.play-app prefix
   so it outranks play-polish's body.play-app .profile-friendcode base.)
   (2) the play-mode "Pick where you are…" blurb is muted .play-meta text over the
   bright Sky-Deck backdrop — brighten it + a stronger shadow halo so it lifts off
   any backdrop.
   ============================================================================ */
body.play-app .tpq-room .profile-friendcode {
	background: linear-gradient(180deg, rgba(18, 14, 26, 0.9), rgba(10, 8, 16, 0.94));
	border-color: rgba(241, 196, 15, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 226, 130, 0.14), 0 6px 16px -8px rgba(0, 0, 0, 0.8);
}
body.play-app .tpq-room .profile-friendcode-label { color: #d7cdb6; }
body.play-app .tpq-room .profile-friendcode-value {
	color: #ffe07a;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(241, 196, 15, 0.3);
}

body.play-app .tpq-room .char-modepref-blurb {
	color: #ece5d6;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.6);
}
