/* Components: fighter card, event row, callout + voting, survey, panels, skeletons, toast, action bar. */

/* ---- fighter card: a small fight poster ---- */
.fcard { position: relative; display: flex; flex-direction: column; border: var(--rule); border-color: var(--text); border-radius: var(--r); background: var(--surface);
  overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.fcard:hover, .fcard:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent, var(--red)); color: var(--text); }
.fcard .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); border-bottom: var(--rule); border-color: var(--text); }
.fcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard .ph.photo img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.fcard .ph.photo { background: var(--accent); }
.fcard .ph::after { content: ""; position: absolute; inset: 0; background: var(--tone); pointer-events: none; opacity: .5; }
.fcard .corner { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent); z-index: 1; }
.fcard .cls { position: absolute; left: 16px; top: 12px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 3px 8px; border: 2px solid var(--ink); border-radius: 4px; }
.fcard .soon { position: absolute; right: 10px; top: 12px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: 3px 8px; border-radius: 4px; }
.fcard .body { padding: 12px 14px 14px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.fcard .body::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent); }
.fcard .nick { font-weight: 860; font-stretch: 66%; font-size: 30px; line-height: .95; text-transform: uppercase; }
.fcard .who { font-size: 15px; color: var(--muted); }
.fcard .rec { display: flex; align-items: baseline; gap: 10px; }
.fcard .rec .num { font-size: 30px; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 20px; height: 20px; border-radius: 4px; font: 800 12px/20px var(--font); text-align: center; font-style: normal; border: 1.5px solid var(--text); color: var(--text); }
.form i.W { background: var(--text); color: var(--bg); } .form i.D { background: var(--surface-2); }

/* horizontal strip on phones: swipe through fighters instead of a 3000 px grid */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
@media (max-width: 720px) { .strip { grid-auto-columns: 64%; } }
/* fighter slider (0.17.81): arrows on bigger screens, a soft edge that says "more", smaller cards on phones */
.strip-wrap { position: relative; }
.strip-nav { position: absolute; top: 38%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: var(--rule); border-color: var(--text);
  background: var(--surface); color: var(--text); font-size: 28px; line-height: 1; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--text); }
.strip-nav:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--red); }
.strip-nav.prev { left: -18px; } .strip-nav.next { right: -18px; }
.strip-nav[hidden] { display: none; }
@media (max-width: 720px), (pointer: coarse) { .strip-nav { display: none; } }
@media (max-width: 720px) {
  .strip .fcard .ph { aspect-ratio: 1 / 1; }
  .strip .fcard .nick { font-size: 24px; } .strip .fcard .rec .num { font-size: 24px; } .strip .fcard .who { font-size: 13px; }
}

/* ---- event row ---- */
.ev { display: grid; grid-template-columns: 88px 1fr auto; align-items: stretch; border: var(--rule); border-color: var(--text); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.ev .date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; border-right: var(--rule); border-color: var(--text); background: var(--surface-2); }
.ev.live .date { background: var(--red); color: #fff; }
.ev .date span { font-size: 13px; font-weight: 800; letter-spacing: .1em; } .ev .date b { font-size: 36px; font-weight: 860; font-stretch: 70%; line-height: 1; }
.ev .info { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.ev .info > span:first-child { align-self: flex-start; }
.ev .info h3 { font-size: 19px; }
.ev .where { color: var(--muted); font-size: 15px; }
.ev .bouts { font-size: 15px; }
.ev .act { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
@media (max-width: 640px) { .ev { grid-template-columns: 72px 1fr; } .ev .act { grid-column: 1 / -1; border-top: 2px solid var(--line); padding: 10px 14px; } .ev .date b { font-size: 30px; } }

/* ---- callout + fan vote ---- */
.callout { border: var(--rule); border-color: var(--text); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.callout .face { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.callout .side { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-decoration: none; min-width: 0; }
.callout .side.r { text-align: right; align-items: flex-end; }
.callout .side img { width: 76px; height: 92px; object-fit: cover; border: 2px solid var(--text); border-radius: var(--r-s); background: var(--paper-2); }
.callout .side b { font-weight: 860; font-stretch: 66%; font-size: 26px; line-height: .95; text-transform: uppercase; }
.callout .vs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 6px; }
.callout .vs span.v { font-weight: 900; font-stretch: 62%; font-size: 40px; color: var(--red); line-height: 1; transform: rotate(-6deg); }
.callout .terms { padding: 12px 16px; border-top: 2px dashed var(--line); font-size: 15px; color: var(--muted); }
.callout .terms q { color: var(--text); font-style: italic; }
.callout .fanbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: var(--rule); border-color: var(--text); background: var(--surface-2); }
.callout.hot { box-shadow: 6px 6px 0 var(--gold); }
.want { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--text); background: var(--surface); color: var(--text); font: 750 16px var(--font); cursor: pointer; }
.want .n { font-weight: 860; font-stretch: 70%; font-size: 22px; }
.want[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.want.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08) rotate(-2deg); } }
.pick { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.pick .q { font-size: 14px; font-weight: 700; color: var(--muted); }
.pickbar { display: grid; grid-template-columns: var(--a, 50%) 1fr; border: 2px solid var(--text); border-radius: 999px; overflow: hidden; min-height: 50px; }
.pickbar button { border: 0; font: 750 15px var(--font); cursor: pointer; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; min-width: 0; }
.pickbar button.a { background: var(--red); text-align: left; } .pickbar button.b { background: var(--blue); text-align: right; }
.pickbar button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px #fff; }
.pickbar.nopicks { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .callout .side { padding: 12px; } .callout .side img { width: 60px; height: 72px; } .callout .side b { font-size: 21px; }
  .callout .vs span.v { font-size: 30px; }
  .callout .fanbar { flex-direction: column; align-items: stretch; } .want { justify-content: center; } .pick { flex: 0 0 auto; }
  .callout .side .nm { display: none; }
}

/* ---- generic ---- */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.ink { border-color: var(--text); }
.item { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
.stat { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-weight: 860; font-stretch: 70%; font-size: 34px; line-height: 1; } .stat span { font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; } .bar i { display: block; height: 100%; background: var(--red); }
.notice { padding: 14px 16px; border-radius: var(--r); background: var(--warn-bg); border: 2px solid var(--ink); color: var(--ink); font-size: 16px; }
.notice.action { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; text-decoration: none; }
.empty { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 24px; border: 2px dashed var(--line); border-radius: var(--r); grid-column: 1 / -1; }
.empty b { font-weight: 860; font-stretch: 70%; font-size: 26px; text-transform: uppercase; }
.avatar { width: 56px; height: 56px; border-radius: var(--r-s); object-fit: cover; border: 2px solid var(--text); flex: none; background: var(--paper-2); }
.avatar.lg { width: 68px; height: 68px; } .avatar.xl { width: 140px; height: 175px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.option[aria-pressed="true"] { border-color: var(--text); box-shadow: 3px 3px 0 var(--red); } .option .grow { flex: 1; }
.switch { width: 54px; height: 32px; border-radius: 16px; border: 2px solid var(--text); padding: 2px; background: var(--surface-2); cursor: pointer; display: flex; flex: none; }
.switch span { width: 24px; height: 24px; border-radius: 12px; background: var(--text); display: block; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--red); } .switch[aria-checked="true"] span { transform: translateX(22px); background: #fff; }
.price { width: 110px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: var(--rule); border-color: var(--text); scrollbar-width: none; }
.tabs a { padding: 12px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; gap: 6px; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--red); }
.count { display: inline-block; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
dialog { background: var(--bg); color: var(--text); border: var(--rule); border-color: var(--text); border-radius: var(--r-l); padding: 24px; width: min(540px, calc(100vw - 24px)); box-shadow: 8px 8px 0 var(--red); }
dialog::backdrop { background: rgba(20,20,20,.55); }
dialog h2 { font-size: 40px; }

/* ---- micro-survey (one question, always skippable) ---- */
.survey { position: relative; border: var(--rule); border-color: var(--text); border-radius: var(--r-l); padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.survey .x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--text); font-size: 24px; cursor: pointer; border-radius: 50%; }
.survey .x:hover { background: var(--surface-2); }
.survey .scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.survey .scale button { min-height: 52px; border: 2px solid var(--line); background: var(--surface); border-radius: var(--r-s); font: 800 20px var(--font); color: var(--text); cursor: pointer; }
.survey .scale button:hover { border-color: var(--text); }
.survey .ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ---- skeletons, toast, sticky action bar ---- */
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); }
.sk-card { aspect-ratio: 4 / 6; } .sk-row { height: 92px; } .sk-title { height: 90px; width: 80%; } .sk-line { height: 24px; width: 60%; } .sk-pic { aspect-ratio: 4 / 5; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--red); transition: transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); } .toast.err { background: var(--red-ink); }
body.has-actionbar .toast { bottom: 100px; }
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar.show { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: var(--rule); border-color: var(--text); }
  .actionbar .btn { flex: 1; } .actionbar .btn.ghost, .actionbar .btn.light { flex: 0 0 auto; }
}
.install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: var(--rule); border-color: var(--text); max-width: 560px; margin: 0 auto; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid .fcard .nick { font-size: 22px; } .grid .fcard .who { font-size: 13px; } .grid .fcard .rec .num { font-size: 22px; }
  .grid .fcard .form i { width: 15px; height: 15px; font-size: 10px; line-height: 15px; }
  .grid .fcard .soon { display: none; } .grid .fcard .cls { left: 12px; font-size: 11px; }
}
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; justify-self: start; align-self: flex-start; opacity: .8; }

.rec-nw { white-space: nowrap; }      /* a record (3-0-0) never breaks in two (0.17.81) */
