/* TopServeriai.lt – šviesus dizainas */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface2: #F2F4F7;
  --line: #E4E7EC;
  --line2: #D0D5DD;
  --text: #101828;
  --text2: #344054;
  --muted: #667085;
  --faint: #98A2B3;
  --dark: #101828;
  --lime: #C6F432;
  --gold: #B7791F;
  --ok: #12B76A;
  --bad: #F04438;
  --radius: 16px;
  --sh1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh2: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sh3: 0 16px 40px -12px rgba(16, 24, 40, 0.18), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --display: 'Sora', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #475467; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 22px; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.grow { flex: 1 1 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* ---------- Mygtukai ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 700 15px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-dark, .btn-accent { background: var(--dark); color: #fff; }
.btn-dark:hover, .btn-accent:hover { background: #283245; color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line2); color: var(--text2); box-shadow: var(--sh1); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-soft { background: var(--surface2); color: var(--text); }
.btn-soft:hover { background: #E4E7EC; color: var(--text); }
.btn-lime { background: var(--lime); color: var(--dark); }
.btn-lime:hover { background: #D6FF5C; color: var(--dark); }
.btn-game { background: var(--gc, var(--dark)); color: #fff; }
.btn-game:hover { filter: brightness(1.08); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gc, var(--line2)); color: var(--gc, var(--text)); }
.btn-danger { background: var(--surface); border-color: #FECDCA; color: #B42318; }
.btn-danger:hover { background: #FEF3F2; color: #B42318; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--dark); display: inline-flex; align-items: center; justify-content: center; font: 800 13px var(--body); margin-left: -6px; }

/* ---------- Viršus ---------- */
.site-header { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { display: block; flex: 0 0 auto; border-radius: 9px; }
.logo-text { font: 800 20px var(--display); letter-spacing: -0.03em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.main-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 15px; }
.main-nav a:hover { color: var(--text); background: var(--surface2); }
.main-nav a.active { color: var(--text); background: var(--surface2); }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.flashes { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; box-shadow: var(--sh1); }
.flash-success { border-color: #ABEFC6; background: #ECFDF3; color: #067647; }
.flash-error { border-color: #FECDCA; background: #FEF3F2; color: #B42318; }
.flash-info { border-color: #B2DDFF; background: #EFF8FF; color: #175CD3; }

/* ---------- Formos ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: 500 16px var(--body); box-shadow: var(--sh1);
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #84ADFF; box-shadow: 0 0 0 4px rgba(41, 112, 255, 0.14); }
input[type=file] { box-shadow: none; }

/* ---------- Pagrindinio viršus ---------- */
.home-hero { background: var(--bg) url('img/hero_bg.jpg') center top / cover no-repeat; position: relative; }
.home-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, rgba(245, 246, 248, 0) 0%, rgba(245, 246, 248, 0.85) 60%, var(--bg) 100%); pointer-events: none; }
.home-hero-inner { position: relative; z-index: 1; text-align: center; padding-top: 72px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text2); box-shadow: var(--sh1); }
.eyebrow-light { background: rgba(255, 255, 255, 0.92); border-color: transparent; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.18); }
.home-hero h1 { margin-top: 20px; font-size: clamp(36px, 6vw, 64px); font-weight: 800; max-width: 900px; letter-spacing: -0.035em; }
.home-hero h1 .hl { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 4px; }
.home-hero p { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 18px; }
.hero-search { margin-top: 30px; width: 100%; max-width: 640px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 18px; box-shadow: var(--sh3); color: var(--muted); }
.hero-search input { border: 0; box-shadow: none; height: 48px; padding: 0; font-size: 17px; }
.hero-search input:focus { box-shadow: none; }
.hero-search .btn { min-height: 48px; border-radius: 12px; padding: 0 22px; }
.hero-games { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-game-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--text2); }
.hero-game-link:hover { border-color: var(--line2); color: var(--text); }

/* ---------- Žaidimų kortelės ---------- */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; padding-bottom: 24px; }
.show-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--sh2); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.show-card:hover { box-shadow: var(--sh3); transform: translateY(-2px); }
.show-media { position: relative; display: block; color: #fff; }
.show-media:hover { color: #fff; }
.show-media-text { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.show-media-text h2 { font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.show-media-text span { display: block; margin-top: 4px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.show-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.show-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.medal { width: 22px; height: 22px; border-radius: 50%; background: #FCEFC7; color: #8A5A00; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.srv-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.srv-head a { font: 700 20px var(--display); color: var(--text); letter-spacing: -0.02em; }
.srv-head .sub { color: var(--muted); font-size: 14px; }
.ipbox { display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 5px 5px 5px 14px; min-width: 0; }
.ipbox span { font: 500 14px var(--mono); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.ipbox button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: 700 13px var(--body); cursor: pointer; }
.ipbox button:hover { background: var(--surface2); }
.ipbox-lg span { font-size: 16px; }
.ipbox-lg button { min-height: 40px; }
.card-foot { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-top: auto; flex-wrap: wrap; }
.card-foot .btn { margin-left: auto; }
.empty-card { padding: 22px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); text-align: center; }
.empty-card a { font-weight: 700; text-decoration: underline; }

/* ---------- Sekcijos ---------- */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 28px; font-weight: 800; }
.section-sub { margin-top: 4px; color: var(--muted); }
.link-arrow { font-weight: 700; color: var(--text2); }
.page-title { font-size: 40px; font-weight: 800; margin-top: 12px; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 12px; background: #EAECF0; }
.segmented a { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px; }
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--surface); color: var(--text); box-shadow: var(--sh2); }

.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.vip-card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid #F5DFA6; box-shadow: var(--sh2); color: var(--text); position: relative; }
.vip-card:hover { color: var(--text); box-shadow: var(--sh3); }
.vip-card-row { display: flex; align-items: center; gap: 10px; padding: 0 4px 4px; }
.vip-card .name { font: 700 16px var(--display); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Topo sąrašas ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh2); overflow: hidden; }
.list-more { display: flex; justify-content: center; margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { background: #FAFBFC; }
.row-vip { background: #FFFCF2; }
.row-vip:hover { background: #FFF8E1; }
.row-rank { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 16px var(--display); color: var(--muted); background: var(--surface2); flex: 0 0 auto; }
.row-rank.rank-1 { background: #FCEFC7; color: #8A5A00; }
.row-rank.rank-2 { background: #EEF1F5; color: #475467; box-shadow: inset 0 0 0 1px #D0D5DD; }
.row-rank.rank-3 { background: #F9E5D6; color: #93441A; }
.row-rank.rank-vip { background: #FCEFC7; color: #B7791F; }
.row-main { flex: 1 1 240px; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-title a { font: 700 18px var(--display); color: var(--text); letter-spacing: -0.02em; }
.row-title a:hover { text-decoration: underline; }
.row-sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
.row-ip { margin-top: 2px; font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.row-banner { flex: 0 1 340px; min-width: 0; display: block; }
.row-stats { width: 130px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-votes { font-size: 13px; color: var(--muted); white-space: nowrap; }
.row-votes b { font: 800 18px var(--display); color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; }
.chip-vip { background: #FCEFC7; color: #8A5A00; letter-spacing: 0.05em; }
.chip-gold { background: #FCEFC7; color: #8A5A00; }
.chip-bad { background: #FEF3F2; color: #B42318; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-pill.on { background: #ECFDF3; color: #067647; }
.status-pill.off { background: #F2F4F7; color: #667085; }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.sdot.on { background: var(--ok); }
.sdot.off { background: #F97066; }

.srv-icon { border-radius: 14px; object-fit: cover; flex: 0 0 auto; display: block; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.06); }
.srv-icon-gen { color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.srv-banner { display: block; width: 100%; max-width: 468px; height: 60px; border-radius: 10px; object-fit: cover; }
img.srv-banner { height: auto; aspect-ratio: 468 / 60; object-fit: contain; background: var(--surface2); }
.srv-banner-gen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; overflow: hidden; }
.bn-name { font: 800 16px var(--display); letter-spacing: 0.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-sub { font: 700 11px var(--body); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }

.pagination { margin-top: 24px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination a { min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text2); font-weight: 700; padding: 0 12px; }
.pagination a.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.pg-gap { align-self: center; color: var(--muted); }

/* ---------- Žaidimo topas ---------- */
.page-hero { position: relative; margin-top: 28px; border-radius: 24px; overflow: hidden; box-shadow: var(--sh2); }
.page-hero-text { position: absolute; left: 32px; right: 32px; bottom: 28px; color: #fff; }
.page-hero-text h1 { margin-top: 12px; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.page-hero-text p { margin-top: 6px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 24px; }
.filter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.filter-form input[type=search] { width: 240px; height: 40px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--dark); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.pill { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text2); font-weight: 700; font-size: 14px; }
.pill:hover { border-color: var(--line2); color: var(--text); }
.pill.active { background: var(--gc, var(--dark)); border-color: var(--gc, var(--dark)); color: #fff; }
.list-section { padding-top: 18px; padding-bottom: 56px; }
.empty { padding: 48px 24px; border: 1px dashed var(--line2); border-radius: 18px; text-align: center; color: var(--muted); background: var(--surface); }
.empty a { font-weight: 700; text-decoration: underline; }

/* ---------- Serverio puslapis ---------- */
.srv-cover { margin-top: 24px; border-radius: 24px 24px 0 0; overflow: hidden; }
.srv-profile { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px; padding: 0 28px 24px; box-shadow: var(--sh2); }
.srv-profile-icon { margin-top: -48px; padding: 5px; background: var(--surface); border-radius: 22px; box-shadow: var(--sh2); }
.srv-profile-icon .srv-icon { border-radius: 18px; }
.srv-profile-main { flex: 1 1 360px; min-width: 0; padding-top: 18px; }
.srv-profile-main h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 8px; }
.srv-profile-main .muted { margin-top: 4px; }
.srv-profile-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.srv-banner-wrap { margin-top: 16px; display: flex; justify-content: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.srv-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 24px; padding-bottom: 56px; }
.srv-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.srv-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh1); }
.tile .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile .v { margin-top: 6px; font: 800 20px var(--display); display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.card { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh2); }
.card h2 { font-size: 20px; font-weight: 700; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-head .muted { font-size: 13px; }
.prose { margin-top: 12px; color: var(--text2); line-height: 1.7; }
.chart { margin-top: 22px; height: 180px; display: flex; align-items: flex-end; gap: 12px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart .bar { width: 100%; max-width: 56px; border-radius: 8px 8px 3px 3px; background: var(--gc); opacity: 0.9; }
.chart .val { font-size: 13px; font-weight: 700; color: var(--text2); }
.chart .lbl { font-size: 13px; color: var(--muted); }
.links { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.vote-card { border-top: 4px solid var(--gc); }
.vote-card h2 { font-size: 24px; font-weight: 800; }
.vote-card label { display: block; margin-top: 16px; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--text2); }
.vote-card .btn-lg { margin-top: 18px; }
.vote-done-ico { width: 48px; height: 48px; border-radius: 50%; background: #ECFDF3; color: #067647; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.reward { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); display: flex; flex-direction: column; gap: 2px; }
.reward span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.countdown { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface2); }
.countdown .muted { font-size: 13px; font-weight: 600; }
.countdown .big { font: 600 30px var(--mono); margin-top: 2px; }
.voters-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.voters-row:last-child { border-bottom: 0; }
.voters-row .r { width: 26px; height: 26px; border-radius: 8px; background: var(--surface2); color: var(--muted); font: 800 13px var(--display); display: flex; align-items: center; justify-content: center; }
.voters-row .n { flex: 1; font-weight: 700; }
.voters-row .c { color: var(--muted); font-size: 14px; }

/* ---------- Prisijungimas ---------- */
.auth { max-width: 1240px; margin: 0 auto; padding: 56px 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.auth-pitch { flex: 1 1 420px; }
.auth-pitch h1 { font-size: 42px; font-weight: 800; }
.auth-pitch ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; color: var(--text2); font-size: 17px; font-weight: 600; }
.auth-pitch li { display: flex; gap: 12px; align-items: center; }
.auth-box { flex: 1 1 400px; max-width: 460px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh3); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #EAECF0; margin-bottom: 22px; }
.auth-tabs a { flex: 1; min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--muted); font-weight: 700; }
.auth-tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--sh2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; color: var(--text2); }
.field .hint { font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.check-inline { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text2); margin-bottom: 14px; }
.check-inline input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--dark); flex: 0 0 auto; }
.mode-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-picks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text2); cursor: pointer; }
.mode-picks input { accent-color: var(--dark); }
.mode-group[hidden], [data-vote][hidden] { display: none; }

/* ---------- Panelė, admin ---------- */
.panel-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 32px; padding-bottom: 56px; }
.panel-nav { flex: 1 1 220px; max-width: 250px; display: flex; flex-direction: column; gap: 4px; }
.panel-nav a { padding: 11px 14px; border-radius: 10px; color: var(--text2); font-weight: 600; }
.panel-nav a:hover { background: var(--surface2); }
.panel-nav a.active { background: var(--surface); color: var(--text); font-weight: 800; box-shadow: var(--sh2); border: 1px solid var(--line); }
.panel-nav a.add { margin-top: 10px; border: 1px dashed var(--line2); color: var(--text); font-weight: 800; }
.panel-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--sh2); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 700; font-size: 13px; background: #F9FAFB; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.pack { padding: 20px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pack .t { font: 700 18px var(--display); }
.pack .d { color: var(--muted); font-size: 14px; }
.pack .p { font: 800 22px var(--display); margin-top: auto; }
.status-ok { color: #067647; font-weight: 600; }
.status-bad { color: #B42318; font-weight: 600; }
.code { font: 13px var(--mono); background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.bg-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.bg-admin .scene { border-radius: 12px; margin-bottom: 10px; }

/* senos klasės, kurios dar naudojamos keliuose puslapiuose */
.cta { border-radius: 24px; background: var(--dark); color: #fff; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 56px; background-image: radial-gradient(600px 220px at 100% 0, rgba(198, 244, 50, 0.22), rgba(198, 244, 50, 0) 70%); }
.cta h2 { font-size: 32px; font-weight: 800; color: #fff; }
.cta p { margin-top: 8px; font-size: 17px; color: #D0D5DD; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 8px; }
.step { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh1); }
.step-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--dark); display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 16px 0 6px; font: 700 18px var(--display); }
.step p { color: var(--muted); }

/* ---------- Apačia ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 320px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { font: 800 13px var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 4px; }
.footer-col a { color: var(--text2); font-weight: 600; font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 24px; color: var(--faint); font-size: 13px; }

/* ---------- Žaidimų vaizdai ---------- */
.scene { position: relative; width: 100%; overflow: hidden; }
.scene i { position: absolute; display: block; }
.scene-photo { background-color: #D0D5DD; background-size: cover; background-position: center; }
.scene-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 24, 40, 0) 40%, rgba(16, 24, 40, 0.62) 100%); }
.scene-mc { background: #86C5EE; }
.mc-sun { right: 9%; top: 14%; width: 38px; height: 38px; background: #FFF3A8; }
.mc-cloud { background: #fff; }
.mc-cloud.c1 { left: 7%; top: 16%; width: 96px; height: 18px; }
.mc-cloud.c2 { left: 10%; top: 9%; width: 48px; height: 16px; }
.mc-cloud.c3 { left: 44%; top: 24%; width: 72px; height: 14px; }
.mc-terrain { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.mc-terrain i { position: static; flex: 1; background: linear-gradient(#62B33E 0 12px, #4A8E2E 12px 16px, #8B5E3C 16px 58%, #6F6F78 58%); }
.mc-trunk, .mc-leaves, .mc-leaves-top, .mc-grid { display: none !important; }
.scene-cs { background: #E9B57E; }
.cs-sun { left: 60%; top: 14%; width: 86px; height: 86px; border-radius: 50%; background: #FFE7BF; }
.cs-b { bottom: 0; background: #B07A4C; }
.cs-b.b1 { left: 0; width: 30%; height: 50%; }
.cs-b.b2 { left: 26%; width: 18%; height: 66%; background: #A06C40; }
.cs-b.b3 { left: 56%; width: 44%; height: 42%; }
.cs-arch, .cs-win, .cs-crate, .cs-low, .cs-cross { display: none !important; }
.cs-wall { left: 0; right: 0; bottom: 0; height: 56px; background: #7A5232; }
.cs-ground { left: 0; right: 0; bottom: 0; height: 22px; background: #4E3420; }
.scene-fm { background: #23164A; }
.fm-band1 { left: 0; right: 0; bottom: 0; height: 55%; background: #4A2370; }
.fm-band2 { left: 0; right: 0; bottom: 0; height: 30%; background: #6A2A78; }
.fm-sun { left: 50%; bottom: 14%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: #FF7A59; }
.fm-stripe, .fm-palm, .fm-line { display: none !important; }
.fm-bld { bottom: 14px; background: #140E26; }
.fm-road { left: 0; right: 0; bottom: 0; height: 14px; background: #0B0716; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-actions .btn-soft { display: none; }
  .row { padding: 14px 16px; }
  .row-stats { width: auto; align-items: flex-start; flex-direction: row; gap: 10px; }
  .row-banner { flex-basis: 100%; order: 5; }
  .filter-form { margin-left: 0; width: 100%; }
  .filter-form input[type=search] { flex: 1; width: auto; }
  .cta { padding: 26px; }
  .page-hero-text { left: 20px; right: 20px; bottom: 20px; }
  .srv-profile { padding: 0 18px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
