/* The adventurer's hall (the account home) and the character sheet. Tokens live in site.css. */

.hall { position: relative; isolation: isolate; padding: 128px 0 clamp(80px, 10vw, 120px); min-height: 90svh; overflow: hidden; }
.hall-sky { position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; }
.hall-sky img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: blur(4px) saturate(1.2); mask-image: linear-gradient(#000 30%, transparent); -webkit-mask-image: linear-gradient(#000 30%, transparent); }
.hall-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 28px; }
.hall-hello { display: grid; gap: 12px; }
.hall-name { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.hall-clock { padding: 16px 20px; display: grid; gap: 6px; min-width: 260px; }
.hall-clock .clock-day { margin: 0; }
.hall-clock .clock-day .mono { margin-left: auto; font-size: 1.4rem; }
.hall-blood { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; color: #ffd2c8; }
.hall-blood .eyebrow { color: #ff9b8a; }
@media (max-width: 760px) { .hall-head { grid-template-columns: 1fr; } }

.hall-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 40px; border: 1px solid var(--ash-20); border-radius: 16px; background: rgb(27 21 51 / 0.55); overflow: hidden; }
.hall-totals > div { padding: 18px 22px; display: grid; gap: 4px; }
.hall-totals > div + div { border-left: 1px solid var(--ash-15); }
.hall-totals dt { color: var(--ash); font-size: 0.8125rem; }
.hall-totals dd { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--mist); }
@media (max-width: 760px) {
  .hall-totals { grid-template-columns: 1fr 1fr; }
  .hall-totals > div:nth-child(3) { border-left: 0; }
  .hall-totals > div:nth-child(n+3) { border-top: 1px solid var(--ash-15); }
}
.hall-section { margin-bottom: 18px; }
.hall-cards { margin-top: 40px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* A character as a tall portrait card, like choosing them at the title screen. */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.hero-card {
  --tint: var(--lilac);
  position: relative; isolation: isolate; display: grid; align-items: end; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--ash-20); text-decoration: none; color: var(--mist); background: var(--panel-solid);
  box-shadow: 0 24px 50px -26px rgb(0 0 0 / 0.9);
  transition: translate 220ms var(--ease-out), border-color 220ms, box-shadow 220ms;
}
.hero-card[data-nation="sandoria"] { --tint: #e0566e; }
.hero-card[data-nation="bastok"] { --tint: #6f9be0; }
.hero-card[data-nation="windurst"] { --tint: #5fc48f; }
.hero-card:hover, .hero-card:focus-visible { translate: 0 -4px; border-color: color-mix(in srgb, var(--tint) 60%, transparent); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--tint) 45%, #000); color: var(--mist); }
.hero-card-portrait { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: scale 900ms var(--ease-out); }
.hero-card:hover .hero-card-portrait { scale: 1.05; }
.hero-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 11 30 / 0) 35%, rgb(15 11 30 / 0.92) 82%), linear-gradient(0deg, color-mix(in srgb, var(--tint) 22%, transparent), transparent 50%); }
.hero-card-crest { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.6)); }
.hero-card-online { position: absolute; top: 16px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgb(15 11 30 / 0.7); font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero-card-body { display: grid; gap: 3px; padding: 18px 18px 20px; }
.hero-card-name { font-size: 1.85rem; line-height: 1.05; }
.hero-card-job { color: var(--crystal); font-size: 0.9375rem; }
.hero-card-meta { color: var(--mist-80); font-size: 0.8125rem; line-height: 1.4; }
/* The card and, beside it, the "Public" link to its public profile (a link can't sit inside the card's link). */
.hero-slot { position: relative; display: grid; }
.hero-card-public { position: absolute; top: 16px; left: 14px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgb(243 199 106 / 0.55); background: rgb(15 11 30 / 0.75); color: var(--crystal); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; backdrop-filter: blur(6px); transition: translate 220ms var(--ease-out); }
.hero-card-public.is-below { top: 52px; }
.hero-slot:has(.hero-card:hover) .hero-card-public { translate: 0 -4px; }
.hero-card-public:hover, .hero-card-public:focus-visible { color: var(--mist); border-color: var(--crystal); }

/* ---------- Character sheet ---------- */

.sheet { --tint: var(--lilac); padding-bottom: clamp(80px, 10vw, 120px); }
.sheet[data-nation="sandoria"] { --tint: #e0566e; }
.sheet[data-nation="bastok"] { --tint: #6f9be0; }
.sheet[data-nation="windurst"] { --tint: #5fc48f; }
/* Under the fixed top bar (64px) and the sticky section links. */
.sheet [id] { scroll-margin-top: 132px; }
.sheet-banner { position: relative; isolation: isolate; padding: 120px 0 40px; overflow: hidden; }
.sheet-banner-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 18% 40%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%), radial-gradient(60% 70% at 80% 0%, rgb(183 163 240 / 0.14), transparent 70%); }
.sheet-banner-inner { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: end; }
.sheet-portrait { position: relative; margin: 0; }
.sheet-portrait > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--tint) 70%, #000), 0 0 0 6px rgb(15 11 30 / 0.6); }
.sheet-crest { position: absolute; right: -14px; bottom: -14px; width: 72px; height: 72px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.7)); }
.sheet-id { display: grid; gap: 10px; padding-bottom: 6px; }
.sheet-id .eyebrow a { color: inherit; text-decoration: none; }
.sheet-name { font-size: clamp(3rem, 8vw, 6.4rem); }
.sheet-title { color: var(--mist); }
.sheet-jobs { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--crystal); }
.sheet-line { color: var(--mist-80); }
.sheet-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--mist-80); font-size: 0.9375rem; }
.sheet-sep { color: var(--ash); }
.sheet-actions { margin-top: 8px; }
@media (max-width: 720px) {
  .sheet-banner-inner { grid-template-columns: 1fr; }
  .sheet-portrait { max-width: 240px; }
}

/* The numbers under the banner. */
.sheet-highlights { margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--ash-20); border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--tint) 10%, rgb(27 21 51 / 0.7)), rgb(27 21 51 / 0.55)); overflow: hidden; }
.sheet-highlights > div { padding: 16px 20px; display: grid; gap: 2px; align-content: start; border-left: 1px solid var(--ash-15); margin-left: -1px; }
.sheet-highlights dt { color: var(--ash); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sheet-highlights dd { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--mist); line-height: 1.3; }
.sheet-highlights dd.small { font-size: 0.75rem; line-height: 1.3; }

/* The section links: they stick under the top bar and scroll sideways on a phone. */
.sheet-nav { position: sticky; top: 64px; z-index: 30; margin-bottom: 22px; background: rgb(15 11 30 / 0.82); backdrop-filter: blur(14px) saturate(1.2); border-block: 1px solid var(--ash-15); }
.sheet-nav-list { list-style: none; margin-block: 0; padding: 8px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sheet-nav-list::-webkit-scrollbar { display: none; }
.sheet-nav-list a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--mist-80); font: 600 0.875rem/1.2 var(--font-ui); text-decoration: none; white-space: nowrap; transition: background-color 160ms, color 160ms; }
.sheet-nav-list a:hover, .sheet-nav-list a:focus-visible { color: var(--mist); background: color-mix(in srgb, var(--tint) 22%, transparent); }

.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sheet-wide { grid-column: 1 / -1; }
/* A public profile shows whichever sections its owner shared: let a half-width panel fill the gap beside another. */
.sheet-grid-public { grid-auto-flow: row dense; }
.sheet-panel { padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.sheet-h { font-family: var(--font-inscription); font-size: 1.45rem; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sheet-h3 { font: 600 0.75rem/1.3 var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--petal); margin: 6px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.sheet-count { font: 600 0.75rem/1 var(--font-ui); letter-spacing: 0.04em; text-transform: none; color: var(--ash); padding: 4px 8px; border-radius: 999px; background: rgb(142 134 174 / 0.12); }
.sheet-h3 .sheet-count { padding: 2px 7px; }
@media (max-width: 860px) { .sheet-grid { grid-template-columns: 1fr; } }

/* "Show all": a long list keeps its best few in view and folds the rest. */
.sheet-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ash-20); color: var(--lilac); font: 600 0.8125rem/1.2 var(--font-ui); }
.sheet-more > summary::-webkit-details-marker { display: none; }
.sheet-more > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; transition: rotate 160ms; }
.sheet-more[open] > summary::after { rotate: -135deg; translate: 0 1px; }
.sheet-more > summary:hover { color: var(--mist); border-color: var(--ash-40); }
.sheet-more > summary .when-open, .sheet-more[open] > summary .when-closed { display: none; }
.sheet-more[open] > summary .when-open { display: inline; }
.sheet-more > ul, .sheet-more > ol { margin-top: 12px; }

.sheet-zone { font: 600 1.125rem/1.3 var(--font-ui); }
.zone-map { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #12163a, #070816 75%); border: 1px solid var(--ash-20); }
.zone-map img { width: 100%; height: auto; }
.zone-map-empty { min-height: 160px; display: grid; place-items: center; }
.zone-marker { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 16px; height: 16px; translate: -50% -50%; border-radius: 999px; background: var(--crystal); box-shadow: 0 0 0 4px rgb(243 199 106 / 0.25), 0 0 18px 4px rgb(243 199 106 / 0.8); }
.zone-marker::after { content: ""; position: absolute; inset: -14px; border-radius: 999px; border: 2px solid rgb(243 199 106 / 0.7); animation: marker-ping 2.4s ease-out infinite; }
@keyframes marker-ping { from { scale: 0.4; opacity: 1; } to { scale: 1.6; opacity: 0; } }

.sheet-gil { font-size: 1.1rem; color: var(--mist-80); }
.sheet-gil .mono { font-size: 1.8rem; color: var(--crystal); margin-right: 6px; }
.fame-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fame { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.fame-text { display: grid; gap: 6px; }
.fame-sandoria { --bar: #e0566e; }
.fame-bastok { --bar: #6f9be0; }
.fame-windurst { --bar: #5fc48f; }

.bar { display: block; height: 6px; border-radius: 999px; background: rgb(142 134 174 / 0.18); overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--bar, var(--lilac)), color-mix(in srgb, var(--bar, var(--lilac)) 60%, #fff)); transition: width 1.1s var(--ease-out); }

.job-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.job { position: relative; display: grid; gap: 6px; padding: 10px 12px 9px; border-radius: 12px; border: 1px solid var(--ash-15); background: rgb(37 29 69 / 0.4); }
.job-code { font-size: 0.8125rem; color: var(--ash); letter-spacing: 0.06em; }
.job-level { font-size: 1.4rem; line-height: 1; color: var(--mist); }
.job-bar { display: block; height: 3px; border-radius: 999px; background: rgb(142 134 174 / 0.18); overflow: hidden; }
.job-bar > span { display: block; height: 100%; width: var(--w, 0%); background: var(--lilac); transition: width 1.1s var(--ease-out); }
.job.is-main { border-color: rgb(243 199 106 / 0.6); background: linear-gradient(160deg, rgb(243 199 106 / 0.16), rgb(37 29 69 / 0.4)); }
.job.is-main .job-code { color: var(--crystal); }
.job.is-main .job-bar > span { background: var(--crystal); }
.job.is-sub { border-color: rgb(183 163 240 / 0.55); }
.job.is-sub .job-code { color: var(--lilac); }
.job.is-locked { opacity: 0.4; }

.equip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.equip { display: grid; gap: 4px; align-content: start; min-height: 70px; padding: 10px; border-radius: 10px; border: 1px solid var(--ash-20); background: linear-gradient(160deg, rgb(37 29 69 / 0.7), rgb(15 11 30 / 0.6)); }
.equip-slot { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.equip-item { font-size: 0.875rem; line-height: 1.3; color: var(--mist); overflow-wrap: break-word; hyphens: auto; }
.equip.is-empty .equip-item { color: rgb(142 134 174 / 0.6); }
/* The panel, not the window, decides: four columns only when each cell can hold a word like Haubergeon. */
.sheet-panel { container-type: inline-size; }
@container (max-width: 520px) { .equip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.skill-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.skill-levels li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.skill-level-text { line-height: 1.35; }
.pips { display: inline-flex; gap: 4px; }
.pip { width: 10px; height: 14px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: rgb(142 134 174 / 0.3); }
.pip.is-on { background: var(--crystal); }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tool-grid .equip { min-height: 0; }

/* A two-sided list (a name and its value) that stays inside its card. */
.pair-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pair-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--ash-15); font-size: 0.9375rem; line-height: 1.35; }
.pair-list li:last-child { border-bottom: 0; }
.pair-list li > :last-child { text-align: right; }
.pair-list .is-done { color: var(--crystal); }

/* Skills: columns of short lists (each its best six, the rest folded). */
.skill-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 36px; }
.skill-group { min-width: 0; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.skill-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.9375rem; line-height: 1.3; }
.skill-list .bar { grid-column: 1 / -1; height: 4px; }
.skill-rank { margin-left: 8px; font-size: 0.75rem; color: var(--ash); }
.skill-value { color: var(--mist); }

/* The Chronicle: the game's own counters, small tiles. */
.chronicle { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.chronicle > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ash-15); background: rgb(37 29 69 / 0.35); display: grid; gap: 2px; }
.chronicle dt { color: var(--ash); font-size: 0.8125rem; line-height: 1.3; }
.chronicle dd { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--mist); }
.chronicle-unit { margin-left: 6px; font: 400 0.8125rem/1 var(--font-ui); color: var(--ash); }

.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.milestone { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid rgb(243 199 106 / 0.35); background: linear-gradient(135deg, rgb(243 199 106 / 0.1), rgb(27 21 51 / 0.6)); }
.milestone .crystal-glyph { grid-row: span 2; width: 16px; height: 24px; --element: var(--crystal); }

/* ---------- The Adventurer's Tally ---------- */

.sheet-tally, .sheet-world { display: grid; gap: 18px; margin-top: 18px; }
.tally-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; }
.tally-title { display: grid; gap: 8px; }
.tally-epithet { color: var(--crystal); }
.tally-quip { color: var(--mist-80); }
.tally-headline { margin: 0; display: grid; grid-template-columns: repeat(5, auto); border: 1px solid var(--ash-20); border-radius: 14px; background: rgb(27 21 51 / 0.55); overflow: hidden; }
.tally-headline > div { padding: 12px 18px; display: grid; gap: 2px; }
.tally-headline > div + div { border-left: 1px solid var(--ash-15); }
.tally-headline dt { color: var(--ash); font-size: 0.75rem; white-space: nowrap; }
.tally-headline dd { margin: 0; font-size: 1.3rem; color: var(--mist); }
@media (max-width: 1080px) { .tally-head { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tally-headline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally-headline > div + div { border-left: 0; }
  .tally-headline > div { border-top: 1px solid var(--ash-15); }
  .tally-headline > div:nth-child(-n+2) { border-top: 0; }
  .tally-headline > div:nth-child(even) { border-left: 1px solid var(--ash-15); }
}

/* Cards in columns, each as tall as it needs: short lists side by side instead of one long one. */
.tally-grid, .world-grid { columns: 3 300px; column-gap: 18px; }
.tally-card, .world-card { break-inside: avoid; margin-bottom: 18px; }
.tally-soon { border-style: dashed; }

.tally-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.tally-big { font-size: 2.4rem; line-height: 1; color: var(--crystal); }
.tally-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.8125rem; color: var(--mist-80); }
.tally-legend li { display: flex; align-items: center; gap: 8px; }
.tally-legend .mono { margin-left: auto; padding-left: 12px; color: var(--mist); }
.swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--sw, var(--ash)); }
.seg-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgb(142 134 174 / 0.18); gap: 2px; }
.seg-bar-tall { height: 12px; }
.seg-bar > span { display: block; height: 100%; width: var(--w, 0%); background: var(--sw, var(--lilac)); transition: width 1.1s var(--ease-out); }
.swatch-solo, .seg-solo { --sw: var(--crystal); }
.swatch-party, .seg-party { --sw: var(--lilac); }
.swatch-trust, .seg-trust { --sw: var(--petal); }
/* The /check colours. */
.con-0 { --sw: #8e86ae; }
.con-1 { --sw: #7fd7e8; }
.con-2 { --sw: #6f9be0; }
.con-3 { --sw: #5fc48f; }
.con-4 { --sw: #eeeaf8; }
.con-5 { --sw: #f3c76a; }
.con-6 { --sw: #f0906b; }
.con-7 { --sw: #d26bf0; }
.con-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.con-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 0.875rem; }
.con-list li.is-none { opacity: 0.45; }
.con-name { line-height: 1.3; }

.tally-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.tally-facts > div { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--tint) 40%, transparent); }
.tally-facts dt { color: var(--ash); font-size: 0.75rem; line-height: 1.3; }
.tally-facts dd { margin: 0; color: var(--mist); font-size: 1rem; }
.tally-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: rank; }
.tally-list li { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 0.9rem; line-height: 1.3; counter-increment: rank; }
.tally-row-name::before { content: counter(rank) "."; display: inline-block; min-width: 1.4em; color: var(--ash); font-size: 0.8125rem; }
.tally-row-value { color: var(--mist); white-space: nowrap; }
.tally-list .bar { grid-column: 1 / -1; height: 3px; }
.tally-card-quip { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--ash-15); font-family: var(--font-story); font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--mist-80); }

.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.moments li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: 0.9rem; line-height: 1.4; }
.moments .crystal-glyph { width: 9px; height: 13px; --element: var(--crystal); }
.moments time { white-space: nowrap; }
.moment-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--lilac); translate: 0 -1px; }

/* ---------- Vana'diel remembers you ---------- */

.world-head { display: grid; gap: 8px; }
.world-card .eyebrow { margin-bottom: -8px; }
.rank-meter { display: grid; gap: 6px; }
.rank-meter p { margin: 0; }
.rank-meter .bar { --bar: var(--crystal); }
.world-ledger .rank-meter .bar { --bar: var(--petal); }
.nemesis-list, .bond-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nemesis-list li, .bond-list li { display: grid; gap: 4px; }
.nemesis-list strong { color: #ffb4a6; }
.bond-list p { margin: 0; }
.bond-tier { margin-left: 6px; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: rgb(183 163 240 / 0.14); color: var(--lilac); }
.bond-tier.tier-4, .bond-tier.tier-5 { background: rgb(243 199 106 / 0.16); color: var(--crystal); }
.grudge-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; white-space: nowrap; }
.grudge-tag.is-grudge { color: #ffb4a6; }
.grudge-tag.is-grudge .pip.is-on { background: #f0906b; }
.grudge-tag.is-favour { color: #a8e6c4; }
.grudge-tag.is-favour .pip.is-on { background: #5fc48f; }

/* The Share panel: one switch per section, Identity first; with Identity off the rest grey out (kept, not public). */
.share-where { display: flex; align-items: center; gap: 10px; }
.share-form { display: grid; gap: 18px; justify-items: start; }
.share-list { margin: 0; padding: 0; border: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 24px; }
.share-item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ash-15); background: rgb(37 29 69 / 0.4); transition: opacity 200ms; }
.share-item.is-master { grid-column: 1 / -1; border-color: rgb(243 199 106 / 0.45); }
.share-text { display: grid; gap: 2px; }
.share-text strong { color: var(--mist); }
.share-form:has(.is-master input:not(:checked)) .share-item:not(.is-master) { opacity: 0.5; }
