/* Aukuro – main page layout (homepage2): hero with the join card, info row, quick links, players that scale to 200,
   villages. Shares tokens and pixel chrome with site.css; the sky background is untouched. */

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 12px; font: 600 16px var(--font-head);
  color: #000; background: #ffff55; border: 2px solid #000; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------------ hero */
.home .hero { padding: clamp(28px, 6vh, 64px) 0 8px; }
.home .tagline { margin: 14px auto 20px; }
.home .join { display: block; width: min(780px, 100%); margin: 0 auto; padding: 16px 18px 14px; }
.join-top { display: flex; gap: 16px; align-items: stretch; }
.join-addr { flex: 1 1 auto; min-width: 0; }
.home .address { width: auto; flex: 1 1 220px; }
.join-count { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
  min-width: 150px; padding: 6px 14px; background: rgba(0,0,0,.42); border: 2px solid rgba(255,255,255,.14); }
.jc-num { display: inline-flex; align-items: center; gap: 10px; font: 400 40px/1 var(--font-pixel); color: var(--green);
  text-shadow: 2px 2px 0 #0b3b0b; }
.join-count[data-state="offline"] .jc-num { color: var(--red); text-shadow: 2px 2px 0 #3b0b0b; }
.jc-lbl { font: 600 15px/1.2 var(--font-head); color: var(--muted); }
.join-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.join-steps li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: rgba(0,0,0,.3); border: 2px solid #000;
  font-size: 15px; line-height: 1.25; }
.join-steps b { color: #fff; }
.join-steps .step-n { width: 30px; height: 30px; flex: none; font-size: 16px; }
.home .join-meta { margin-top: 12px; }
.home .join-meta .sub-link { margin-left: auto; }

/* ------------------------------------------------------------------ info row */
.info-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-top: 26px; }
.info-tile { display: flex; flex-direction: column; min-height: 248px; padding: 16px 18px 14px; min-width: 0; }
.it-h { margin: 0 0 10px; font: 600 22px/1.15 var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.it-more { margin-top: auto; padding-top: 10px; align-self: flex-start; font: 600 16px var(--font-head); color: #9fd3ff; text-decoration: none; }
.it-more:hover { text-decoration: underline; }
.it-big { margin: 0 0 10px; font: 400 18px var(--font-head); }
.it-big b { font: 400 48px/1 var(--font-pixel); color: var(--green); text-shadow: 3px 3px 0 #0b3b0b; }
.it-heads { display: flex; flex-wrap: wrap; gap: 6px; }
.it-head { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer; text-decoration: none;
  background: var(--vc, #6b6680); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: transform .12s; }
.it-head:hover, .it-head:focus-visible { transform: translateY(-2px); }
.it-head canvas { width: 28px; height: 28px; image-rendering: pixelated; }
.it-plus { width: auto; min-width: 38px; padding: 0 6px; background: rgba(0,0,0,.5); font: 600 16px var(--font-head); color: #fff; }
.it-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.it-link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 9px; color: var(--text);
  text-decoration: none; background: rgba(0,0,0,.3); border: 2px solid #000; transition: transform .12s; }
.it-link:hover { transform: translateX(3px); border-color: rgba(255,255,85,.6); }
.it-date { font: 600 14px/1.5 var(--font-head); color: #2b1a00; background: var(--gold); padding: 0 6px; border: 2px solid #000; white-space: nowrap; }
.it-t { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 9px;
  background: rgba(0,0,0,.28); border-left: 4px solid var(--ec, #555); }
.ev-ic { font: 600 20px/1.2 var(--font-head); color: var(--ec, #fff); text-align: center; text-shadow: 1px 1px 0 #000; }
.ev-tx { display: flex; flex-direction: column; min-width: 0; }
.ev-t { font-size: 15px; line-height: 1.3; }
.ev-s { font-size: 13px; color: var(--muted); }
.ev-live { background: color-mix(in srgb, var(--ec) 16%, rgba(0,0,0,.3)); }
.ev-live .ev-t, .ev-warn .ev-t { color: var(--ec); font-weight: 600; }

/* ------------------------------------------------------------------ quick links */
.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.qt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-width: 0; color: var(--text); text-decoration: none;
  background: var(--panel); border: 2px solid #000; box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 0 6px 0 rgba(0,0,0,.25);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: transform .12s, border-color .12s; }
.qt:hover, .qt:focus-visible { transform: translateY(-3px); border-color: #ffff55; }
.qt img { flex: none; width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.qt span { display: flex; flex-direction: column; min-width: 0; }
.qt b { font: 600 18px/1.15 var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); }
.qt small { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ players */
.head-link { margin-left: auto; }
.home .players-section .sub:first-of-type { margin-top: 4px; }
.player-grid.spotlight { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ptile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.ptile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 8px 4px 6px;
  color: inherit; font: inherit; text-align: center; cursor: pointer; background: rgba(0,0,0,.3); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.05); transition: transform .12s, background .12s, border-color .12s; }
.ptile:hover, .ptile:focus-visible { transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: var(--vc); }
.ptile-head { position: relative; display: grid; place-items: center; padding: 3px; background: var(--vc, #6b6680); border: 2px solid #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 3px 0 rgba(0,0,0,.35); }
.ptile-head canvas, .it-head canvas { display: block; image-rendering: pixelated; background: rgba(0,0,0,.35); }
.ptile-dot { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: var(--green); border: 2px solid #000; }
.ptile-name { max-width: 100%; font-size: 14px; font-weight: 600; line-height: 1.25; color: #fff; text-shadow: 1px 1px 0 #000;
  text-align: center; overflow-wrap: anywhere; }  /* a 16-letter name wraps, never "…" (owner 2026-12-04) */
.ptile-name .staff { margin-right: 2px; }
.ptile-meta { max-width: 100%; font-size: 12px; line-height: 1.2; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile.on .ptile-meta { color: var(--green); }
.ptile-prof { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 13px; color: #dfe2ee; white-space: nowrap; overflow: hidden; }
.ptile-prof img { width: 16px; height: 16px; flex: none; }
.more-btn { display: inline-block; margin-top: 14px; text-decoration: none; font-size: 15px; }
.home #players-empty { padding: 12px 14px; }
.home .empty-art { width: 48px; height: 48px; background-size: 384px 384px; background-position: -48px -48px; }
/* desktop: the feed column is exactly as tall as the players column (min 300 px) and scrolls inside */
@media (min-width: 1021px) {
  .home .columns { align-items: stretch; }
  .home .feed-section { display: flex; flex-direction: column; }
  .home .feed-section .feed { flex: 1 1 0; height: 0; min-height: 300px; max-height: none; }
}
/* folded feed rows (feedgroup.js): "rodyti visus (6)" opens the list of every moment in the row */
.feed .fname { cursor: pointer; }
.feed .fname:hover, .feed .fname:focus-visible { text-decoration: underline; outline: none; }
.feed .ftoggle { background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; color: var(--gold); cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.feed .ftoggle:hover, .feed .ftoggle:focus-visible { color: #fff; outline: none; }
.feed .fsub { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.3; }
.feed .fsub li { display: block; padding: 0; background: none; border: 0; animation: none; }
.feed .fsub b { color: #fff; }
.feed .fsub-when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.home .village-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .info-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .it-events { grid-column: 1 / -1; min-height: 0; }
  .quick-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qt small { display: none; }
}
@media (max-width: 760px) {
  .join-steps { grid-template-columns: minmax(0, 1fr); }
  .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qt small { display: block; }
}
@media (max-width: 620px) {
  .info-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .info-tile { min-height: 0; }
}
@media (max-width: 520px) {
  .join-top { flex-direction: column; gap: 10px; }
  .join-count { flex-direction: row; align-items: center; gap: 12px; min-width: 0; }
  .jc-num { font-size: 32px; }
  .home .join-meta .sub-link { margin-left: 0; }
  .ptile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .player-grid.spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .village-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-tiles { gap: 8px; }
  .qt { padding: 8px 10px; gap: 10px; }
  .qt b { font-size: 16px; }
  .qt small { font-size: 13px; }
  .head-link { margin-left: 0; }
}
@media (max-width: 340px) { .ptile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .qt, .ptile, .it-head, .it-link { transition: none; } }

/* ------------------------------------------------------------------ /zaidejai/: the full, searchable list */
.pl-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 4px; }
.pl-field { display: flex; flex-direction: column; gap: 4px; font: 600 14px var(--font-head); color: var(--muted); }
.pl-search { flex: 1 1 220px; }
.pl-field input, .pl-field select { font: 400 17px var(--font-body); color: var(--text); background: #000; border: 2px solid #5a5a5a;
  box-shadow: inset 2px 2px 0 #222; padding: 7px 10px; min-width: 0; }
.pl-field input:focus, .pl-field select:focus { border-color: #ffff55; outline: none; }
.pl-check { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 9px; font: 600 16px var(--font-head); cursor: pointer; }
.pl-check input { width: 18px; height: 18px; accent-color: var(--green); }
.pl-summary { margin: 12px 0 0; }
.pl-list { min-height: 70vh; }
.pl-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ptile.rich { padding: 10px 6px 8px; gap: 4px; }
.ptile.rich .ptile-name { font-size: 15px; }
.pl-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pl-pager .mc-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.pl-page { font: 600 18px var(--font-head); }
@media (max-width: 520px) {
  .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pl-field { flex: 1 1 40%; }
  .pl-search { flex-basis: 100%; }
}

/* ---- Discord: hero button under the address, recommended extra step in "Kaip prisijungti" */
.join-dc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.dc-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: linear-gradient(#6f7bf7, #4c58e6);
  box-shadow: inset 2px 2px 0 #a3aaff, inset -2px -3px 0 #343c9e; }
.dc-btn:hover, .dc-btn:focus-visible { background: linear-gradient(#8a93ff, #5f6af0); box-shadow: inset 2px 2px 0 #c3c8ff, inset -2px -3px 0 #3e47b0; }
.dc-btn .dc-ico { filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.join-dc-note { font-size: 15px; color: var(--muted); }
.steps .step-dc { background: #5865F2; box-shadow: inset 2px 2px 0 #8f97ff, inset -2px -2px 0 #343c9e; }
.steps .step-dc .dc-ico { filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.steps .step-extra { border-style: dashed; border-color: #3a43a8; }
@media (max-width: 520px) {
  .dc-btn { flex: 1 1 100%; justify-content: center; }
  .join-dc-note { font-size: 14px; }
}

/* ---- homepage review 2026-12-03: one size for the secondary buttons, feed title on one line, Kaimai head links
   together, Kaip…? as a 3 × 2 grid ---- */
.home .cm-btn, .home .more-btn, .home .fish-teaser .mc-btn { display: inline-block; font-size: 15px; padding: 8px 14px; text-decoration: none; }
.home .fish-teaser .mc-btn { align-self: flex-start; }
.home .head-link + .head-link { margin-left: 14px; }
.home .kaip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1021px) {
  .home .feed-section .section-head h2 { font-size: 24px; }
}
@media (max-width: 1020px) { .home .kaip-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) {
  .home .kaip-grid { grid-template-columns: minmax(0, 1fr); }
  .home .head-link + .head-link { margin-left: 0; }
}
