/* The Drawings: the roster's cover (a title, the League in numbers, the drawing of the day alive on a tilted panel), a
   bar of sort tabs and filter chips that sticks while you browse, and the grid of cards. */
.gallery { max-width: 1240px; }

/* ---- the cover --------------------------------------------------------------------------------------------------- */
.gx-hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.24fr); gap: 34px; align-items: center; margin-top: 22px; }
.gx-title h1 { margin: 0 0 18px; color: var(--on-mat); font-size: clamp(38px, 4.5vw, 62px); line-height: 1.04; letter-spacing: -.01em; }
.hl { color: var(--ink); background: linear-gradient(transparent 10%, var(--gold) 10%, var(--gold) 90%, transparent 90%); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gx-title .lede { margin: 0; max-width: 42ch; color: var(--on-mat-dim); font-size: 18px; line-height: 1.55; }
.gx-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 520px; }
.gx-totals span { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px 10px; background: rgba(5, 7, 16, .66); border: 2px solid rgba(242, 193, 78, .32); border-radius: 3px; font: 900 11.5px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--on-mat-dim); }
.gx-totals b { font: 400 clamp(20px, 2.2vw, 28px)/1 var(--display); letter-spacing: 0; color: var(--gold); font-variant-numeric: tabular-nums; }

.dotd { --rc: var(--ink); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); overflow: hidden; border-width: 4px; border-top: 12px solid var(--rc); box-shadow: 9px 9px 0 var(--drop); transform: rotate(.7deg); animation: dotdin .6s cubic-bezier(.2, 1.3, .5, 1) both; }
@keyframes dotdin { from { transform: rotate(4deg) translateY(30px) scale(.94); opacity: 0; } }
.dotd-art { position: relative; min-height: 400px; overflow: hidden; cursor: pointer; border-right: 3px solid var(--ink); background: radial-gradient(70% 55% at 50% 66%, color-mix(in srgb, var(--rc) 15%, #fff), #fff 75%); }
.dotd-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: radial-gradient(circle, rgba(20, 20, 22, .15) 1.2px, transparent 1.4px) 0 0 / 8px 8px; -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); pointer-events: none; }
.dotd-art canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.dotd-art .burst { inset: -60%; }
.dotd-art .ribbon { position: absolute; z-index: 2; left: 14px; top: 16px; }
.dotd-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--graphite); }
.dotd-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 22px 20px; }
.dotd-info h2 { margin: 0; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.05; overflow-wrap: anywhere; }
.dotd-info .rolebar { align-self: flex-start; }
.dotd .bio { margin: 0; font-size: 15px; line-height: 1.5; color: #2a2b30; quotes: "“" "”"; } .dotd .bio:empty { display: none; }
.byline { margin: 0; font-size: 14px; color: var(--graphite); } .byline b { color: var(--ink); font-weight: 900; }
.dotd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dotd-stats span { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; padding: 8px 9px 7px; background: #fff; border: 2.5px solid var(--ink); min-width: 0; }
.dotd-stats .ic { width: 16px; height: 16px; color: var(--rc); }
.dotd-stats b { font: 400 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.dotd-stats small { grid-column: 1 / -1; margin-top: 3px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.dotd-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }

/* ---- the bar ----------------------------------------------------------------------------------------------------- */
.gx-bar { position: relative; display: grid; gap: 10px; margin-top: 56px; padding: 12px 0 10px; }
@media (min-width: 721px) {
  .gx-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--mat-deep) 90%, transparent); box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--mat-deep) 90%, transparent); clip-path: inset(0 -100vmax); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.gx-bar > * { min-width: 0; }
.gx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px 5px 6px 2px; min-width: 0; }
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 10px 14px 9px; background: var(--board); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--drop); font: 400 15px/1 var(--display); cursor: pointer; transition: transform .08s, background .12s; }
.tabs button:hover { transform: translate(-1px, -1px); }
.tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tabs button.on { background: var(--ink); color: var(--gold); box-shadow: 3px 3px 0 var(--gold); border-color: var(--ink); }
.tabs .yours::before { content: "♥"; margin-right: 6px; color: var(--red); }
.search { flex: 0 1 260px; min-width: 180px; }
.search input { width: 100%; padding: 10px 12px 9px 38px; background: var(--board) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%23141416' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5 21 21' stroke='%23141416' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") 11px 50% / 18px no-repeat; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--drop); font: 700 15px var(--text); outline: none; }
.search input:focus { box-shadow: 3px 3px 0 var(--gold); background-color: #fffbe6; }
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px 5px 3px 2px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 6px; background: rgba(5, 7, 16, .4); color: var(--on-mat); border: 2px solid var(--mat-line2); border-radius: 999px; font: 700 13.5px/1 var(--text); cursor: pointer; transition: border-color .12s, background .12s; }
.chip .ic { width: 15px; height: 15px; color: color-mix(in srgb, var(--rc, var(--on-mat)) 70%, #fff); }
.chip.el .ic { color: color-mix(in srgb, var(--el) 80%, #fff); }
.chip:hover { border-color: var(--on-mat-dim); }
.chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--board); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--gold); }
.chip[aria-pressed="true"] .ic { color: var(--rc, var(--ink)); }
.chip.el[aria-pressed="true"] { background: var(--el); color: var(--on); } .chip.el[aria-pressed="true"] .ic { color: var(--on); }

/* ---- the grid and its end --------------------------------------------------------------------------------------- */
.gx-count { min-height: 22px; margin: 16px 2px 14px; color: var(--on-mat-dim); font-size: 14.5px; font-weight: 700; }
.gx-count b { font: 400 17px var(--display); color: var(--on-mat); }
.gx-end { min-height: 60px; display: grid; place-items: center; margin-top: 24px; }
.gx-msg { color: var(--on-mat-dim); font-size: 15px; } .gx-msg a { color: var(--on-mat); font-weight: 900; }
.gx-loading { display: inline-flex; gap: 8px; } .gx-loading i { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); animation: hop .7s ease-in-out infinite alternate; } .gx-loading i:nth-child(2) { animation-delay: .15s; } .gx-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { to { transform: translateY(-9px); opacity: .5; } }
.gx-empty { display: grid; justify-items: center; gap: 8px; max-width: 460px; padding: 28px 26px 26px; text-align: center; box-shadow: 6px 6px 0 var(--drop); }
.gx-empty > .ic { width: 40px; height: 40px; color: var(--red); }
.gx-empty h3 { margin: 0; font-size: 24px; } .gx-empty p { margin: 0 0 8px; color: var(--graphite); }
.gx-empty .row { justify-content: center; }

@media (max-width: 1020px) {
  .gx-hero { grid-template-columns: 1fr; gap: 30px; }
  .dotd { transform: none; }
}
@media (max-width: 720px) {
  .gx-hero { margin-top: 12px; }
  .gx-title h1 { font-size: clamp(32px, 9.5vw, 44px); } .gx-title .lede { font-size: 16px; }
  .gx-totals { gap: 7px; margin-top: 20px; } .gx-totals span { padding: 9px 8px 8px; font-size: 10px; letter-spacing: .06em; }
  .dotd { grid-template-columns: 1fr; }
  .dotd-art { min-height: 300px; border-right: none; border-bottom: 3px solid var(--ink); }
  .dotd-info { padding: 16px 16px 18px; }
  .dotd-stats { gap: 6px; } .dotd-stats span { padding: 7px 6px 6px; } .dotd-stats b { font-size: 16px; } .dotd-stats small { font-size: 9.5px; letter-spacing: .04em; }
  .dotd-act .btn { flex: 1 1 auto; text-align: center; }
  .gx-bar { margin-top: 44px; gap: 8px; }
  .search { flex: 1 1 100%; }
  .tabs button { font-size: 14px; padding: 9px 11px 8px; }
}
