/* Aukuro – "Žvejybos rekordai": the /zvejyba/ page, the teaser card in the main page's Rekordai and the record mark
   in the profile's fish journal. Builds on site.css (+ changelog.css for the page frame). */
.zv-main .head2d, .fish-teaser .head2d { image-rendering: pixelated; flex: none; box-shadow: 0 0 0 2px #000; }
.zv-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.zv-summary .chip b { color: #fff; font-family: var(--font-head); font-size: 18px; }
.zv-state { text-align: center; }

/* player: head + name + village */
.zv-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.zv-who:hover .zv-pname { text-decoration: underline; }
.zv-who-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.zv-pname { font-weight: 600; color: #fff; overflow-wrap: anywhere; }  /* names wrap, never "…" (owner 2026-12-04) */
.zv-village { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.zv-village img { width: 14px; height: 14px; flex: none; }
.zv-village.guest { color: var(--muted); }
.zv-who.small .zv-pname { font-size: 15px; }
.zv-who.small .zv-village { font-size: 12px; }

/* fish icon */
.zv-icon { image-rendering: pixelated; flex: none; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.zv-icon.missing { filter: brightness(0.1) saturate(0) drop-shadow(0 0 1px rgba(255,255,255,.35)); opacity: .9; }
.zv-q { display: inline-grid; place-items: center; font: 600 24px var(--font-head); color: var(--muted); background: rgba(0,0,0,.3); }

/* highlights */
.zv-hls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 26px; }
.zv-hl { padding: 18px clamp(14px, 3vw, 24px) 20px; box-shadow: inset 4px 0 0 var(--rc, var(--gold)), inset 2px 2px 0 var(--panel-hi), 0 8px 0 rgba(0,0,0,.28); }
.zv-hl h2 { margin: 0 0 12px; font: 600 clamp(22px, 3vw, 28px)/1.15 var(--font-head); color: #fff; text-shadow: 3px 3px 0 var(--mc-shadow); }
.zv-hl-fish { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.zv-hl-fish > div { display: flex; flex-direction: column; min-width: 0; }
.zv-hl-name { font: 600 20px var(--font-head); color: var(--rc, #fff); text-shadow: 2px 2px 0 #000; }
.zv-hl-len { font: 600 clamp(30px, 5vw, 40px)/1 var(--font-head); color: #ffff55; text-shadow: 3px 3px 0 #3f3f15; }
.zv-most { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ranked rows (top 5 + most fish) */
.zv-most li, .zv-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 5px 8px; background: rgba(0,0,0,.28); border-left: 3px solid rgba(255,255,255,.12); }
.zv-rank { font: 600 17px var(--font-head); color: var(--muted); }
li.r1 { border-left-color: #f5c542; } li.r1 .zv-rank { color: #f5c542; }
li.r2 { border-left-color: #c9ced6; } li.r2 .zv-rank { color: #c9ced6; }
li.r3 { border-left-color: #c77b45; } li.r3 .zv-rank { color: #e09060; }
.zv-len { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; white-space: nowrap; }
.zv-len b { font: 600 19px var(--font-head); color: #fff; }
.zv-len small { font-size: 12px; color: var(--muted); }

/* rarity groups + species cards */
.zv-group { box-shadow: inset 4px 0 0 var(--rc), inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 0 8px 0 rgba(0,0,0,.28); }
.zv-group h2.zv-rarity { color: var(--rc); }
.zv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.zv-card { --rc: #aaa; display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; scroll-margin-top: 80px;
  background: rgba(0,0,0,.3); border: 2px solid #000; box-shadow: inset 3px 0 0 var(--rc), inset 2px 2px 0 rgba(255,255,255,.07); }
.zv-card.flash { animation: zv-flash 1.6s ease-out 2; }
@keyframes zv-flash { 30% { box-shadow: inset 3px 0 0 var(--rc), 0 0 0 3px #ffff55; } }
.zv-head { display: flex; align-items: center; gap: 12px; }
.zv-title { display: flex; flex-direction: column; min-width: 0; }
.zv-card h3.zv-name { margin: 0; font: 600 21px/1.1 var(--font-head); color: var(--rc); text-shadow: 2px 2px 0 #000; }
.zv-card.missing h3.zv-name { color: var(--muted); }
.zv-meta { font-size: 13px; color: var(--muted); }
.zv-holder { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px;
  background: rgba(255,200,61,.07); border: 2px solid rgba(255,200,61,.28); }
.zv-holder.none { display: block; background: rgba(255,255,255,.03); border-style: dashed; border-color: rgba(255,255,255,.14); font-size: 15px; }
.zv-crown { font-size: 20px; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.zv-holder .zv-len b { font-size: 24px; color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.zv-bar { height: 6px; background: rgba(0,0,0,.5); border: 1px solid #000; margin-top: -4px; }
.zv-bar i { display: block; height: 100%; background: var(--rc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.zv-top summary { cursor: pointer; font: 600 16px var(--font-head); color: #9fd3ff; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; }
.zv-top summary::-webkit-details-marker { display: none; }
.zv-top summary::before { content: "▸"; transition: transform .15s; display: inline-block; }
.zv-top[open] summary::before { transform: rotate(90deg); }
.zv-top ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }

/* a narrow species card (phones, 3-up grids): the record length + date go under the holder's name, so the name and
   village keep the whole row */
.zv-card { container-type: inline-size; }
@container (max-width: 360px) {
  .zv-holder { grid-template-columns: auto minmax(0, 1fr); }
  .zv-holder .zv-len { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; text-align: left; white-space: normal; }
}
@media (max-width: 520px) {
  .zv-hl-fish img { width: 48px; height: 48px; }
  .zv-holder { padding: 7px 8px; gap: 6px; }
  .zv-holder .zv-len b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .zv-card.flash { animation: none; } }

/* main page: teaser card in Rekordai */
.fish-teaser { display: flex; flex-direction: column; gap: 10px; }
.fish-teaser .ft-big { display: flex; align-items: center; gap: 12px; }
.fish-teaser .ft-big > div { display: flex; flex-direction: column; min-width: 0; }
.fish-teaser .ft-len { font: 600 26px/1 var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.fish-teaser .ft-who { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 0; color: #fff; font: 600 15px var(--font-body);
  background: none; border: 0; cursor: pointer; }
.fish-teaser .ft-who:hover { text-decoration: underline; }
.fish-teaser .mc-btn { align-self: flex-start; text-decoration: none; margin-top: auto; }

/* profile: species where this player holds the server record */
.fish.rec { border-left-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,200,61,.45); }
.fish.rec .fs { color: var(--gold); }
.pf-fish-more { display: inline-block; margin: -8px 0 18px; font: 600 15px var(--font-head); color: #9fd3ff; }

/* tabs + Statistika + Žvejai */
.zv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zv-tabs .mc-btn { padding: 8px 14px; }
.zv-tabs .mc-btn[aria-selected="true"] { background: linear-gradient(#e5b93a, #b9861c); box-shadow: inset 2px 2px 0 #ffe9a0, inset -2px -3px 0 #7a5410; color: #fff; }
.zv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.zv-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: rgba(0,0,0,.3); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.07); min-width: 0; }
.zv-kpi-l { font-size: 13px; color: var(--muted); }
.zv-kpi b { font: 600 30px/1.05 var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.zv-kpi small { font-size: 13px; color: var(--muted); }
.zv-chart { width: 100%; height: auto; max-height: 220px; display: block; }
.zv-chart .zv-axis { stroke: rgba(255,255,255,.25); stroke-width: 1; }
.zv-chart .zv-bar-day { fill: #6f8cff; }
.zv-chart .zv-bar-today { fill: #ffc83d; }
.zv-chart rect:hover { filter: brightness(1.25); }
.zv-chart .zv-chart-v { fill: #fff; font: 600 12px var(--font-head); }
.zv-chart .zv-chart-x { fill: var(--muted); font: 400 12px var(--font-head); }
.zv-share { display: block; height: 6px; background: rgba(0,0,0,.5); border: 1px solid #000; margin-top: 3px; }
.zv-share i { display: block; height: 100%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.zv-rarities, .zv-villages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.zv-rar, .zv-vil { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px;
  background: rgba(0,0,0,.28); border-left: 3px solid var(--rc, var(--vc, #888)); }
.zv-rar .zv-share, .zv-vil .zv-share { grid-column: 1 / -1; }
.zv-rar-n { color: var(--rc); font: 600 17px var(--font-head); }
.zv-rar span, .zv-vil span { font-size: 14px; color: #dfe2ee; text-align: right; }
.zv-vil { grid-template-columns: auto auto 1fr; border-left-color: var(--vc); }
.zv-vil b { color: var(--vc); }
.zv-species { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.zv-sp { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px;
  background: rgba(0,0,0,.28); border-left: 3px solid var(--rc); }
.zv-sp.missing { border-left-color: #333; }
.zv-sp-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.zv-sp-name { color: var(--rc); font: 600 17px var(--font-head); }
.zv-sp.missing .zv-sp-name { color: var(--muted); }
.zv-sp-count { font: 600 15px var(--font-head); color: #fff; white-space: nowrap; }
.zv-sp-sizes { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.zv-legend li { grid-template-columns: 28px minmax(0, 1fr) auto; border-left-color: var(--rc); }
.zv-anglers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zv-anglers li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px;
  background: rgba(0,0,0,.28); border-left: 3px solid rgba(255,255,255,.12); }
.zv-a-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 12px; font-size: 14px; }
.zv-a-n b { font: 600 20px var(--font-head); color: #fff; }
.zv-a-prog { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font-head); color: #dfe2ee; }
.zv-a-bar { width: 60px; height: 6px; background: rgba(0,0,0,.5); border: 1px solid #000; display: inline-block; }
.zv-a-bar i { display: block; height: 100%; background: #55ff55; }
.zv-a-rec { color: var(--gold); font: 600 15px var(--font-head); }
.zv-a-rare { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 620px) {
  .zv-anglers li { grid-template-columns: 26px minmax(0, 1fr); }
  .zv-a-stats { grid-column: 1 / -1; justify-content: flex-start; }
}

/* profile: fish summary line */
.pf-fish-sum { margin: -6px 0 10px; font-size: 14px; color: var(--muted); }
.pf-fish-sum b { color: #fff; }
