/* Legacy Road (XP only): big picture reward cards on a vertical road. */
.lx {
  --gold: #f2c85b; --gold-2: #c9963a; --ink: #f7ecd6; --dim: rgba(247, 236, 214, .62);
  --panel: rgba(28, 14, 10, .82); --line: rgba(242, 200, 91, .22); --gap: 18px;
  max-width: 900px; margin: 0 auto; padding: 0 16px 80px; color: var(--ink);
}
.lx-head { text-align: center; margin: 4px 0 18px; }
.lx-eyebrow { margin: 0; letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
.lx-head h1 { margin: 2px 0 0; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; }

/* Hero: ring + bar + next reward + claim all */
.lx-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 20px 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.lx-ring {
  --p: 0; width: 116px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .09) 0);
  box-shadow: 0 0 30px rgba(242, 200, 91, .25);
}
.lx-ring > div { width: 86%; aspect-ratio: 1; border-radius: 50%; background: #1b0d09; display: grid; place-content: center; text-align: center; }
.lx-ring small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.lx-ring b { font-size: 2.6rem; line-height: 1; color: var(--gold); }
.lx-hero-copy h2 { margin: 0 0 10px; font-size: 1.6rem; }
.lx-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.lx-bar i { --p: 0; display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), #fff3c4); position: relative; }
.lx-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-100%); animation: lx-sheen 2.6s 1.2s infinite; }
.lx-xp { margin: 8px 0 0; color: var(--dim); font-size: .95rem; }
.lx-xp b { color: var(--ink); font-size: 1.1rem; }
.lx-next { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: .9rem; color: var(--dim); }
.lx-next b { color: var(--ink); }
.lx-next-art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.lx-next-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lx-next-art svg { width: 34px; height: 34px; }
.lx-hero-act { display: grid; gap: 8px; justify-items: center; }
.lx-claim-all {
  position: relative; display: grid; place-items: center; gap: 2px; min-width: 120px; padding: 14px 18px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-weight: 700; color: #2a1406; background: linear-gradient(180deg, #ffe08a, var(--gold-2));
  box-shadow: 0 8px 24px rgba(242, 200, 91, .35); animation: lx-pulse 1.8s infinite;
}
.lx-claim-all b { font-size: 1.8rem; line-height: 1; }
.lx-claim-all:disabled { animation: none; cursor: default; color: var(--dim); background: rgba(255, 255, 255, .08); box-shadow: none; }

/* Legacy Pass strip */
.lx-pass {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; font: inherit; color: var(--ink); text-align: left;
  background: linear-gradient(100deg, #4a1a10, #7a2c14 60%, #b4782a); border: 1px solid rgba(242, 200, 91, .5); cursor: pointer;
}
.lx-pass.is-owned { justify-content: center; background: rgba(242, 200, 91, .1); cursor: default; }
button.lx-pass.is-owned { cursor: pointer; }
.lx-pass.is-owned small { color: var(--dim); }
.lx-pass-faces { display: flex; flex: none; }
.lx-pass-faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); margin-left: -12px; background: #1b0d09; }
.lx-pass-faces img:first-child { margin-left: 0; }
.lx-pass-copy { flex: 1; display: grid; }
.lx-pass-copy small { color: var(--dim); }
.lx-pass-price { padding: 8px 14px; border-radius: 99px; font-weight: 800; color: #2a1406; background: var(--gold); white-space: nowrap; }
.lx-buy:hover .lx-pass-price { background: #ffe08a; }

/* Road: horizontal layout lives at the end of this file. */

/* Cards */
.lx-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border-radius: 18px; cursor: pointer; font: inherit; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 20%, #3a1d14, #160a07); border: 2px solid rgba(255, 255, 255, .1);
  transition: transform .25s, box-shadow .25s, filter .3s, border-color .3s;
}
.lx-card[data-rarity="legendary"] { background: radial-gradient(120% 90% at 50% 20%, #5a3a10, #1a0d05); }
.lx-card[data-rarity="epic"] { background: radial-gradient(120% 90% at 50% 20%, #3c1f4f, #140a1a); }
.lx-card[data-rarity="rare"] { background: radial-gradient(120% 90% at 50% 20%, #173a52, #08141c); }
/* Colour per reward kind (owner, 2026-11-30): coins orange, music blue, Double XP green, Double coins yellow. */
.lx-card[data-type="coins"] { background: radial-gradient(120% 90% at 50% 25%, #c8611c, #5a2208 60%, #2a0e04); }
.lx-card[data-type="song"] { background: radial-gradient(120% 90% at 50% 25%, #2a64a8, #12305a 60%, #08162c); }
.lx-card[data-type="boost"][data-boost="xp"] { background: radial-gradient(120% 90% at 50% 25%, #3a9a4a, #16502a 60%, #082412); }
.lx-card[data-type="boost"][data-boost="coins"] { background: radial-gradient(120% 90% at 50% 25%, #e0b41e, #8a6408 60%, #3a2804); }
/* Legacy Pass tiles you can't have yet: padlock in the middle. */
.lx-padlock { position: absolute; left: 50%; top: 44%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  transform: translate(-50%, -50%); color: var(--gold); background: rgba(0, 0, 0, .62); border: 2px solid rgba(242, 200, 91, .7); box-shadow: 0 6px 18px rgba(0, 0, 0, .55); pointer-events: none; }
.lx-padlock svg { width: 30px; height: 30px; }
.lx-card:hover { transform: translateY(-3px); }
.lx-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lx-art { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.lx-pics { position: absolute; inset: 0; display: flex; }
.lx-pics img { flex: 1; min-width: 0; height: 100%; object-fit: cover; object-position: center 18%; }
.lx-pics img[data-kind="map"] { object-position: center; }
.lx-pics[data-n="2"] img + img { border-left: 2px solid rgba(0, 0, 0, .6); }
/* Live dance stage inside a Boogie tile. The old photo never shows (owner, 2026-11-27): the empty stage
   sits there until the dancer is ready; the photo only comes back if the 3D dancer can't load. */
.lx-card[data-type="dance"] .lx-art { background: radial-gradient(80% 70% at 50% 40%, #4a2366, #12071c); }
.lx-card[data-type="dance"]:not(.is-dance-failed) .lx-pics { visibility: hidden; }
.lx-dance { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 50% 40%, #4a2366, #12071c); }
.lx-dance canvas { display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s; }
.lx-dance[data-state="ready"] canvas { opacity: 1; }
.lx-card[data-type="dance"]:has(.lx-dance[data-state="error"]) .lx-pics { visibility: visible; }
.lx-dance[data-state="error"] { display: none; }
.lx-icon svg { width: 72px; height: 72px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.lx-big { font-size: 2.3rem; line-height: 1; font-weight: 900; color: var(--gold); text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
.lx-boost { display: flex; align-items: baseline; gap: 6px; }
.lx-boost span { font-weight: 800; font-size: 1.2rem; }
.lx-time { margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .4); font-weight: 700; font-size: .85rem; }
.lx-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; text-align: left; font-weight: 800; font-size: .95rem; line-height: 1.15;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-chips { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.lx-chip { padding: 3px 8px; border-radius: 99px; font-size: .72rem; font-weight: 800; color: #2a1406; background: var(--gold); }
.lx-badge { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.lx-badge svg { width: 14px; height: 14px; }
.lx-badge.is-claim { color: #2a1406; background: var(--gold); box-shadow: 0 0 0 0 rgba(242, 200, 91, .7); animation: lx-ping 1.5s infinite; }
.lx-badge.is-done { color: #1b0d09; background: #9be37a; padding: 5px; }
.lx-badge.is-lock, .lx-badge.is-pass { color: var(--ink); background: rgba(0, 0, 0, .6); }
.lx-badge.is-pass { color: var(--gold); }

.lx-card[data-state="claimable"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(242, 200, 91, .45); animation: lx-glow 2s infinite; }
.lx-card[data-state="claimable"]::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 190, .35) 50%, transparent 65%);
  transform: translateX(-100%); animation: lx-sheen 2.4s infinite; pointer-events: none; }
.lx-card[data-state="locked"] .lx-art, .lx-card[data-state="pass"] .lx-art { filter: grayscale(.3) brightness(.72); }
/* Claimed keeps the full gold, colourful art of a waiting reward (owner, 2026-11-27): just no outline and no Claim tag. */
.lx-card[data-state="claimed"] .lx-art { filter: none; }
.lx-card[data-state="claimed"] { border-color: transparent; box-shadow: none; }
.lx[data-owned="false"] .lx-card[data-track="pass"] { border-style: dashed; border-color: rgba(242, 200, 91, .35); }

/* Tap feedback */
.lx-tip { position: absolute; left: 50%; top: 50%; z-index: 3; padding: 7px 12px; border-radius: 10px; white-space: nowrap; font-weight: 800; font-size: .85rem;
  background: rgba(0, 0, 0, .85); color: var(--ink); transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: .2s; pointer-events: none; }
.lx-card.is-tip .lx-tip { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lx-card.is-nudge { animation: lx-nudge .35s; }
.lx-card.is-claiming { animation: lx-pop .6s cubic-bezier(.2, 1.6, .4, 1); }

/* Columns slide in: free from above, pass from below */
.lx-row .lx-card { opacity: 0; transform: translateY(-18px); }
.lx-row .lx-card[data-track="pass"] { transform: translateY(18px); }
.lx-row.is-in .lx-card { opacity: 1; transform: none; transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .3, 1), box-shadow .25s, filter .3s, border-color .3s; }
.lx-row.is-in .lx-card:hover { transform: translateY(-3px); }

@keyframes lx-sheen { to { transform: translateX(100%); } }
@keyframes lx-pulse { 50% { transform: scale(1.04); box-shadow: 0 10px 34px rgba(242, 200, 91, .55); } }
@keyframes lx-glow { 50% { box-shadow: 0 0 0 1px var(--gold), 0 0 40px rgba(242, 200, 91, .7); } }
@keyframes lx-ping { 70% { box-shadow: 0 0 0 10px rgba(242, 200, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 200, 91, 0); } }
@keyframes lx-ring { 0% { box-shadow: 0 0 0 0 rgba(242, 200, 91, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(242, 200, 91, 0); } }
@keyframes lx-nudge { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@keyframes lx-pop { 0% { scale: 1; } 40% { scale: 1.1; } 100% { scale: 1; } }

@media (max-width: 640px) {
  .lx { --gap: 12px; }
  .lx-hero { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
  .lx-ring { width: 88px; }
  .lx-ring b { font-size: 2rem; }
  .lx-hero-copy h2 { font-size: 1.25rem; }
  .lx-hero-act { grid-column: 1 / -1; grid-auto-flow: column; justify-content: stretch; }
  .lx-claim-all { grid-auto-flow: column; gap: 10px; width: 100%; padding: 12px; }
  .lx-claim-all b { font-size: 1.3rem; }
  .lx-node b { width: 34px; height: 34px; font-size: .85rem; }
  .lx-card { border-radius: 14px; }
  .lx-icon svg { width: 54px; height: 54px; }
  .lx-big { font-size: 1.8rem; }
  .lx-cap { font-size: .82rem; padding: 18px 9px 7px; }
  .lx-pass-faces img { width: 32px; height: 32px; }
}
/* Header (owner's layout): big level ring left · Season 1 / LEGACY ROAD centre · Legacy Pass right. Nothing else. */
/* Ring's left edge and the Pass box's right edge line up with the ends of the Free / Legacy Pass bar below. */
.lx-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-content: stretch; align-items: center; gap: 24px; margin: 0 0 24px; padding: 0;
  border: 0; font-size: inherit; letter-spacing: normal; color: inherit; }
/* The site-wide `header` rule adds a grey underline and a decorative ::after that became an empty grid row. */
/* (Greek theme's page-header ornament included: it would become an empty grid row.) */
.lx-top::before, .lx-top::after,
html body.roman-menu main > .roman-page.lx > header.lx-top:first-of-type::before,
html body.roman-menu main > .roman-page.lx > header.lx-top:first-of-type::after { content: none; display: none; }
/* One even 24px step: ← Home · header · Free / Legacy Pass bar. */
body.roman-menu .lx :is(#rank-home, #_) { margin: 0 0 24px; }
.lx .lx-cols { margin-top: 0; }
.lx-level { display: grid; justify-items: center; gap: 8px; justify-self: start; }
.lx-top .lx-ring { width: 150px; }
.lx-top .lx-ring b { font-size: 3.4rem; }
.lx-top .lx-xp { margin: 0; text-align: center; font-size: .9rem; }
.lx-titles { text-align: center; }
.lx-titles .lx-eyebrow { font-size: 1rem; font-weight: 800; letter-spacing: .35em; }
/* Beats the app-wide `body.roman-menu main h1` size so the title never runs into the ring or the Pass box. */
.lx-titles h1, body.roman-menu main .lx-titles h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: .95; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.lx .lx-top .lx-pass.lx-buy { background: linear-gradient(140deg, #4a1a10, #7a2c14 55%, #b4782a) !important; border: 1px solid rgba(242, 200, 91, .6) !important; box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 22px rgba(242, 200, 91, .2); border-radius: 18px; }
.lx .lx-top .lx-pass.lx-buy:hover { filter: brightness(1.12); }
.lx .lx-top .lx-pass.is-owned { background: rgba(242, 200, 91, .12) !important; border: 1px solid rgba(242, 200, 91, .5) !important; border-radius: 18px; }
.lx-top .lx-pass { justify-self: end; width: auto; max-width: 230px; margin: 0; flex-direction: column; text-align: center; gap: 8px; padding: 14px 18px; }
.lx-top .lx-pass-copy small { display: block; font-weight: 800; color: var(--gold); font-size: 1rem; }
.lx-top .lx-pass.is-owned { flex-direction: column; }
.lx-blank { width: 56%; height: 56%; border: 2px dashed rgba(247, 236, 214, .25); border-radius: 12px; }
.lx-chip.is-blank { color: var(--ink); background: rgba(0, 0, 0, .55); border: 1px dashed rgba(247, 236, 214, .4); }
.lx-badge.is-soon { color: var(--dim); background: rgba(0, 0, 0, .6); }
.lx-card[data-state="soon"] { border-style: dashed; cursor: default; }
/* Cards slide in from ±24px; without this, not-yet-revealed cards made the whole page scroll sideways on phones. */
.lx { overflow-x: clip; }
@media (max-width: 760px) {
  .lx-top { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring title" "pass pass"; gap: 14px; }
  .lx-level { grid-area: ring; }
  .lx-titles { grid-area: title; text-align: left; min-width: 0; }
  /* "LEGACY ROAD" ran 31px off a 375px screen: let it wrap and size to the space. */
  .lx-titles h1, body.roman-menu main .lx-titles h1 { white-space: normal; font-size: clamp(1.7rem, 8.5vw, 2.4rem); overflow-wrap: anywhere; }
  .lx-top .lx-pass { grid-area: pass; justify-self: stretch; max-width: none; min-width: 0; width: 100%; box-sizing: border-box; flex-direction: row; text-align: left; white-space: normal; }
  .lx-top .lx-pass-copy { min-width: 0; }
  .lx-top .lx-ring { width: 104px; }
  .lx-top .lx-ring b { font-size: 2.4rem; }
}
/* Designed faces for rewards without a picture (coins, boosts, songs, dances). */
.lx-art[data-scene] { overflow: hidden; }
.lx-art[data-scene="coins"] { background: radial-gradient(70% 70% at 50% 45%, rgba(242, 200, 91, .32), transparent 70%); }
.lx-art[data-scene="boost-xp"] { background: radial-gradient(70% 70% at 50% 45%, rgba(110, 190, 255, .3), transparent 70%), linear-gradient(160deg, #0f2236, #08101a); }
.lx-art[data-scene="boost-coins"] { background: radial-gradient(70% 70% at 50% 45%, rgba(255, 170, 60, .34), transparent 70%), linear-gradient(160deg, #3a2208, #140a03); }
.lx-art[data-scene="song"] { background: radial-gradient(70% 70% at 50% 45%, rgba(110, 200, 190, .25), transparent 70%), linear-gradient(160deg, #10282a, #071214); }
.lx-art[data-scene="dance"] { background: linear-gradient(180deg, #2a0f3a, #12071c); }
.lx-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(255, 236, 180, .09) 0 8deg, transparent 8deg 22deg); animation: lx-spin 40s linear infinite; pointer-events: none; }
.lx-spark { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; background: #fff3c4; border-radius: 50%; box-shadow: 0 0 10px 3px rgba(255, 236, 170, .7); opacity: 0; animation: lx-twinkle 2.8s var(--d) infinite; pointer-events: none; }
.lx-pile { position: relative; width: 46%; max-width: 170px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); margin-bottom: -6px; }
.lx-art[data-scene="coins"] .lx-big { position: relative; font-size: 2.6rem; }
.lx-boost-badge { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border-radius: 20px; background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 24px rgba(255, 255, 255, .06); }
.lx-bolt svg { width: 52px; height: 52px; filter: drop-shadow(0 0 12px rgba(242, 200, 91, .6)); }
.lx-art[data-scene="boost-xp"] .lx-big, .lx-art[data-scene="boost-xp"] .lx-boost-kind { color: #9fd6ff; }
.lx-art[data-scene="boost-xp"] .lx-bolt svg { filter: drop-shadow(0 0 12px rgba(120, 200, 255, .8)) hue-rotate(170deg); }
.lx-boost-kind { font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.lx-art[data-scene] .lx-time { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px; font-size: .9rem; }
.lx-time svg { width: 15px; height: 15px; }
.lx-vinyl { position: relative; display: block; width: 92px; height: 92px; animation: lx-spin 6s linear infinite; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.lx-vinyl svg { width: 100%; height: 100%; }
.lx-notes { position: absolute; inset: 0; pointer-events: none; }
.lx-notes i { position: absolute; font-style: normal; font-size: 1.5rem; color: #8fe0d2; opacity: 0; animation: lx-float 3.2s infinite; }
.lx-notes i:nth-child(1) { left: 26%; top: 52%; }
.lx-notes i:nth-child(2) { left: 68%; top: 46%; animation-delay: 1.1s; }
.lx-notes i:nth-child(3) { left: 58%; top: 62%; animation-delay: 2.2s; }
.lx-floor { position: absolute; left: -10%; right: -10%; bottom: 0; height: 42%; transform: perspective(200px) rotateX(55deg); transform-origin: bottom;
  background: repeating-conic-gradient(#ff5fa2 0 25%, #5f7bff 0 50%) 0 0 / 34px 34px; opacity: .35; animation: lx-disco 1.6s steps(2) infinite; }
.lx-spot { position: absolute; left: 50%; top: -10%; width: 70%; height: 110%; transform: translateX(-50%); background: conic-gradient(from 160deg at 50% 0, transparent, rgba(255, 240, 200, .28) 20deg, transparent 40deg); pointer-events: none; }
.lx-dancer { position: relative; display: block; width: 112px; height: 112px; animation: lx-bop .9s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px rgba(255, 95, 162, .55)); }
.lx-dancer svg { width: 100%; height: 100%; }
/* Coins that come with a reward: big, obvious badge. */
.lx-plus { position: absolute; z-index: 2; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: 99px;
  color: #2a1406; background: linear-gradient(180deg, #ffe9a3, var(--gold) 55%, var(--gold-2)); border: 2px solid #fff3c4; box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 18px rgba(242, 200, 91, .55); }
.lx-plus svg { width: 26px; height: 26px; }
.lx-plus b { font-size: 1.45rem; line-height: 1; font-weight: 900; }
.lx-plus small { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
/* Eye: this card opens a preview. */
.lx-view { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); opacity: .8; transition: opacity .2s, transform .2s; }
.lx-view svg { width: 17px; height: 17px; }
.lx-card:hover .lx-view { opacity: 1; transform: scale(1.1); }
@keyframes lx-spin { to { transform: rotate(360deg); } }
@keyframes lx-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes lx-float { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-36px) rotate(12deg); } }
@keyframes lx-disco { 50% { filter: hue-rotate(90deg); } }
@keyframes lx-bop { from { transform: rotate(-6deg) translateY(2px); } to { transform: rotate(6deg) translateY(-4px); } }
@media (max-width: 640px) {
  .lx-plus { left: 6px; top: 6px; gap: 3px; padding: 3px 8px 3px 4px; } .lx-plus svg { width: 16px; height: 16px; } .lx-plus b { font-size: 1rem; } .lx-plus small { font-size: .6rem; }
  .lx-vinyl, .lx-dancer { width: 64px; height: 64px; } .lx-bolt svg { width: 26px; height: 26px; }
  .lx-boost-badge { gap: 4px; padding: 5px 9px 5px 6px; border-radius: 14px; }
  .lx-boost-badge .lx-big { font-size: 1.4rem; } .lx-boost-kind { font-size: .8rem; }
  .lx-art[data-scene] .lx-time { font-size: .72rem; padding: 2px 8px; margin-top: 6px; }
  .lx-art[data-scene="coins"] .lx-big { font-size: 1.8rem; } .lx-pile { width: 56%; }
}
/* View-only Shop card opened from Legacy Road. */
.ecs-view-also { margin: 14px 0 0; }
.ecs-view-also p { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 236, 214, .62); }
.ecs-view-also div { display: flex; flex-wrap: wrap; gap: 8px; }
.ecs-view-also button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; font: inherit; font-size: .85rem; color: #f7ecd6; background: rgba(0, 0, 0, .3); border: 2px solid rgba(246, 220, 156, .2); cursor: pointer; }
.ecs-view-also button[aria-pressed="true"] { border-color: #f6dc9c; background: rgba(246, 220, 156, .12); }
.ecs-view-also span { width: 30px; height: 30px; border-radius: 50%; background: center 20% / cover; }
.ecs-view-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font-weight: 700; color: #f6dc9c; background: rgba(246, 220, 156, .08); border: 1px solid rgba(246, 220, 156, .25); }
@media (prefers-reduced-motion: reduce) {
  .lx *, .lx *::after { animation: none !important; transition: none !important; }
  .lx-spark { opacity: .7; }
  .lx-row .lx-card { opacity: 1; transform: none; }
}

/* ================================================================ Horizontal road (owner, 2026-11-27)
   Whole road in one screen under the header: level (top left) · title (centre) · Pass (top right),
   then one column per level (free card on top at half the Pass card's height), then the sword scroller.
   The page is exactly one window tall, so one scroll down brings the footer in. */
body.roman-menu:not(.duel-view):not(.home-view) > #app > .lx { flex: 1 1 0; min-height: 0; }
.lx { display: flex; flex-direction: column; gap: 14px; max-width: none; width: 100%; box-sizing: border-box; padding: 0 16px; min-height: 440px; }
.lx > .lx-top { flex: none; margin: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
.lx-level { grid-auto-flow: column; align-items: center; justify-self: start; gap: 12px; }
.lx-top .lx-ring { width: 88px; }
.lx-top .lx-ring b { font-size: 2.2rem; }
.lx-top .lx-ring small { font-size: .6rem; }
.lx-top .lx-xp { text-align: left; max-width: 11em; }
.lx-top .lx-xp b { display: block; font-size: 1.35rem; color: var(--gold); }
.lx-titles h1, body.roman-menu main .lx-titles h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.lx-top .lx-pass { flex-direction: row; text-align: left; max-width: 300px; padding: 10px 14px; gap: 12px; }
.lx-top .lx-pass.is-owned { flex-direction: row; }
.lx-top .lx-pass-faces img { width: 34px; height: 34px; }

/* Track: scrolls sideways (sword, trackpad, shift + wheel). A plain wheel still scrolls the page down. */
.lx-track { --node: 52px; --g: 12px; flex: 1 1 0; min-height: 0; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; container-type: size; padding: 4px 2px; }
.lx-track::-webkit-scrollbar { display: none; }
.lx-road { --row: calc((100cqh - var(--node) - 2 * var(--g)) / 3); --col: clamp(132px, calc(var(--row) * 2 * .74), 300px);
  list-style: none; margin: 0; padding: 0 24px 0 0; display: flex; gap: 16px; flex: none; }
.lx-row { position: relative; flex: none; width: var(--col); display: grid; grid-template-rows: var(--row) var(--node) calc(var(--row) * 2); row-gap: var(--g); }
.lx .lx-card { aspect-ratio: auto; height: 100%; }
.lx .lx-card[data-track="free"] .lx-cap { font-size: .82rem; padding-top: 16px; }
.lx .lx-card[data-track="free"] .lx-pics img { object-position: center 22%; }
.lx .lx-card[data-track="free"] .lx-icon svg { width: 48px; height: 48px; }
.lx .lx-card[data-track="free"] .lx-big { font-size: 1.7rem; }
.lx .lx-card[data-track="free"] :is(.lx-vinyl, .lx-dancer) { width: 56px; height: 56px; }
.lx .lx-card[data-track="free"] .lx-pile { width: 30%; }
/* No pass: the whole Legacy Pass row is greyed out. */
/* Owner 2026-11-28: Pass rewards stay in colour for non-owners so they look worth buying (the dashed edge + Pass tag say it is locked). */
/* Owner 2026-11-30: Legacy Pass row is more vibrant than the free row, owned or not. */
.lx .lx-card[data-track="free"]:not([data-state="claimable"]) { filter: saturate(.72) brightness(.88); }
.lx .lx-card[data-track="free"]:not([data-state="claimable"]):hover { filter: saturate(.85) brightness(.95); }
.lx .lx-card[data-track="pass"] .lx-art, .lx[data-owned="false"] .lx-card[data-track="pass"] .lx-art { filter: saturate(1.35) brightness(1.08) contrast(1.05); }
.lx .lx-card[data-track="pass"]:not([data-state="claimable"]) { box-shadow: 0 0 22px -8px rgba(242, 200, 91, .55); }
.lx[data-owned="false"] .lx-card[data-track="pass"] { border-color: rgba(242, 200, 91, .6); }
.lx[data-owned="false"] .lx-card[data-track="pass"] .lx-cap { color: var(--ink); }

/* Lane labels: a slim column pinned at the left edge of the track. */
.lx .lx-cols { position: sticky; left: 0; z-index: 3; flex: none; width: 30px; margin: 0; padding: 0; display: grid;
  grid-template-rows: calc((100cqh - var(--node) - 2 * var(--g)) / 3) var(--node) 1fr; row-gap: var(--g);
  background: none; backdrop-filter: none; border-radius: 0; }
.lx .lx-cols span { display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 10px;
  font-size: .72rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; color: var(--dim); background: #1e0e0a; border: 1px solid var(--line); }
.lx .lx-cols span:nth-child(2) { background: none; border: 0; }
.lx .lx-cols span:last-child { color: var(--gold); }

/* Level nodes and the XP line joining them left to right. */
.lx-node { position: relative; display: grid; place-items: center; }
.lx-node b { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: #241310; border: 2px solid rgba(255, 255, 255, .15); color: var(--dim); transition: .4s; }
.lx-row[data-reached] .lx-node b { background: linear-gradient(180deg, #ffe08a, var(--gold-2)); border-color: #fff3c4; color: #2a1406; }
.lx-row[data-next] .lx-node b { border-color: var(--gold); color: var(--gold); animation: lx-ring 1.8s infinite; }
.lx-node em { position: absolute; z-index: 2; left: calc(50% + 28px); white-space: nowrap; font-style: normal; font-size: .72rem; font-weight: 800;
  padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #2a1406; }
.lx-line { position: absolute; top: calc(50% - 3px); height: 6px; right: 50%; left: calc(-50% - 16px); border-radius: 3px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.lx-row:first-child .lx-line { left: -14px; }
.lx-line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform .7s ease-out .15s; }
.lx-row.is-in .lx-line::after { transform: scaleX(var(--fill, 0)); }

/* Sword scroller: blade = scroll thumb, tip points the way, gold trail behind it. */
.lx-sword { flex: none; padding: 0 6px 22px; outline: none; touch-action: none; user-select: none; }
.lx-sword:focus-visible .lx-rail { box-shadow: 0 0 0 2px var(--gold); border-radius: 99px; }
.lx-rail { position: relative; height: 34px; cursor: pointer; }
.lx-rail::before { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.lx-trail { position: absolute; left: 0; top: calc(50% - 2px); height: 4px; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 70%, #fff3c4); box-shadow: 0 0 12px rgba(242, 200, 91, .55); }
.lx-ticks { position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; }
.lx-ticks i { position: absolute; top: 4px; transform: translateX(-50%); font-style: normal; font-size: .72rem; font-weight: 800; color: var(--dim); opacity: .45; transition: opacity .2s, color .2s; }
.lx-ticks i::before { content: ''; position: absolute; left: 50%; top: -10px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 1px; }
.lx-ticks i[data-reached] { color: var(--gold); }
.lx-ticks i[data-in] { opacity: 1; }
.lx-blade { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; min-width: 120px; display: flex; align-items: center; cursor: grab;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55)); }
.lx-sword.is-drag .lx-blade { cursor: grabbing; }
.lx-pommel { flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, var(--gold) 45%, var(--gold-2)); }
.lx-grip { flex: none; width: 30px; height: 9px; margin-left: -2px; border-radius: 2px;
  background: repeating-linear-gradient(100deg, #5a2a14 0 4px, #3a170b 4px 7px); border-top: 1px solid #7a3d1c; }
.lx-guard { flex: none; width: 9px; height: 32px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-2), #fff3c4 50%, var(--gold-2)); }
.lx-steel { flex: 1; height: 14px; margin-left: -1px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  background: linear-gradient(180deg, #f4f6f8 0%, #c7ccd3 45%, #8d949e 52%, #dfe3e8 100%); }
.lx-steel::after { content: ''; display: block; height: 2px; margin-top: 6px; margin-right: 26px; background: rgba(90, 96, 106, .55); }
.lx-sword[data-static] .lx-blade { cursor: default; }

@media (max-width: 760px) {
  .lx { min-height: 520px; padding: 0 12px; }
  .lx > .lx-top { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .lx-top .lx-ring { width: 72px; }
  .lx-top .lx-ring b { font-size: 1.8rem; }
  .lx-top .lx-xp { font-size: .8rem; }
  .lx-top .lx-xp b { font-size: 1.1rem; }
  .lx .lx-cols { width: 24px; }
  .lx-road { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-line::after { transform: scaleX(var(--fill, 0)) !important; }
}

/* Full width (owner, 2026-11-27): road, level ring and Pass box run edge to edge; ring and Pass sit in the true corners. */
body.roman-menu > main:has(> .roman-page.lx) { max-width: none; padding-inline: 0; }
body.roman-menu main > .roman-page.lx:not(.character-page) { width: 100%; max-width: none; margin-inline: 0; padding-inline: clamp(16px, 1.6vw, 28px); box-sizing: border-box; }
@media (min-width: 761px) {
  .lx > .lx-top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
  .lx > .lx-top .lx-level { justify-self: start; }
  .lx > .lx-top .lx-pass { justify-self: end; }
}

/* Spear scroller (owner, 2026-11-27): a long Macedonian sarissa instead of a sword. Only the ash shaft stretches;
   bronze butt-spike at the back, leaf-shaped iron head pointing the way. */
.lx-blade { min-width: 140px; }
.lx-butt { flex: none; width: 20px; height: 10px; clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(180deg, #fff3c4, var(--gold) 45%, var(--gold-2)); }
.lx-shaft { flex: 1; height: 6px; margin-left: -1px; border-radius: 1px;
  background: linear-gradient(180deg, #c99a62 0%, #8a5a2e 55%, #5a3418 100%); box-shadow: inset 0 1px 0 rgba(255, 236, 200, .25); }
.lx-socket { flex: none; width: 14px; height: 9px; margin-left: -1px; border-radius: 2px;
  background: linear-gradient(180deg, #fff3c4, var(--gold) 45%, var(--gold-2)); box-shadow: inset 3px 0 0 rgba(0, 0, 0, .25); }
.lx-head { flex: none; width: 46px; height: 18px; margin-left: -1px;
  clip-path: polygon(0 38%, 28% 0, 62% 8%, 100% 50%, 62% 92%, 28% 100%, 0 62%);
  background: linear-gradient(180deg, #f4f6f8 0%, #c7ccd3 44%, #7d848e 50%, #c7ccd3 56%, #e6e9ed 100%); }

/* Breathing room between the title row and the free lane (owner, 2026-11-27). */
.lx > .lx-top { margin-bottom: clamp(22px, 4vh, 44px); }

/* Spear v2 (owner, 2026-11-27): fixed length, every part pinned to the rail's centre line. */
.lx-blade { width: clamp(150px, 13vw, 230px) !important; min-width: 0; display: block; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }
.lx-blade > i { position: absolute; top: 50%; display: block; transform: translateY(-50%); margin: 0; }
.lx-butt { left: 0; width: 16px; height: 9px; }
.lx-shaft { left: 14px; right: 50px; height: 5px; background: linear-gradient(180deg, #e2bb86 0%, #9a6634 55%, #5a3418 100%); }
.lx-socket { right: 38px; width: 14px; height: 9px; }
.lx-head { right: 0; width: 40px; height: 16px; }

/* Bigger reward cards: fewer levels in view at once. */
.lx-road { --col: clamp(170px, calc(var(--row) * 2 * .92), 380px); gap: 20px; }
.lx-line { left: calc(-50% - 20px); }
body.roman-menu > main:has(> .roman-page.lx) { padding-bottom: 0; }
.lx-sword { padding-bottom: 26px; }

/* Spear length = about three level ticks on the rail (level 1 to 4). */
.lx-blade { width: 20% !important; min-width: 180px; }

/* Back to a sword (owner, 2026-11-27), same length as the spear (level 1 to 4), every part on the rail's centre line. */
.lx-pommel { left: 0; }
.lx-grip { left: 12px; margin: 0; }
.lx-guard { left: 40px; }
.lx-steel { left: 48px; right: 0; margin: 0; }

/* Click, hold and drag the road. */
.lx-track { cursor: grab; }
.lx-track.is-grabbing { cursor: grabbing; user-select: none; }
.lx-track.is-grabbing .lx-card { pointer-events: none; }

/* Sword 10% slimmer (owner, 2026-11-27). */
.lx-blade { transform: scaleY(.9); }

/* Coin and boost reward art (legacy-pass.js rewardArt): theme-coloured gold, no photos. */
.lxr { position: absolute; left: 2%; top: 0; width: 96%; height: 84%; overflow: visible;
  --lxr-face: var(--ec-gold, #d9ab52); --lxr-edge: var(--ec-gold-lo, #8f6526); --lxr-hi: var(--ec-gold-hi, #f6dc9c);
  --lxr-ink: color-mix(in srgb, var(--ec-gold-lo, #8f6526) 55%, #000); }
.lxr .glow { fill: var(--lxr-hi); opacity: .045; }
.lxr .sh { fill: #000; opacity: .38; }
.lxr .e { fill: var(--lxr-edge); stroke: var(--lxr-ink); stroke-width: .6; }
.lxr .f { fill: var(--lxr-face); stroke: var(--lxr-ink); stroke-width: .6; }
.lxr .r { fill: none; stroke: var(--lxr-edge); stroke-width: .9; }
.lxr .d { fill: none; stroke: var(--lxr-hi); stroke-width: .7; stroke-dasharray: .1 2.2; stroke-linecap: round; opacity: .9; }
.lxr .g { fill: none; stroke: var(--lxr-ink); stroke-linecap: round; stroke-linejoin: round; }
.lxr .l { fill: var(--lxr-face); stroke: var(--lxr-ink); stroke-width: .5; }
.lxr .xp { font: 700 26px "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; fill: var(--lxr-hi); stroke: var(--lxr-ink); stroke-width: .6; paint-order: stroke; letter-spacing: .5px; }
.lxr .x2 rect { fill: var(--ec-wine, #7a241e); stroke: var(--lxr-face); stroke-width: .9; }
.lxr .x2 text { font: 700 12.5px "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; fill: var(--lxr-hi); }
.lxr .s { stroke: var(--lxr-hi); stroke-width: .8; opacity: .85; }
.lxr .n { fill: none; stroke: var(--lxr-face); stroke-width: 2.2; stroke-linejoin: round; }
.lxr .k { fill: var(--lxr-ink); }
.lxr .w { fill: var(--ec-wine-hi, #b8362e); stroke: var(--lxr-ink); stroke-width: .6; }
.lxr .rd { fill: none; stroke: var(--lxr-ink); stroke-width: 3; stroke-dasharray: .45 1.3; opacity: .35; }
.lxr .m { fill: none; stroke: var(--lxr-ink); stroke-width: 1.6; }
.lxr .f, .lxr .e, .lxr .l, .lxr .w { stroke-opacity: .7; }
.lxr .ray { opacity: .55; }
.lxr .gl { fill: #fffbe8; opacity: .95; }
.lxr .glow { display: none; }