/* The Level 60 gang (#/sixty, js/views/sixty.js) and the "Guild first to 60"
   strip on the Leveling page (js/views/first.js), in the guild site's look
   (css/site/app-theme.css tokens). Class colours come from the c-<class>
   classes (--class-color for fills, --class-text for names). */

/* --- Guild first to 60 (under the race banner) --------------------------------- */
.first-three[hidden] { display: none; }
.first-three {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  margin: 14px 0 0; padding: 12px 16px;
  border: 1px solid var(--panel-line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}
.first-three-title {
  margin: 0; font: 700 13px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-gold);
}
.first-three-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; }
.first-three-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px;
  border: 1px solid var(--panel-line); border-radius: 999px; background: var(--tint-row);
  color: var(--text); text-decoration: none;
}
.first-three-link:hover { border-color: var(--gold-line); background: var(--tint-gold); }
.first-three-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.first-three-medal {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  font: 800 14px/1 var(--font-body); color: var(--text-on-gold);
  background: linear-gradient(180deg, #fff1c4, var(--surface-gold));
}
.first-three-2 .first-three-medal { background: linear-gradient(180deg, #f4f6fa, var(--surface-silver)); }
.first-three-3 .first-three-medal { background: linear-gradient(180deg, #f6d2b0, var(--surface-bronze)); }
.first-three-icon { width: 26px; height: 26px; flex: none; }
.first-three-words { display: inline-flex; flex-direction: column; line-height: 1.15; }
.first-three-name { font-weight: 700; color: var(--class-text, var(--text)); }
.first-three-when { font-size: 13px; color: var(--text-muted); }
.first-three-more {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; font-size: 14px;
  color: var(--text-gold); text-decoration: none;
}
.first-three-more:hover { text-decoration: underline; }
.first-three-more .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* --- the page ------------------------------------------------------------------- */
.sixty-page .page-head { margin-bottom: 18px; }
.sx-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 22px;
}
.sx-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px;
  border: 1px solid var(--panel-line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}
.sx-tile-label { font: 700 12px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sx-tile-value { font: 700 22px/1.2 var(--font-body); color: var(--text-strong); overflow-wrap: anywhere; }
.sx-tile-note { font-size: 13px; color: var(--text-muted); }
.sx-tile-value.sx-tile-small { font-size: 17px; line-height: 1.35; }
.sx-class-list { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.sx-class { display: inline-flex; align-items: center; gap: 4px; }
.sx-class-icon { width: 28px; height: 28px; }
.sx-class-count { font-weight: 700; color: var(--class-text, var(--text)); }

.sx-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.sx-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px;
  border: 1px solid var(--panel-line); border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--class-color, #888) 12%, transparent), transparent 120px),
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}
.sx-top-1 { border-color: rgba(242, 193, 78, .55); }
.sx-head { display: flex; align-items: center; gap: 12px; }
.sx-place {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 50%; flex: none;
  font: 800 15px/1 var(--font-body); color: var(--text-gold); background: var(--tint-gold); border: 1px solid var(--gold-line);
}
.sx-top .sx-place { color: var(--text-on-gold); border: 0; background: linear-gradient(180deg, #fff1c4, var(--surface-gold)); }
.sx-top-2 .sx-place { background: linear-gradient(180deg, #f4f6fa, var(--surface-silver)); }
.sx-top-3 .sx-place { background: linear-gradient(180deg, #f6d2b0, var(--surface-bronze)); }
.sx-icon { width: 40px; height: 40px; flex: none; }
.sx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-name { font: 700 19px/1.2 var(--font-body); color: var(--class-text, var(--text)); text-decoration: none; overflow-wrap: anywhere; }
.sx-name:hover { text-decoration: underline; }
.sx-name:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sx-kind { font-size: 14px; color: var(--text-muted); }
.sx-rank { font-size: 13px; color: var(--text-gold); }

.sx-when { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.sx-when:empty { display: none; }
.sx-k { color: var(--text-muted); }
.sx-v { margin: 0; color: var(--text); font-weight: 600; text-align: right; }

.sx-profs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sx-prof {
  display: inline-flex; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--panel-line); background: var(--tint-row);
}
.sx-prof-name { color: var(--text); }
.sx-prof-rank { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sx-prof-max { border-color: var(--gold-line); }
.sx-prof-max .sx-prof-rank { color: var(--text-gold); }

.sx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.sx-stat { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--tint-row); min-width: 0; }
.sx-stat-k { font-size: 12px; color: var(--text-muted); }
.sx-stat-v { margin: 2px 0 0; font: 700 17px/1.2 var(--font-body); color: var(--text-strong); font-variant-numeric: tabular-nums; }

.sx-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: auto 0 0; padding-top: 4px; font-size: 14px; }
.sx-link { color: var(--text-gold); font-weight: 600; text-decoration: none; }
.sx-link:hover { text-decoration: underline; }
.sx-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 560px) {
  .first-three-more { margin-left: 0; }
  .sx-tile-value { font-size: 19px; }
  .sx-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-summary > .sx-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } /* no empty cell beside the last */
}
