/* ---------- app shell (schedule + draw pages) ---------- */
body.app { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.container.wide { max-width: none; padding: 0 16px; }
.topbar .inner.wide { height: 56px; }
.admin-join { color: var(--muted); border-color: var(--line); font-size: 12px; padding: 6px 10px; }
.admin-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(255, 197, 49, 0.12); border: 1px solid rgba(255, 197, 49, 0.3); padding: 5px 10px; border-radius: 999px; }
.admin-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
@media (max-width: 760px) { .nav .admin-join { display: inline-flex; } }

.admin-bar { background: linear-gradient(90deg, rgba(255, 197, 49, 0.1), rgba(255, 122, 26, 0.06)); border-bottom: 1px solid rgba(255, 197, 49, 0.2); }
.admin-bar .container { display: flex; gap: 8px; align-items: center; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.admin-bar .container::-webkit-scrollbar { display: none; }
.admin-bar .btn { flex: none; }
.admin-hint { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
@media (max-width: 700px) { .admin-hint { display: none; } #btnLogout { margin-left: auto; } }

.toolbar { border-bottom: 1px solid rgba(255, 200, 110, 0.14); background: linear-gradient(180deg, rgba(50, 10, 4, 0.7), rgba(36, 8, 4, 0.55)); }
.tb-title h1 { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toolbar .container { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.tb-title { margin-right: auto; min-width: 0; }
.tb-title h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.tb-sub { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.live-ind { display: inline-flex; align-items: center; gap: 5px; color: #fecaca; font-weight: 600; }
.draw-note { color: var(--gold); font-weight: 600; }
.seg { display: inline-flex; background: rgba(20, 3, 0, 0.4); border: 1px solid var(--card-border); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--gold-grad); color: #3a1203; }
.zoom { display: flex; align-items: center; gap: 6px; }
.zoom .icon-btn { width: 34px; height: 34px; font-size: 18px; }
#zoomPct { min-width: 46px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .toolbar .container { gap: 8px; }
  .tb-title { flex-basis: 100%; }
  .zoom .btn.sm { display: none; }
  .zoom { margin-left: auto; }
}

/* ---------- pan/zoom viewport ---------- */
.bk-main { position: relative; flex: 1; min-height: 0; }
.bk-viewport {
  position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 210, 150, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(900px 520px at 65% 45%, rgba(255, 130, 40, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(40, 8, 3, 0.55), rgba(20, 4, 2, 0.75));
}
.bk-viewport.grabbing { cursor: grabbing; }
.bk-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.bk-hint { position: absolute; left: 50%; bottom: calc(14px + var(--safe-bottom)); transform: translateX(-50%); font-size: 12px; color: var(--muted); background: rgba(110, 34, 12, 0.94); border: 1px solid var(--card-border); padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity 0.6s; white-space: nowrap; }
.bk-hint.gone { opacity: 0; }

/* stage decorations */
.zone-h { position: absolute; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: 0.08em; border: 1.5px solid; }
.zone-h.g { color: #4ade80; border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.08); }
.zone-h.r { color: #f87171; border-color: rgba(239, 68, 68, 0.6); background: rgba(239, 68, 68, 0.08); }
.zone-h.b { color: #60a5fa; border-color: rgba(59, 130, 246, 0.7); background: rgba(59, 130, 246, 0.1); }
.zone-h.o { color: var(--gold); border-color: rgba(255, 197, 49, 0.7); background: rgba(255, 197, 49, 0.08); }
.side { position: absolute; width: 30px; border-radius: 8px; display: grid; place-items: center; }
.side span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; color: #fff; white-space: nowrap; }
.side.g { background: linear-gradient(180deg, #16a34a, #15803d); }
.side.r { background: linear-gradient(180deg, #dc2626, #b91c1c); }
.side.b { background: linear-gradient(180deg, #2563eb, #1d4ed8); box-shadow: 0 0 40px rgba(37, 99, 235, 0.35); }
.vsep { position: absolute; width: 0; border-left: 1.5px dashed rgba(96, 165, 250, 0.35); }

/* connectors */
svg.links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
svg.links path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke 0.3s, opacity 0.3s, stroke-width 0.3s; }
svg.links path.win { stroke: rgba(74, 222, 128, 0.45); }
svg.links path.lose { stroke: rgba(248, 113, 113, 0.55); stroke-dasharray: 5 5; }
svg.links path.top4 { stroke: rgba(96, 165, 250, 0.55); }
svg.links path.final { stroke: rgba(255, 197, 49, 0.6); }
svg.links path.done { stroke-width: 3; }
svg.links path.win.done { stroke: #4ade80; }
svg.links path.lose.done { stroke: #f87171; }
svg.links path.top4.done { stroke: #60a5fa; }
svg.links path.final.done { stroke: var(--gold); }
.bk-stage.focus svg.links path { opacity: 0.15; }
.bk-stage.focus svg.links path.hl { opacity: 1; stroke-width: 3.5; }
.bk-stage.focus .mcard:not(.hl) { opacity: 0.55; }

/* match card */
.mcard {
  position: absolute; width: 250px; height: 88px; display: grid; grid-template-columns: 32px 1fr;
  background: linear-gradient(180deg, #6a2711, #4a190b); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 2, 0, 0.45); transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.mcard:hover { border-color: #a4532a; }
.mcard .num { display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--muted); background: rgba(255, 190, 120, 0.12); border-right: 1px solid var(--line); }
.mcard.st-QUALIFIER_WINNERS .num { color: #4ade80; }
.mcard.st-QUALIFIER_LOSERS .num { color: #f87171; }
.mcard.st-SEMIFINAL .num { color: #60a5fa; }
.mcard.st-FINAL { border-color: rgba(255, 197, 49, 0.75); box-shadow: 0 0 0 1px rgba(255, 197, 49, 0.25), 0 10px 40px rgba(255, 197, 49, 0.18); }
.mcard.st-FINAL .num { color: var(--gold); background: rgba(255, 197, 49, 0.1); }
.mcard .rows { display: grid; grid-template-rows: 34px 34px 20px; min-width: 0; }
.prow { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-width: 0; border-bottom: 1px solid rgba(255, 200, 120, 0.08); }
.prow .pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.prow .pname.ph { color: var(--dim); font-weight: 500; font-style: italic; }
.prow .pseed { font-size: 10px; color: var(--dim); font-weight: 700; }
.prow .score { min-width: 24px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.prow.win .pname { color: #fff; }
.prow.win .score { color: var(--gold); }
.prow.win .pname::after { content: ' ✓'; color: #4ade80; font-size: 12px; }
.prow.lose .pname, .prow.lose .score { color: var(--dim); }
.mfoot { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 10.5px; color: var(--dim); background: rgba(0, 0, 0, 0.15); }
.mfoot .stt { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.s-READY .mfoot .stt { color: #93c5fd; }
.s-IN_PROGRESS { border-color: rgba(239, 68, 68, 0.75); box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3), 0 10px 30px rgba(239, 68, 68, 0.2); }
.s-IN_PROGRESS .mfoot .stt { color: #fca5a5; }
.s-COMPLETED .mfoot .stt { color: #86efac; }
body.is-admin .mcard.locked .mfoot .lock { display: inline; }
.mfoot .lock { display: none; margin-left: 4px; }
body.is-admin .mcard.editable:hover { transform: translateY(-1px); border-color: var(--gold); }

/* info column */
.info { position: absolute; width: 190px; display: grid; gap: 12px; }
.info .ib { background: linear-gradient(180deg, rgba(120, 40, 14, 0.9), rgba(80, 24, 8, 0.9)); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; text-align: center; }
.info .ib .h { font-weight: 800; font-size: 15px; letter-spacing: 0.04em; }
.info .ib .d { font-size: 12.5px; color: var(--muted); }
.info .big { font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.podium { background: linear-gradient(180deg, rgba(255, 197, 49, 0.14), rgba(255, 122, 26, 0.06)) !important; border-color: rgba(255, 197, 49, 0.4) !important; }
.podium .pl { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); font-size: 13px; }
.podium .pl:last-child { border-bottom: 0; }
.podium .pl b { display: block; font-size: 14px; }
.podium .pl small { color: var(--muted); }
.champ-name { font-size: 18px; font-weight: 800; color: #fff; margin: 4px 0 2px; }
.trophy { font-size: 34px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(255, 197, 49, 0.5)); }

/* ---------- list view ---------- */
.bk-list { position: absolute; inset: 0; overflow-y: auto; padding: 16px 16px calc(40px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
.bk-list .grp { max-width: 1100px; margin: 0 auto 26px; }
.bk-list .grp h2 { color: var(--gold2); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.bk-list .grp h2::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.bk-list .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bk-list .mcard { position: relative; width: auto; }
.bk-list .route { font-size: 11px; color: var(--dim); margin-top: 4px; padding-left: 4px; }
.bk-list .item { min-width: 0; }

/* ---------- match modal ---------- */
.mm-route { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line); color: var(--muted); }
.pill.g { color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.pill.r { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.pill.o { color: var(--gold); border-color: rgba(255, 197, 49, 0.35); }
.sc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); margin-bottom: 10px; }
.sc-row.lead { border-color: rgba(255, 197, 49, 0.45); }
.sc-row .who { flex: 1; min-width: 0; }
.sc-row .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row .who small { color: var(--muted); font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface2); font-size: 20px; font-weight: 700; display: grid; place-items: center; }
.stepper button:active { transform: scale(0.94); }
.stepper input { width: 54px; height: 40px; text-align: center; font-size: 22px; font-weight: 800; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { border-color: var(--orange); }
.status-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.status-seg button { border: 1px solid var(--line2); background: var(--surface2); border-radius: 12px; padding: 10px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.status-seg button.on[data-s='READY'] { color: #93c5fd; border-color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
.status-seg button.on[data-s='IN_PROGRESS'] { color: #fecaca; border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.status-seg button.on[data-s='COMPLETED'] { color: #bbf7d0; border-color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.mm-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.mm-warn { font-size: 13px; color: #fde68a; background: rgba(255, 197, 49, 0.08); border: 1px solid rgba(255, 197, 49, 0.25); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.ro-score { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cfg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .cfg-grid { grid-template-columns: 1fr; } }
.champ-photo { position: relative; width: 84px; margin: 2px auto 6px; }
.champ-photo .avatar { box-shadow: 0 0 0 3px var(--gold), 0 8px 24px rgba(255, 197, 49, 0.35); }
.champ-photo .trophy { position: absolute; right: -10px; bottom: -6px; font-size: 28px; }
.podium .pl .avatar { flex: none; }

/* ---------- responsive: small phones, landscape phones, big screens ---------- */
@media (max-width: 400px) {
  .container.wide { padding: 0 12px; }
  .admin-bar .btn.sm { padding: 6px 9px; font-size: 12px; }
  .seg button { padding: 6px 10px; }
  .zoom .icon-btn { width: 32px; height: 32px; }
  .stepper button { width: 36px; height: 36px; }
  .stepper input { width: 46px; height: 36px; font-size: 20px; }
  .sc-row { gap: 8px; padding: 10px; }
  .sc-row .avatar { width: 38px !important; height: 38px !important; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .topbar .inner.wide { height: 46px; }
  .admin-bar .container { padding-top: 5px; padding-bottom: 5px; }
  .toolbar .container { padding-top: 6px; padding-bottom: 6px; flex-wrap: nowrap; }
  .tb-title { flex-basis: auto; }
  .tb-title h1 { font-size: 16px; }
  .tb-sub { display: none; }
  .admin-hint { display: none; }
  .bk-hint { display: none; }
}
@media (min-width: 1600px) {
  .tb-title h1 { font-size: 24px; }
}

/* ---------- honor / awards section (after the final) ---------- */
body[data-view='list'] #honor { display: none; }
.honor {
  flex: none; position: relative; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid rgba(255, 210, 120, 0.35);
  background:
    radial-gradient(520px 260px at 50% 62%, rgba(255, 205, 70, 0.34), transparent 70%),
    radial-gradient(900px 340px at 50% 0%, rgba(255, 140, 40, 0.28), transparent 70%),
    linear-gradient(180deg, #5c1a08 0%, #3a0f05 100%);
  box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, 0.5);
}
.honor::before { /* slow rotating light rays behind the champion */
  content: ''; position: absolute; left: 50%; top: 58%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, 0.13) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.6) 22%, transparent 48%);
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.6) 22%, transparent 48%);
  animation: honor-spin 60s linear infinite;
}
.honor::after { /* gold rule at the top */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #ffd34d, #fff1b8, #ffd34d, transparent);
}
@keyframes honor-spin { to { transform: rotate(360deg); } }
.honor-inner { position: relative; max-width: 980px; margin: 0 auto; padding: 16px 16px 0; }
.honor-head { text-align: center; position: relative; margin-bottom: 6px; }
.honor-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.32em; color: var(--gold2); opacity: 0.9; }
.honor-title {
  margin: 2px 0 0; font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15;
  background: linear-gradient(180deg, #fff8d6 0%, #ffd34d 45%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 190, 60, 0.45));
}
.honor-toggle {
  position: absolute; right: 0; top: 0; border: 1px solid rgba(255, 210, 140, 0.35); background: rgba(40, 8, 2, 0.45); color: var(--muted);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
.honor-toggle:hover { color: #fff; border-color: var(--gold); }

.podium3 { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: end; gap: 14px; max-width: 780px; margin: 0 auto; }
.pcol { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; position: relative; }
.pcol .medal { font-size: 30px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.pcol .crown { font-size: 40px; line-height: 1; margin-bottom: -10px; position: relative; z-index: 2; filter: drop-shadow(0 6px 14px rgba(255, 190, 40, 0.6)); animation: honor-float 3s ease-in-out infinite; }
@keyframes honor-float { 50% { transform: translateY(-5px); } }
.hp { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.hp .avatar { box-shadow: 0 0 0 3px var(--ring, #fff), 0 10px 26px rgba(0, 0, 0, 0.45); }
.silver { --ring: #dfe6ee; --tone: #e8edf3; }
.bronze { --ring: #e09a5c; --tone: #f3b27a; }
.gold { --ring: #ffd34d; --tone: #ffd34d; }
.hp.champ .avatar { box-shadow: 0 0 0 4px #ffd34d, 0 0 0 9px rgba(255, 211, 77, 0.22), 0 0 60px rgba(255, 200, 60, 0.65); animation: honor-glow 2.6s ease-in-out infinite; }
@keyframes honor-glow { 50% { box-shadow: 0 0 0 4px #ffe58a, 0 0 0 12px rgba(255, 211, 77, 0.16), 0 0 90px rgba(255, 200, 60, 0.85); } }
.hp-name { margin-top: 10px; font-weight: 800; font-size: 16px; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp.champ .hp-name { font-size: clamp(22px, 3vw, 30px); margin-top: 14px; text-shadow: 0 0 22px rgba(255, 200, 70, 0.7), 0 2px 0 rgba(0, 0, 0, 0.3); }
.hp-rec { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.ptitle {
  margin-top: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tone);
  padding: 4px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); background: color-mix(in srgb, var(--tone) 12%, transparent);
}
.gold .ptitle { font-size: 13px; padding: 5px 16px; color: #3a1203; background: linear-gradient(180deg, #fff1b8, #ffc531 55%, #f59e0b); border-color: #fff1b8; box-shadow: 0 6px 20px rgba(255, 190, 40, 0.35); }
.gline { display: flex; flex-direction: column; align-items: center; }
.honor-toggle em { font-style: normal; }
.pfinal { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.pfinal b { color: var(--gold2); font-variant-numeric: tabular-nums; }
.duo { display: flex; gap: 10px; justify-content: center; max-width: 100%; }
.duo .hp { flex: 1 1 0; min-width: 0; }
.duo .hp-name { white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.step {
  width: 100%; margin-top: 12px; border-radius: 14px 14px 0 0; display: grid; place-items: center; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.step span { font-size: 34px; font-weight: 800; color: rgba(40, 10, 0, 0.55); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.step::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-100%); animation: honor-shine 4.5s ease-in-out infinite; }
@keyframes honor-shine { 60%, 100% { transform: translateX(100%); } }
.gold .step { height: 92px; background: linear-gradient(180deg, #ffe58a, #f5b324 55%, #c77a0e); }
.gold .step span { font-size: 46px; }
.silver .step { height: 62px; background: linear-gradient(180deg, #f4f7fa, #b9c4d0 55%, #7c8a99); }
.bronze .step { height: 44px; background: linear-gradient(180deg, #f6c896, #c98042 55%, #8a4a1c); }

/* confetti */
.honor-fx { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.honor-fx i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; background: #ffd34d; opacity: 0.85; animation: honor-fall 9s linear infinite; }
.honor-fx i:nth-child(3n) { background: #fff3c4; width: 5px; height: 9px; }
.honor-fx i:nth-child(3n + 1) { background: #ff8a3d; }
.honor-fx i:nth-child(4n) { border-radius: 50%; width: 7px; height: 7px; }
.honor-fx i:nth-child(1) { left: 4%; animation-delay: -1s; } .honor-fx i:nth-child(2) { left: 11%; animation-delay: -6s; animation-duration: 11s; }
.honor-fx i:nth-child(3) { left: 18%; animation-delay: -3s; } .honor-fx i:nth-child(4) { left: 26%; animation-delay: -8s; animation-duration: 12s; }
.honor-fx i:nth-child(5) { left: 33%; animation-delay: -4.5s; } .honor-fx i:nth-child(6) { left: 41%; animation-delay: -0.5s; animation-duration: 10s; }
.honor-fx i:nth-child(7) { left: 47%; animation-delay: -7s; } .honor-fx i:nth-child(8) { left: 55%; animation-delay: -2.5s; animation-duration: 12s; }
.honor-fx i:nth-child(9) { left: 62%; animation-delay: -5.5s; } .honor-fx i:nth-child(10) { left: 69%; animation-delay: -1.5s; animation-duration: 10.5s; }
.honor-fx i:nth-child(11) { left: 76%; animation-delay: -8.5s; } .honor-fx i:nth-child(12) { left: 83%; animation-delay: -3.5s; animation-duration: 11.5s; }
.honor-fx i:nth-child(13) { left: 90%; animation-delay: -6.5s; } .honor-fx i:nth-child(14) { left: 96%; animation-delay: -2s; animation-duration: 9.5s; }
@keyframes honor-fall { to { transform: translateY(520px) rotate(540deg); } }

/* collapsed strip */
.honor.collapsed::before, .honor.collapsed .honor-fx { display: none; }
.honor-bar { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 16px; border: 0; background: transparent; color: inherit; text-align: left; }
.honor-bar .avatar { box-shadow: 0 0 0 2px #ffd34d, 0 0 14px rgba(255, 200, 60, 0.6); }
.hb-trophy { font-size: 22px; filter: drop-shadow(0 2px 8px rgba(255, 190, 40, 0.6)); }
.hb-text { min-width: 0; line-height: 1.2; }
.hb-text small { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold2); font-weight: 700; }
.hb-text b { display: block; font-size: 16px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-more { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: #3a1203; background: var(--gold-grad); padding: 6px 12px; border-radius: 999px; }

/* inside list view: card that scrolls with the matches */
.honor.in-list { max-width: 1100px; margin: 0 auto 26px; border: 1px solid rgba(255, 210, 120, 0.4); border-radius: 22px; box-shadow: 0 20px 50px rgba(20, 2, 0, 0.5), 0 0 60px rgba(255, 170, 40, 0.15); }
.honor.in-list .honor-inner { padding-top: 22px; }

@media (max-height: 900px) and (min-width: 601px) {
  .honor-inner { padding-top: 12px; }
  .hp.champ .avatar { width: 110px !important; height: 110px !important; }
  .silver .hp .avatar { width: 64px !important; height: 64px !important; }
  .bronze .hp .avatar { width: 54px !important; height: 54px !important; }
  .gold .step { height: 64px; } .gold .step span { font-size: 36px; }
  .silver .step { height: 44px; } .bronze .step { height: 30px; }
  .step span { font-size: 26px; }
  .step { margin-top: 10px; }
}
@media (max-width: 600px) {
  .honor-inner { padding: 12px 12px 14px; }
  .honor-kicker { font-size: 10px; letter-spacing: 0.24em; }
  .honor-toggle { top: -2px; right: -2px; width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
  .honor-toggle em { display: none; }
  .honor-head { margin-bottom: 4px; }
  .podium3 { grid-template-columns: 1fr 1.25fr; grid-template-areas: 'c c' 's b'; gap: 10px; align-items: stretch; }
  .gold { grid-area: c; }
  .silver { grid-area: s; }
  .bronze { grid-area: b; }
  .step { display: none; }
  .pcol .crown { font-size: 26px; margin-bottom: -8px; }
  .hp.champ .avatar { width: 84px !important; height: 84px !important; }
  .hp.champ .hp-name { margin-top: 8px; font-size: 22px; }
  .gline { flex-direction: row; gap: 10px; margin-top: 6px; }
  .gline .ptitle, .gline .pfinal { margin-top: 0; }
  .gold .ptitle { font-size: 11px; padding: 4px 12px; }
  .silver, .bronze { padding: 10px 8px; border-radius: 16px; background: rgba(30, 6, 2, 0.35); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
  .pcol .medal { font-size: 22px; position: absolute; left: 8px; top: 8px; margin: 0; }
  .silver .hp .avatar { width: 50px !important; height: 50px !important; }
  .bronze .hp .avatar { width: 44px !important; height: 44px !important; }
  .duo .rs { display: none; }
  .silver, .bronze { padding: 8px 6px; }
  .hp-name { font-size: 14px; margin-top: 6px; }
  .duo { gap: 6px; }
  .duo .hp-name { font-size: 13px; }
  .duo .hp-rec { font-size: 10.5px; }
  .ptitle { font-size: 10px; padding: 3px 9px; letter-spacing: 0.1em; margin-top: auto; }
  .silver .hp, .bronze .duo { margin-bottom: 8px; }
  .gold .ptitle { margin-top: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #honor { max-height: 72dvh; overflow-y: auto; overscroll-behavior: contain; }
  .honor-inner { padding-top: 8px; }
  .honor-title { font-size: 20px; }
  .podium3 { max-width: 640px; }
  .hp.champ .avatar { width: 84px !important; height: 84px !important; }
  .gold .step { height: 40px; } .silver .step { height: 28px; } .bronze .step { height: 18px; }
  .step span { font-size: 18px !important; }
  .pcol .crown { font-size: 28px; }
  .hp-rec, .pfinal { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .honor::before, .honor-fx i, .pcol .crown, .hp.champ .avatar, .step::after { animation: none; }
  .honor-fx { display: none; }
}

/* prize money in the honor section */
.pprize { margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--tone); font-variant-numeric: tabular-nums; }
.pprize.big { margin-top: 6px; font-size: 15px; color: var(--gold2); text-shadow: 0 0 14px rgba(255, 200, 70, 0.5); }
@media (max-width: 600px) { .pprize { font-size: 11.5px; margin: 0 0 6px; } .silver .ptitle { margin-top: 4px; } .pprize.big { font-size: 13px; margin-top: 4px; } }
