/* ── The Unending Journey ── */
.jr-section { max-width: 1400px; margin: 20px auto 0; padding: 0 20px; position: relative; z-index: 3; }
.jr-card { padding: 20px 0 14px; }
.jr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 22px 10px; }
.jr-head h3 { font-family: 'Cinzel', serif; font-size: 0.94rem; font-weight: 600; color: var(--th-color); letter-spacing: 2.5px; text-transform: uppercase; margin: 0; }
.jr-preview-tag { font-family: 'Nunito', sans-serif; font-size: 0.62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: #b8943f; border-radius: 999px; padding: 2px 9px; margin-left: 10px; vertical-align: middle; }

/* expansion tabs */
.jr-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--border-color); background: rgba(164,166,171,0.08); }
.jr-tab { font-family: 'Nunito', sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; color: var(--th-color); background: none; border: none; border-radius: 999px; padding: 5px 14px; cursor: pointer; transition: color 0.2s, background 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.jr-tab:hover:not(:disabled) { color: var(--heading-color); }
.jr-tab.active { color: var(--heading-color); background: rgba(184,148,63,0.16); box-shadow: inset 0 0 0 1px rgba(184,148,63,0.4); }
.jr-tab:disabled { cursor: not-allowed; opacity: 0.55; }
.jr-tab .jr-soon { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.8px; padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.8; }
.jr-meta { padding: 0 22px 4px; font-family: 'Nunito', sans-serif; font-size: 0.74rem; font-weight: 600; color: var(--server-tag); display: flex; gap: 14px; flex-wrap: wrap; }
.jr-meta .jr-key { display: inline-flex; align-items: center; gap: 6px; }
.jr-key-dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); border: 1.5px solid #b8943f; }
.jr-key-dot.p { border-radius: 50%; transform: none; border-color: #1a9900; background: rgba(26,153,0,0.25); }

/* scrolling stage */
.jr-viewport { position: relative; }
.jr-scroll { overflow: hidden; }
.jr-track { will-change: transform; }
.jr-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 22px 0; }
.jr-arrow { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 0 2px;
  font: 700 1.35rem/1 'Nunito', sans-serif; color: var(--heading-color); cursor: pointer;
  border: 1px solid rgba(184,148,63,0.45); border-top: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(var(--card-bg), var(--card-bg)), var(--bg-dark);
  box-shadow: 0 3px 12px rgba(0,0,0,0.1); transition: opacity 0.2s, border-color 0.2s, transform 0.2s; }
.jr-arrow:hover:not(:disabled) { border-color: #b8943f; transform: scale(1.08); }
.jr-arrow:disabled { opacity: 0.25; cursor: default; }
.jr-range { min-width: 170px; text-align: center; font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 800; color: var(--heading-color); letter-spacing: 0.3px; font-variant-numeric: tabular-nums; }
.jr-track { position: relative; height: var(--jr-h, 420px); }

/* year ticks */
.jr-year { position: absolute; top: calc(var(--jr-line) + 12px); transform: translateX(-50%); font-family: 'Cinzel', serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 1.5px; color: var(--th-color); pointer-events: none; }
.jr-year::before { content: ''; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: var(--th-color); opacity: 0.6; }

/* ─ Design A: gold line ─ */
.jr-linea { position: absolute; left: 0; right: 0; top: var(--jr-line); height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(164,166,171,0.25); overflow: hidden; }
.jr-linea::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(184,148,63,0.25), #b8943f 30%, #d4a84b); transform-origin: left; transform: scaleX(1); transition: transform var(--fill-ms, 1.8s) linear 150ms; }
.jr-wait .jr-linea::after { transform: scaleX(0); }

/* ─ Design B: limit-break-style gauge bars (original design) ─ */
/* flat gold slanted casing */
.jr-lb { position: absolute; top: var(--jr-line); height: 18px; margin-top: -9px;
  /* slanted shape made by skewing a rounded box, so the corners can be rounded */
  transform: skewX(-24deg); border-radius: 5px;
  background: #b8943f; }
/* rounded inner tube that holds the limit juice */
.jr-lb-pill { position: absolute; top: 4px; bottom: 4px; left: 5px; right: 5px; border-radius: 999px; overflow: hidden; transform: skewX(24deg);
  background: linear-gradient(180deg, #1b1407 0%, #2c2210 60%, #3a2d14 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6); }
.jr-lb-pill::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%); mix-blend-mode: soft-light; }
/* the juice: gold for finished stretches */
.jr-lb-fill { position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 9px, rgba(255,250,225,0.22) 9px 13px),
    linear-gradient(180deg, #fff2c4 0%, #f2cf6e 30%, #d4a84b 60%, #9c7426 100%);
  background-size: 26px 100%, 100% 100%;
  box-shadow: 0 0 6px rgba(240,200,100,0.6);
  transform-origin: left; transition-property: transform; transition-timing-function: linear;
  animation: jr-flow 1.4s linear infinite, jr-full 0.9s ease-out var(--d, 0ms) 1 both; }
.jr-lb-fill::before { content: ''; position: absolute; left: 4px; right: 4px; top: 1px; height: 2px; border-radius: 2px; background: rgba(255,252,235,0.85); }
.jr-lb-fill::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40px; left: -60px; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.85), transparent); animation: jr-sheen 3.4s ease-in-out infinite; animation-delay: var(--sheen-delay, 0s); }
@keyframes jr-flow { to { background-position: 26px 0, 0 0; } }
@keyframes jr-sheen { 0% { left: -60px; } 55%, 100% { left: calc(100% + 30px); } }
@keyframes jr-full { 0% { filter: brightness(1); } 25% { filter: brightness(1.6); } 100% { filter: brightness(1.04); } }
.jr-wait .jr-lb-fill { transform: scaleX(0); animation-play-state: paused; }

/* the current stretch up to today: blue juice, part-filled and still charging */
.jr-lb.charging .jr-lb-fill {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 9px, rgba(220,245,255,0.22) 9px 13px),
    linear-gradient(180deg, #d9f5ff 0%, #6fd3ff 30%, #2496ee 62%, #0d55c2 100%);
  background-size: 26px 100%, 100% 100%;
  box-shadow: 0 0 6px rgba(90,190,255,0.7);
  border-radius: 999px 0 0 999px;
  transform: scaleX(var(--charge, 0.7)); animation: jr-flow 1.1s linear infinite, jr-breathe 1.8s ease-in-out infinite; }
.jr-wait .jr-lb.charging .jr-lb-fill { transform: scaleX(0); }
.jr-lb.charging .jr-front { position: absolute; z-index: 2; top: 0; bottom: 0; width: 4px; margin-left: -2px; left: calc(100% * var(--charge, 0.7)); border-radius: 2px; background: #fff; box-shadow: 0 0 5px 2px rgba(150,220,255,0.95); animation: jr-flicker 0.9s steps(2) infinite; transition: opacity 0.4s; }
.jr-wait .jr-lb.charging .jr-front { opacity: 0; }
@keyframes jr-breathe { 50% { filter: brightness(1.3); } }
@keyframes jr-flicker { 50% { opacity: 0.55; } }

/* nodes on the line */
.jr-node { position: absolute; top: var(--jr-line); z-index: 3; transform: translate(-50%, -50%); }
.jr-node.o { width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px; background: var(--bg-dark); border: 1.5px solid #b8943f; }
.jr-node.o.expansion { width: 14px; height: 14px; background: #b8943f; box-shadow: 0 0 10px rgba(184,148,63,0.6); }
.jr-node.p { width: 14px; height: 14px; border-radius: 50%; background: #1a9900; border: 2px solid var(--bg-dark); box-shadow: 0 0 0 2px rgba(26,153,0,0.4), 0 0 12px rgba(26,153,0,0.45); }
.jr-node.now { animation: jr-now 2s ease-in-out infinite; }
@keyframes jr-now { 50% { box-shadow: 0 0 0 6px rgba(184,148,63,0.12), 0 0 18px rgba(184,148,63,0.7); } }
.jr-today { position: absolute; top: var(--jr-line); transform: translate(-50%, -50%); z-index: 3; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--heading-color); background: var(--bg-dark); }
.jr-today-label { position: absolute; top: calc(var(--jr-line) + 12px); transform: translateX(-50%); font-family: 'Nunito', sans-serif; font-size: 0.6rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--heading-color); white-space: nowrap; }

/* events */
.jr-ev { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.jr-stem { width: 1px; background: linear-gradient(var(--stem-a), var(--stem-b)); }
.jr-ev.up { bottom: calc(var(--jr-h) - var(--jr-line) + 8px); }
.jr-ev.up .jr-stem { --stem-a: rgba(184,148,63,0.55); --stem-b: rgba(184,148,63,0.1); order: 2; }
.jr-ev.down { top: calc(var(--jr-line) + 8px); }
.jr-ev.down .jr-stem { --stem-a: rgba(26,153,0,0.15); --stem-b: rgba(26,153,0,0.55); }
.jr-wait .jr-ev.up { opacity: 0; transform: translate(-50%, -10px); }
.jr-wait .jr-ev.down { opacity: 0; transform: translate(-50%, 10px); }

.jr-chip { width: 124px; padding: 6px 8px; border-radius: 9px; text-align: center; border: 1px solid var(--border-color); border-top: 1px solid rgba(255,255,255,0.7); background: linear-gradient(var(--card-bg), var(--card-bg)), var(--bg-dark); box-shadow: 0 3px 12px rgba(0,0,0,0.05); display: grid; gap: 1px; }
.jr-chip-t { font-family: 'Nunito', sans-serif; font-size: 0.7rem; font-weight: 800; color: var(--boss-color); line-height: 1.25; }
.jr-chip-d { font-family: 'Nunito', sans-serif; font-size: 0.62rem; font-weight: 700; color: var(--server-tag); font-variant-numeric: tabular-nums; }
.jr-chip.expansion { border-color: rgba(184,148,63,0.6); background: linear-gradient(rgba(184,148,63,0.14), rgba(184,148,63,0.14)), var(--bg-dark); }
.jr-chip.expansion .jr-chip-t { color: var(--heading-color); font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.03em; }
.jr-chip .jr-live { justify-self: center; margin-top: 2px; font-family: 'Nunito', sans-serif; font-size: 0.55rem; font-weight: 800; letter-spacing: 1px; color: #fff; background: #b8943f; border-radius: 999px; padding: 0 7px; }

.jr-pc { width: 150px; padding: 10px; border-radius: 11px; text-align: center; border: 1px solid var(--border-color); border-top: 1px solid rgba(255,255,255,0.7); background: linear-gradient(var(--card-bg), var(--card-bg)), var(--bg-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.06); display: grid; gap: 4px; justify-items: center; text-decoration: none; transition: border-color 0.2s, transform 0.25s; }
a.jr-pc:hover { border-color: rgba(26,153,0,0.55); transform: translateY(-3px); }
.jr-pc-tag { font-family: 'Nunito', sans-serif; font-size: 0.64rem; font-weight: 800; letter-spacing: 1.3px; padding: 2px 10px; border-radius: 20px; background: rgba(26,153,0,0.12); border: 1px solid rgba(26,153,0,0.35); color: #1a9900; }
.jr-pc-t { font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 600; color: var(--boss-color); line-height: 1.3; }
.jr-pc-d { font-family: 'Nunito', sans-serif; font-size: 0.68rem; font-weight: 700; color: var(--server-tag); font-variant-numeric: tabular-nums; }
.jr-pc-v { font-family: 'Nunito', sans-serif; font-size: 0.64rem; font-weight: 800; color: #e05050; }
.jr-pc.savage .jr-pc-tag { background: rgba(196,94,0,0.1); border-color: rgba(196,94,0,0.35); color: var(--orange); }

.jr-hint { padding: 6px 22px 0; font-family: 'Nunito', sans-serif; font-size: 0.66rem; color: var(--th-color); }

@media (prefers-reduced-motion: reduce) {
  .jr-lb-fill, .jr-lb-fill::after, .jr-lb.charging .jr-lb-fill, .jr-lb.charging .jr-front, .jr-node.now { animation: none; }
  .jr-wait .jr-linea::after, .jr-wait .jr-lb-fill { transform: none; }
  .jr-wait .jr-ev.up, .jr-wait .jr-ev.down { opacity: 1; transform: translateX(-50%); }
}

/* upcoming (announced, not started yet) */
.jr-chip .jr-live.soon { background: none; color: var(--heading-color); border: 1px solid rgba(184,148,63,0.6); }
.jr-linea-future { position: absolute; top: var(--jr-line); height: 0; margin-top: -1px; border-top: 2px dashed rgba(184,148,63,0.45); z-index: 1; }
.jr-lb.future { opacity: 0.55; }
.jr-lb.future .jr-lb-fill { transform: scaleX(0) !important; }

/* official events that link to their Lodestone post */
a.jr-chip { text-decoration: none; transition: border-color 0.2s, transform 0.25s; }
a.jr-chip:hover { border-color: rgba(184,148,63,0.7); transform: translateY(-2px); }
a.jr-chip .jr-chip-t::after { content: ' ↗'; font-size: 0.8em; color: var(--th-color); }

/* personal event colours: ultimate = green, savage = orange, milestones (bond, birthday) = rose */
.jr-key-dot.p.savage { border-color: #c45e00; background: rgba(196,94,0,0.25); }
.jr-key-dot.p.bond { border-color: #c4427a; background: rgba(196,66,122,0.25); }
.jr-node.p.savage { background: #c45e00; box-shadow: 0 0 0 2px rgba(196,94,0,0.4), 0 0 12px rgba(196,94,0,0.45); }
.jr-node.p.bond, .jr-node.p.birthday { background: #c4427a; box-shadow: 0 0 0 2px rgba(196,66,122,0.4), 0 0 12px rgba(196,66,122,0.45); }
.jr-pc.bond .jr-pc-tag, .jr-pc.birthday .jr-pc-tag { background: rgba(196,66,122,0.1); border-color: rgba(196,66,122,0.35); color: var(--pink); }
.jr-pc.bond .jr-pc-t, .jr-pc.birthday .jr-pc-t { font-family: 'Nunito', sans-serif; font-weight: 800; }
.jr-ev.down .jr-stem.savage { --stem-a: rgba(196,94,0,0.15); --stem-b: rgba(196,94,0,0.55); }
.jr-chip.fanfest { border-color: rgba(127,176,168,0.6); }
.jr-chip.fanfest .jr-chip-t { color: #5f9c92; }
.jr-ev.down .jr-stem.bond, .jr-ev.down .jr-stem.birthday { --stem-a: rgba(196,66,122,0.15); --stem-b: rgba(196,66,122,0.55); }
.jr-chip .jr-went { justify-self: center; margin-top: 2px; font-family: 'Nunito', sans-serif; font-size: 0.55rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: #c4427a; border-radius: 999px; padding: 0 7px; }
.jr-pc-icon { width: 32px; height: 32px; margin-top: 2px; filter: drop-shadow(0 2px 4px rgba(196,66,122,0.35)); }
/* chip with a picture behind it (e.g. Fan Festival key art) */
.jr-chip.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.jr-chip.has-bg::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--chip-bg) center / cover no-repeat; opacity: 0.32; }
.jr-chip.has-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, var(--card-bg)); }
