/* ==========================================================================
   mcgame.lt – Minecraft tema: balta, žalia, auksinė ir žydra
   ========================================================================== */
:root {
  --sky-1: #4fb2f2; --sky-2: #8ed0fa; --sky-3: #c9ecff; --sky-4: #e8f7ff;
  --cyan: #22b4ee; --cyan-d: #0d84bb; --cyan-l: #9be8ff;
  --green: #55b52f; --green-l: #92e45f; --green-d: #34801f; --green-dd: #1d5812;
  --gold: #ffd23f; --gold-l: #fff1a0; --gold-d: #d99a00; --gold-dd: #7a5200;
  --ground: #c6ec9f;
  --paper: #f7fcff;
  --ink: #143048; --ink-2: #44627c; --ink-3: #7a93a8;
  --line: #163c4d;
  --lt-yellow: #fdb913; --lt-green: #006a44; --lt-red: #c1272d;
  --red: #c1272d;
  --pixel: "Jersey 15", "Pixelify Sans", ui-monospace, monospace;
  --tiny: var(--pixel);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --drop: 0 0.375rem 0 0 rgba(22, 60, 77, .28);
  --outline: -0.1875rem -0.1875rem 0 var(--line), 0.1875rem -0.1875rem 0 var(--line), -0.1875rem 0.1875rem 0 var(--line), 0.1875rem 0.1875rem 0 var(--line),
             0 -0.1875rem 0 var(--line), 0 0.1875rem 0 var(--line), -0.1875rem 0 0 var(--line), 0.1875rem 0 0 var(--line);
  --outline-s: -0.125rem -0.125rem 0 var(--line), 0.125rem -0.125rem 0 var(--line), -0.125rem 0.125rem 0 var(--line), 0.125rem 0.125rem 0 var(--line),
               0 -0.125rem 0 var(--line), 0 0.125rem 0 var(--line), -0.125rem 0 0 var(--line), 0.125rem 0 0 var(--line);
  color-scheme: light;
}

* { box-sizing: border-box; }
/* Plačiuose ekranuose šrifto bazė auga (1400 px – 100 %, 1920 px – ~118 %, 2560 px – ~140 %),
   o visi dydžiai yra rem vienetais, todėl visas dizainas auga kartu. */
html { scroll-behavior: smooth; font-size: clamp(100%, calc(100% + (100vw - 1400px) * .0055), 162%); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink);
  background: var(--ground) url("../img/scene/bg_grass.3343dfe719ff.png") 0 0 / 8rem 8rem;
  image-rendering: pixelated; font-synthesis-weight: none; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1; }
a { color: var(--cyan-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--pixel); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: #fff; border: 0.125rem solid var(--line); padding: 0 .4em; font-size: .88em; }
hr { border: 0; border-top: 0.1875rem dashed rgba(22, 60, 77, .25); margin: 1.4rem 0; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: 100%; max-width: 140rem; margin: 0 auto; padding: 0 clamp(1rem, 3.4vw, 6rem); }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.625rem; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.section-title h2::after {
  content: ""; display: block; width: 6rem; height: 0.5rem; margin-top: 0.625rem;
  background: repeating-linear-gradient(90deg, var(--green) 0 1rem, var(--gold) 1rem 2rem);
  border: 0.125rem solid var(--line);
}
.eyebrow {
  display: inline-block; font-family: var(--tiny); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: #4a3000; border: 0.125rem solid var(--gold-dd); padding: 0.125rem 0.5rem; margin-bottom: .6rem;
  box-shadow: inset 0.125rem 0.125rem 0 var(--gold-l), 0 0.125rem 0 var(--gold-dd);
}
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: .88rem; } .center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; }
.flex { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }

/* ---------- viršutinė juosta ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 0.25rem solid var(--line);
  box-shadow: 0 0.25rem 0 0 var(--green), 0 0.5rem 0 0 rgba(22, 60, 77, .16);
}
.topbar .bar { display: flex; align-items: center; gap: 0.875rem; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; flex: none; transition: transform .12s; }
.logo:hover { text-decoration: none; transform: translateY(-0.125rem) scale(1.03); }
/* MCGAME.LT logotipas (static/img/logo.png, 1000×168). Mažinant – glotnus, kad pikseliai neišsikraipytų. */
.logo-img, .foot-logo, .hero-logo, .login-logo { display: block; height: auto; image-rendering: auto; }
.logo-img { width: 13.4rem; }
.logo-cube { width: 2.25rem; height: 2.25rem; display: none; place-items: center; }
.nav { display: flex; gap: 0.25rem; margin-left: 0.375rem; }
.nav a {
  font-family: var(--pixel); font-weight: 600; font-size: 1.35rem; color: var(--ink-2); padding: 0.25rem 0.75rem 0.1875rem;
  border: 0.1875rem solid transparent; transition: transform .12s, background .12s;
}
.nav a:hover { color: var(--ink); background: var(--sky-4); border-color: var(--line); text-decoration: none; transform: translateY(-0.125rem); }
.nav a.active {
  color: #fff; background: var(--green); border-color: var(--green-dd); text-shadow: 0 0.125rem 0 var(--green-dd);
  box-shadow: inset 0.1875rem 0.1875rem 0 var(--green-l), inset -0.1875rem -0.1875rem 0 var(--green-d);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-flag { display: grid; place-items: center; padding: 0 0.125rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--pixel); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); border: 0.1875rem solid var(--line); padding: 1px 0.75rem; background: var(--sky-4); white-space: nowrap;
  box-shadow: inset 0.125rem 0.125rem 0 #fff;
}
.dot { width: 0.625rem; height: 0.625rem; background: var(--red); flex: none; border: 0.125rem solid var(--line); }
.dot.on { background: var(--green-l); animation: pulse 1.6s ease-in-out infinite; }
.user-chip { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-family: var(--pixel); font-weight: 600; font-size: 1.3rem; }
.user-chip:hover { text-decoration: none; color: var(--green-d); }
.menu-btn {
  display: none; background: #fff; border: 0.1875rem solid var(--line); color: var(--ink); padding: 0.1875rem 0.625rem; font-size: 1.1rem; cursor: pointer;
  box-shadow: inset -0.1875rem -0.1875rem 0 #cfe6f3, 0 0.1875rem 0 var(--line);
}

/* ---------- mygtukai ---------- */
.btn {
  --b: #eaf6ff; --hl: #fff; --sh: #a9cde6; --ln: var(--line); --fg: var(--ink);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1.125rem 0.4375rem; font-family: var(--pixel); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em;
  color: var(--fg); background: var(--b); border: 0.1875rem solid var(--ln); cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: inset 0.1875rem 0.1875rem 0 0 var(--hl), inset -0.1875rem -0.25rem 0 0 var(--sh), 0 0.25rem 0 0 var(--ln);
  transition: transform .09s ease, box-shadow .09s ease, filter .15s ease;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 40%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transition: left .55s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-0.125rem); filter: brightness(1.06); box-shadow: inset 0.1875rem 0.1875rem 0 0 var(--hl), inset -0.1875rem -0.25rem 0 0 var(--sh), 0 0.375rem 0 0 var(--ln); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0.1875rem); box-shadow: inset 0.1875rem 0.1875rem 0 0 var(--sh), inset -0.1875rem -0.1875rem 0 0 var(--hl), 0 1px 0 0 var(--ln); }
.btn:focus-visible { outline: 0.1875rem solid var(--gold); outline-offset: 0.1875rem; }
.btn-primary { --b: var(--green); --hl: var(--green-l); --sh: var(--green-d); --ln: var(--green-dd); --fg: #fff; text-shadow: 0 0.125rem 0 var(--green-dd); }
.btn-gold { --b: var(--gold); --hl: var(--gold-l); --sh: var(--gold-d); --ln: var(--gold-dd); --fg: #4a3000; }
.btn-sky { --b: var(--cyan); --hl: var(--cyan-l); --sh: var(--cyan-d); --ln: #0a4f70; --fg: #fff; text-shadow: 0 0.125rem 0 #0a4f70; }
.btn-danger { --b: #e0474d; --hl: #f58a8e; --sh: #9d1c22; --ln: #5a0e12; --fg: #fff; text-shadow: 0 0.125rem 0 #5a0e12; }
.btn-ghost { --b: transparent; --hl: transparent; --sh: transparent; background: rgba(255, 255, 255, .55); box-shadow: 0 0.1875rem 0 0 var(--ln); }
.btn-sm { padding: 0.25rem 0.75rem 0.1875rem; font-size: 1.2rem; }
.btn-lg { padding: 0.6875rem 1.625rem 0.625rem; font-size: 1.65rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--cyan-d); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* ---------- formos ---------- */
label { display: block; font-weight: 500; margin-bottom: 0.375rem; font-size: .93rem; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 0.625rem 0.75rem; border: 0.1875rem solid var(--line); background: #fff; color: var(--ink); font: inherit;
  box-shadow: inset 0.1875rem 0.1875rem 0 #d9e9f3; border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan-d); box-shadow: inset 0.1875rem 0.1875rem 0 #d9e9f3, 0 0 0 0.1875rem var(--cyan-l); }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 1.125rem; height: 1.125rem; }
textarea { resize: vertical; min-height: 6.875rem; }
.field { margin-bottom: 1rem; }
.help { color: var(--ink-3); font-size: .85rem; margin-top: 0.25rem; }
.check { display: flex; gap: 0.625rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.1875rem; flex: none; }
.errorlist { color: #b3202a; margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 500; }
.inline-form { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.inline-form > * { flex: 1 1 8.75rem; }
.inline-form .btn { flex: 0 0 auto; }

/* ---------- pranešimai ---------- */
.messages { margin: 1.125rem 0 0; display: grid; gap: 0.625rem; position: relative; z-index: 5; }
.alert { padding: 0.6875rem 1rem; border: 0.1875rem solid var(--line); border-left-width: 0.75rem; background: #fff; box-shadow: 0 0.25rem 0 rgba(22, 60, 77, .2); font-weight: 500; }
.alert-success { border-left-color: var(--green); background: #f1fbe9; }
.alert-error { border-left-color: var(--red); background: #fff1f1; }
.alert-warning { border-left-color: var(--gold-d); background: #fff9e0; }
.alert-info { border-left-color: var(--cyan); background: #eaf8ff; }

/* ---------- kortelės ir tinklelis ---------- */
.card {
  position: relative; background: #fff; border: 0.1875rem solid var(--line); padding: 1.375rem;
  box-shadow: inset 0 0 0 0.1875rem #eaf6ff, var(--drop);
}
.card-tight { padding: 1rem; }
.card h3 { margin-bottom: .35em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.875rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; display: flex; align-items: center; gap: 0.625rem; }
.tilt { transition: transform .14s ease-out; will-change: transform; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.grid-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-feat { grid-template-columns: 1fr; } }
@media (min-width: 1700px) { .grid-feat { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 2400px) { .grid-feat { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 21.25rem; gap: 1.375rem; align-items: start; }

.badge {
  display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--tiny); font-size: .95rem; letter-spacing: .05em;
  text-transform: uppercase; padding: 0.1875rem 0.5rem; border: 0.125rem solid var(--line); background: #fff; color: var(--ink); white-space: nowrap;
}
.badge-accent { background: var(--cyan-l); }
.badge-green { background: #cdf5b0; border-color: var(--green-dd); color: var(--green-dd); }
.badge-gold { background: var(--gold); border-color: var(--gold-dd); color: #4a3000; }
.badge-red { background: #ffd2d2; border-color: #7d1419; color: #7d1419; }
.rank-tag { font-family: var(--tiny); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; padding: 0.1875rem 0.5625rem; color: #fff; border: 0.125rem solid var(--line); text-shadow: 0 0.125rem 0 rgba(0, 0, 0, .35); }

/* ---------- sprite, kubai, vėliava ---------- */
.sprite { display: inline-block; vertical-align: middle; image-rendering: pixelated; flex: none; }
.iso { image-rendering: pixelated; flex: none; }
.drop { display: inline-block; perspective: 16.25rem; animation: item-bob 2.6s ease-in-out infinite; }
.drop .sprite { animation: item-spin 5s linear infinite paused; filter: drop-shadow(0 0.25rem 0 rgba(22, 60, 77, .2)); }
.card:hover .drop .sprite, .drop:hover .sprite, .drop.live .sprite { animation-play-state: running; }

.cube-wrap { position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); perspective: calc(var(--s) * 7); }
.cube { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(35deg); }
.cube.spin { animation: cube-spin 12s linear infinite; }
.cube.spin-slow { animation: cube-spin 22s linear infinite; }
.cube-wrap:hover .cube.spin-slow { animation-duration: 3s; }
.cube > i { position: absolute; inset: 0; display: block; background-size: 100% 100%; image-rendering: pixelated; backface-visibility: hidden; }
.cube > i::after { content: ""; position: absolute; inset: 0; }
.cube .f { transform: translateZ(calc(var(--s) / 2)); }
.cube .b { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .r { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .l { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .t { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .d { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .f::after { background: rgba(10, 40, 60, .06); }
.cube .r::after { background: rgba(10, 40, 60, .24); }
.cube .b::after { background: rgba(10, 40, 60, .34); }
.cube .l::after { background: rgba(10, 40, 60, .14); }
.cube .t::after { background: rgba(255, 255, 255, .12); }
.cube .d::after { background: rgba(10, 40, 60, .5); }

.flag { --amp: calc(var(--fh) * .1); position: relative; display: inline-flex; flex: none; width: var(--fw); height: var(--fh); vertical-align: middle; }
.flag > i {
  display: block; flex: none; width: 0.1875rem; height: 100%;
  background: linear-gradient(180deg, var(--lt-yellow) 0 33.4%, var(--lt-green) 33.4% 66.7%, var(--lt-red) 66.7% 100%);
  animation: flag-wave 1.7s ease-in-out infinite; animation-delay: calc(var(--i) * -.11s);
}
.flag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 2.25rem 100%;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .26) 0 0.5625rem, transparent 0.5625rem 1.125rem, rgba(0, 30, 15, .2) 1.125rem 1.6875rem, transparent 1.6875rem 2.25rem);
  animation: flag-shade 1.7s linear infinite;
}
.flagpole { position: relative; display: inline-flex; align-items: flex-start; }
.flagpole .pole {
  flex: none; width: 0.4375rem; height: calc(var(--ph, 5.625rem)); margin-right: 1px; border: 0.125rem solid var(--line); border-radius: 0;
  background: linear-gradient(90deg, #fff 0 45%, #cfdce6 45%); position: relative;
}
.flagpole .pole::before { content: ""; position: absolute; left: -0.125rem; top: -0.5625rem; width: 0.4375rem; height: 0.4375rem; background: var(--gold); border: 0.125rem solid var(--gold-dd); }
.flagpole .flag { margin-top: 0.125rem; }

/* ---------- dangus, saulė, debesys, kalvos ---------- */
.sun {
  position: absolute; z-index: 1; top: 2.5rem; right: 9%; width: 4.625rem; height: 4.625rem; background: #ffe46b;
  box-shadow: 0 0 0 0.625rem rgba(255, 232, 120, .4), 0 0 0 1.375rem rgba(255, 232, 120, .2), 0 0 4.375rem 2.25rem rgba(255, 244, 180, .55);
  animation: sun-spin 80s linear infinite, sun-pulse 4s ease-in-out infinite;
}
.sun::after { content: ""; position: absolute; inset: 0.875rem; background: #fff6b8; }
.clouds { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.cloud {
  position: absolute; left: -18.75rem; background-size: 100% 100%; image-rendering: pixelated;
  animation: cloud-drift var(--dur, 80s) linear infinite; animation-delay: var(--delay, 0s);
}
.cloud.c1 { top: 3.5rem; width: 16rem; height: 6.5rem; background-image: url("../img/scene/cloud_1.1de0faf8f23c.png"); --dur: 75s; --delay: -30s; }
.cloud.c2 { top: 9.375rem; width: 20rem; height: 7.5rem; background-image: url("../img/scene/cloud_2.76053c8640c6.png"); --dur: 110s; --delay: -70s; opacity: .9; }
.cloud.c3 { top: 1.5rem; width: 14rem; height: 6rem; background-image: url("../img/scene/cloud_3.fa42bb4d695c.png"); --dur: 95s; --delay: -10s; opacity: .85; }
.cloud.c4 { top: 15rem; width: 12rem; height: 5.125rem; background-image: url("../img/scene/cloud_1.1de0faf8f23c.png"); --dur: 140s; --delay: -100s; opacity: .8; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 12rem; z-index: 2; pointer-events: none; }
.hl { position: absolute; inset: auto 0 0 0; height: 12rem; background-repeat: repeat-x; background-size: 60rem 12rem; background-position: 0 100%; image-rendering: pixelated; animation: hills-slide var(--dur) linear infinite; }
.hl.far { background-image: url("../img/scene/hills_far.8867e0265a6a.png"); --dur: 240s; }
.hl.mid { background-image: url("../img/scene/hills_mid.a8b6d7f98321.png"); --dur: 150s; }
.hl.near { background-image: url("../img/scene/hills_near.6c80320ded27.png"); --dur: 90s; }

/* ---------- pradžios „hero“ ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 55%, var(--sky-3) 100%);
}
.hero-inner { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.875rem; align-items: center; padding-top: 2.75rem; padding-bottom: 11rem; }
.lt-chip {
  display: inline-flex; align-items: center; gap: 0.625rem; background: #fff; border: 0.1875rem solid var(--line); padding: 0.3125rem 0.875rem 0.3125rem 0.625rem;
  font-family: var(--pixel); font-weight: 700; font-size: 1.4rem; box-shadow: 0 0.25rem 0 rgba(22, 60, 77, .28); margin-bottom: 1.125rem;
}
.lt-chip b { color: var(--green-d); }
.hero-title { margin: 0 0 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.splash { display: inline-block; font-family: var(--pixel); font-weight: 700; font-size: 1.7rem; color: var(--gold); text-shadow: var(--outline-s); transform: rotate(-3deg); transform-origin: left center; animation: splash 1.3s ease-in-out infinite; }
.hero-logo { width: min(100%, 50rem); margin: 0.25rem 0 0.125rem; filter: drop-shadow(0 0.5rem 0 rgba(22, 60, 77, .32)); animation: logo-bob 5s ease-in-out infinite; }
.login-logo { width: min(100%, 20rem); margin: 0 auto 1rem; }
.tagline { font-family: var(--pixel); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; text-shadow: var(--outline-s); margin-top: 0.5rem; }
.lead { font-size: 1.12rem; font-weight: 500; color: var(--ink); max-width: 35rem; }
.ip-sign, .ip {
  position: relative; display: inline-flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1.125rem; cursor: pointer; user-select: all;
  background: url("../img/tex/planks.8eaa22696b87.png") 0 0 / 3rem 3rem; border: 0.25rem solid #4a3216; color: #fff;
  font-family: var(--pixel); font-weight: 700; font-size: 1.9rem; text-shadow: 0 0.1875rem 0 #3a2710;
  box-shadow: inset 0 0 0 0.1875rem rgba(255, 255, 255, .2), inset 0 -0.3125rem 0 rgba(0, 0, 0, .22), 0 0.375rem 0 #2e1f0c; transition: transform .1s;
}
.ip-sign:hover, .ip:hover { transform: translateY(-0.125rem); }
.ip-sign:active, .ip:active { transform: translateY(0.1875rem); }
.ip-sign small, .ip small { font-family: var(--tiny); font-size: .95rem; letter-spacing: .06em; color: #4a3000; background: var(--gold); border: 0.125rem solid var(--gold-dd); padding: 0.125rem 0.375rem; user-select: none; text-shadow: none; }
.hero-cta { display: flex; gap: 0.875rem; flex-wrap: wrap; margin: 1.5rem 0 0; }
.hero-stats { list-style: none; margin: 1.625rem 0 0; padding: 0; display: flex; gap: 0.625rem; flex-wrap: wrap; }
.hero-stats li { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 0.1875rem solid var(--line); padding: 0.3125rem 0.75rem 0.3125rem 0.5rem; box-shadow: 0 0.25rem 0 rgba(22, 60, 77, .25); }
.hero-stats b { display: block; font-family: var(--pixel); font-size: 1.8rem; line-height: 1; }
.hero-stats span { display: block; font-size: .75rem; color: var(--ink-2); line-height: 1.1; }
.hero-visual { display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }

.hero { --hs: 1; }
@media (min-width: 1700px) { .hero { --hs: 1.12; } }
@media (min-width: 2100px) { .hero { --hs: 1.25; } }
@media (min-width: 2500px) { .hero { --hs: 1.4; } }
.scene { position: relative; height: calc(25rem * var(--hs, 1)); perspective: 75rem; touch-action: pan-y; }
.scene-glow { position: absolute; left: 50%; top: 46%; width: 20.625rem; height: 20.625rem; margin: -10.3125rem 0 0 -10.3125rem; background: radial-gradient(circle, rgba(255, 255, 255, .6), transparent 68%); animation: pulse-soft 4s ease-in-out infinite; }
.island { position: absolute; left: 50%; top: 56%; width: 0; height: 0; z-index: 3; animation: float 5s ease-in-out infinite; }
.hero-cube { --s: calc(var(--cs, 10.625rem) * var(--hs, 1)); position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); }
.hero-cube .cube { cursor: grab; will-change: transform; }
.hero-cube .cube:active { cursor: grabbing; }
.pole3d { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateY(calc(var(--s) / -2)); }
.pole3d .rod { position: absolute; left: -0.1875rem; bottom: 0; width: 0.375rem; height: calc(var(--s) * .72); background: repeating-linear-gradient(180deg, #fff 0 0.375rem, #cfdce6 0.375rem 0.75rem); box-shadow: inset 0 0 0 1px #8aa2b3; }
.pole3d .rod.x { transform: rotateY(90deg); }
.pole3d .knob { position: absolute; left: -0.25rem; bottom: calc(var(--s) * .72); width: 0.5rem; height: 0.5rem; background: var(--gold); box-shadow: inset 0 0 0 0.125rem var(--gold-dd); }
.flag-plane { --fw: 6rem; --fh: 3.625rem; position: absolute; left: 0.1875rem; bottom: calc(var(--s) * .72 - var(--fh) - 0.125rem); width: var(--fw); height: var(--fh); transform-style: preserve-3d; transform-origin: left top; scale: var(--hs, 1); }
.flag-plane .face { position: absolute; inset: 0; backface-visibility: hidden; }
.flag-plane .back { transform: rotateY(180deg); }
.island-shadow { position: absolute; left: 50%; bottom: 4%; width: 13.75rem; height: 2.125rem; margin-left: -6.875rem; z-index: 1; background: radial-gradient(ellipse at center, rgba(20, 70, 40, .38), transparent 70%); animation: shadow 5s ease-in-out infinite; }
.mini { position: absolute; z-index: 4; animation: float var(--fd, 5s) ease-in-out infinite; animation-delay: var(--fl, 0s); translate: calc(var(--mx, 0) * var(--k, 10) * 1px) calc(var(--my, 0) * var(--k, 10) * .6px); }
.mini .cube-wrap { filter: drop-shadow(0 0.5rem 0 rgba(22, 60, 77, .18)); scale: var(--hs, 1); }
.mini.m1 { left: 1%; top: 10%; --fd: 4.6s; --k: -14; }
.mini.m2 { right: 9%; top: 33%; --fd: 5.6s; --fl: -1.4s; --k: 18; }
.mini.m3 { left: 5%; bottom: 14%; --fd: 6s; --fl: -2.2s; --k: 22; }
.mini.m4 { right: 0; bottom: 8%; --fd: 4.2s; --fl: -3s; --k: -20; }
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.orbs span {
  position: absolute; bottom: 6%; width: 0.5625rem; height: 0.5625rem; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #d6ff8a 36%, #78d82a 100%);
  box-shadow: 0 0 0.625rem 0.1875rem rgba(140, 255, 60, .55); animation: orb-rise 7s ease-in infinite;
}
.orbs span:nth-child(1) { left: 10%; --dx: 1.5rem; animation-delay: 0s; }
.orbs span:nth-child(2) { left: 24%; --dx: -1.125rem; animation-delay: -1.2s; animation-duration: 8s; }
.orbs span:nth-child(3) { left: 38%; --dx: 0.875rem; animation-delay: -2.6s; }
.orbs span:nth-child(4) { left: 52%; --dx: -1.625rem; animation-delay: -3.8s; animation-duration: 6.4s; }
.orbs span:nth-child(5) { left: 66%; --dx: 1.25rem; animation-delay: -4.6s; }
.orbs span:nth-child(6) { left: 78%; --dx: -0.75rem; animation-delay: -5.4s; animation-duration: 7.6s; }
.orbs span:nth-child(7) { left: 88%; --dx: 1rem; animation-delay: -6.2s; }
.orbs span:nth-child(8) { left: 46%; --dx: 1.875rem; animation-delay: -.6s; animation-duration: 9s; }
.status-card { padding: 1rem 1.125rem; }
.status-card .big { font-family: var(--pixel); font-size: 3.6rem; font-weight: 700; line-height: 1; }
.status-card .players { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }

/* ---------- vidinių puslapių antraštė ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 60%, var(--sky-3) 100%); }
.page-head::before { content: ""; position: absolute; left: -18.75rem; top: 1.875rem; width: 16rem; height: 6.5rem; z-index: 0; background: url("../img/scene/cloud_1.1de0faf8f23c.png") center / 100% 100% no-repeat; image-rendering: pixelated; animation: cloud-drift 90s linear infinite; }
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; z-index: 1; pointer-events: none; image-rendering: pixelated;
  background: url("../img/scene/hills_near.6c80320ded27.png") repeat-x 0 100% / 40rem 8rem, url("../img/scene/hills_mid.a8b6d7f98321.png") repeat-x 0 100% / 40rem 8rem, url("../img/scene/hills_far.8867e0265a6a.png") repeat-x 0 100% / 40rem 8rem;
}
.page-head .container { position: relative; z-index: 2; padding-top: 2.375rem; padding-bottom: 8rem; }
.page-head .container::after {
  content: ""; position: absolute; right: 1rem; bottom: 4.375rem; width: 6rem; height: 7rem; background: url("../img/iso/grass.cb99bb8647df.png") center / contain no-repeat;
  image-rendering: pixelated; animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 0.5rem 0 rgba(22, 60, 77, .18));
}
.page-head h1 { color: #fff; text-shadow: var(--outline), 0 0.4375rem 0 var(--line); margin-bottom: .25em; }
.page-head p { color: var(--ink); font-weight: 500; margin: 0; max-width: 45rem; }
.page-head a:not(.btn):not(.chip) { color: var(--cyan-d); font-weight: 600; }

/* ---------- ypatybių kortelės, žingsniai ---------- */
.feature { --c: var(--green); display: flex; flex-direction: column; box-shadow: inset 0 0.625rem 0 0 var(--c), inset 0 0.8125rem 0 0 var(--line), var(--drop); padding-top: 1.875rem; transition: transform .15s ease; }
.grid > .feature:nth-child(4n+2) { --c: var(--cyan); }
.grid > .feature:nth-child(4n+3) { --c: var(--gold); }
.grid > .feature:nth-child(4n+4) { --c: var(--green-l); }
.feature:hover { transform: translateY(-0.25rem); }
.feature .icon { width: 4.25rem; height: 4.25rem; display: grid; place-items: center; margin-bottom: 0.75rem; background: var(--sky-4); border: 0.1875rem solid var(--line); box-shadow: inset 0.1875rem 0.1875rem 0 #fff, inset -0.1875rem -0.1875rem 0 #bfe3f6; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.steps { counter-reset: step; display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.375rem), 1fr)); }
.steps .card { padding-top: 3.5rem; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: -0.1875rem; left: 1.125rem; width: 2.625rem; height: 2.875rem; display: grid; place-items: center;
  font-family: var(--pixel); font-weight: 700; font-size: 2.1rem; color: #fff; background: var(--green); border: 0.1875rem solid var(--green-dd); border-top: 0;
  text-shadow: 0 0.125rem 0 var(--green-dd); box-shadow: inset 0.1875rem 0.1875rem 0 var(--green-l), inset -0.1875rem -0.1875rem 0 var(--green-d);
}
.cmd-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)); gap: 0.25rem 1.25rem; }
.cmd-list div { display: flex; gap: 0.625rem; align-items: baseline; padding: 0.375rem 0; border-bottom: 0.125rem dashed rgba(22, 60, 77, .18); }
.cmd-list code { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; background: #fff; border: 0.1875rem solid var(--line); font-family: var(--pixel); font-weight: 600; font-size: 1.25rem; color: var(--ink); box-shadow: 0 0.1875rem 0 rgba(22, 60, 77, .22); transition: transform .1s, background .1s; }
a.chip:hover { background: var(--green-l); text-decoration: none; transform: translateY(-0.125rem); }
.empty { text-align: center; color: var(--ink-2); padding: 1.75rem; }
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 3rem 1.5rem 7.5rem; border: 0.1875rem solid var(--line);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-3)); box-shadow: var(--drop);
}
.cta::before { content: ""; position: absolute; left: -18.75rem; top: 1.5rem; width: 14rem; height: 5.75rem; z-index: -1; background: url("../img/scene/cloud_3.fa42bb4d695c.png") center / 100% 100% no-repeat; image-rendering: pixelated; animation: cloud-drift 70s linear infinite; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; z-index: 0; background: url("../img/scene/hills_near.6c80320ded27.png") repeat-x 0 100% / 40rem 8rem, url("../img/scene/hills_mid.a8b6d7f98321.png") repeat-x 0 100% / 40rem 8rem; image-rendering: pixelated; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; text-shadow: var(--outline); }
.cta p { color: var(--ink); font-weight: 500; }
.cta .flagpole { position: absolute; bottom: 2.25rem; z-index: 2; }
.cta .flagpole.l { left: 6%; } .cta .flagpole.r { right: 6%; }

/* ---------- statistika, topai, lentelės ---------- */
.stat { position: relative; background: #f1faff; border: 0.1875rem solid var(--line); padding: 0.6875rem 0.875rem; box-shadow: inset 0.1875rem 0.1875rem 0 #fff, inset -0.1875rem -0.1875rem 0 #cfe6f3, 0 0.25rem 0 rgba(22, 60, 77, .22); }
.stat .label { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-size: .82rem; font-weight: 500; }
.stat .label .sprite { width: 1.125rem; height: 1.125rem; }
.stat .value { font-family: var(--pixel); font-weight: 700; font-size: 2rem; line-height: 1.2; margin-top: 0.125rem; word-break: break-word; }
.meter { position: relative; height: 1rem; background: #5b7a62; border: 0.1875rem solid var(--line); overflow: hidden; box-shadow: inset 0 0.1875rem 0 rgba(0, 0, 0, .22); }
.meter > span { display: block; height: 100%; transform-origin: left; background: linear-gradient(180deg, #d6ffa0 0 30%, #7fe03f 30% 100%); box-shadow: inset -0.1875rem 0 0 rgba(0, 0, 0, .18); animation: grow 1.1s cubic-bezier(.2, .8, .3, 1) both; }
.meter::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 0.5625rem, rgba(0, 0, 0, .3) 0.5625rem 0.6875rem); }
.skill-row { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; align-items: center; padding: 0.5rem 0; border-bottom: 0.125rem dashed rgba(22, 60, 77, .18); }
.skill-row:last-child { border-bottom: 0; }
.skill-row .meter { grid-column: 1 / -1; height: 0.75rem; }
.table-wrap { overflow-x: auto; border: 0.1875rem solid var(--line); background: #fff; box-shadow: var(--drop); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 0.625rem 0.875rem; border-bottom: 0.125rem solid #d9e9f3; vertical-align: middle; }
th { font-family: var(--pixel); font-weight: 700; font-size: 1.3rem; color: #fff; background: var(--green); text-shadow: 0 0.125rem 0 var(--green-dd); border-bottom: 0.1875rem solid var(--green-dd); }
tbody tr:nth-child(even) { background: #f4fbea; }
tbody tr:hover { background: #fff8d6; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.yes { color: var(--green-d); font-weight: 700; } .no { color: var(--ink-3); }
.lb-row { display: flex; align-items: center; gap: 0.625rem; padding: 0.4375rem 0.25rem; border-bottom: 0.125rem dashed rgba(22, 60, 77, .16); color: var(--ink); transition: background .1s, transform .1s; }
.lb-row:hover { text-decoration: none; background: #fff8d6; transform: translateX(0.1875rem); }
.lb-row:last-child { border-bottom: 0; }
.lb-pos { width: 1.75rem; text-align: center; font-family: var(--pixel); font-weight: 700; font-size: 1.3rem; color: var(--ink-3); flex: none; }
a.lb-row:nth-of-type(-n+3) .lb-pos { font-size: 0; }
a.lb-row:nth-of-type(-n+3) .lb-pos::before { content: ""; display: block; width: 1.75rem; height: 1.75rem; background: center / contain no-repeat; image-rendering: pixelated; }
a.lb-row:nth-of-type(1) .lb-pos::before { background-image: url("../img/items/ingot_gold.0c51c95cd393.png"); }
a.lb-row:nth-of-type(2) .lb-pos::before { background-image: url("../img/items/ingot_iron.dfdcda2b025a.png"); }
a.lb-row:nth-of-type(3) .lb-pos::before { background-image: url("../img/items/ingot_copper.330a517d4f7a.png"); }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-val { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; }
.avatar { image-rendering: pixelated; background: #cfe6f3; flex: none; vertical-align: middle; border: 0.125rem solid var(--line); }
.body-render { image-rendering: pixelated; filter: drop-shadow(0 0.625rem 0 rgba(22, 60, 77, .22)); position: relative; z-index: 1; }

/* ---------- parduotuvė ---------- */
.cat-nav { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 1.875rem; position: sticky; top: 5.25rem; z-index: 5; padding: 0.5rem 0; }
.product { --c: var(--cyan); display: flex; flex-direction: column; padding-top: 1.75rem; box-shadow: inset 0 0.625rem 0 0 var(--c), inset 0 0.8125rem 0 0 var(--line), var(--drop); transition: box-shadow .15s ease; color: inherit; }
.product:hover { text-decoration: none; }
.product .p-visual { display: grid; place-items: center; height: 6.75rem; margin: 0.25rem 0 0.625rem; background: var(--sky-4); background: radial-gradient(circle at 50% 72%, color-mix(in srgb, var(--c) 30%, #fff), #fff 72%); }
.product .p-cube { display: inline-block; padding: 0.875rem; animation: float 3.6s ease-in-out infinite; }
.product h3 { margin-bottom: 0.25rem; }
.product .desc { color: var(--ink-2); font-size: .92rem; flex: 1; margin-bottom: 1rem; }
.product .badge-corner { position: absolute; top: 1.25rem; right: 0.625rem; z-index: 2; }
.product:not(:hover) .drop { animation-play-state: paused; }
.price-tag { display: inline-block; font-family: var(--pixel); font-weight: 700; font-size: 1.95rem; line-height: 1; padding: 0.3125rem 0.75rem 0.375rem; background: var(--gold); color: #3a2600; border: 0.1875rem solid var(--gold-dd); box-shadow: inset 0.1875rem 0.1875rem 0 var(--gold-l), 0 0.1875rem 0 var(--gold-dd); }
.price-tag s { font-family: var(--font); font-size: .8rem; font-weight: 500; color: #7a5200; margin-left: 0.375rem; }
.price { font-family: var(--pixel); font-size: 2.2rem; font-weight: 700; }
.price s { color: var(--ink-3); font-size: .95rem; font-weight: 500; margin-left: 0.375rem; }
.perks { list-style: none; padding: 0; margin: 0; }
.perks li { padding: 0.5rem 0 0.5rem 2rem; position: relative; border-bottom: 0.125rem dashed rgba(22, 60, 77, .16); }
.perks li:last-child { border-bottom: 0; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 1.375rem; height: 1.375rem; background: url("../img/items/check.95acaff5934d.png") center / contain no-repeat; image-rendering: pixelated; }
.pay-option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.875rem; border: 0.1875rem solid var(--line); cursor: pointer; margin-bottom: 0.625rem; font-weight: 400; background: #fff; transition: background .12s, transform .1s; }
.pay-option:hover { background: #f4fbea; transform: translateX(0.1875rem); }
.pay-option:has(input:checked) { background: #e9f9d9; box-shadow: inset 0 0 0 0.1875rem var(--green); }
.pay-option input { margin-top: 0.1875rem; }
.status-steps { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.status-steps .step { flex: 1 1 9.375rem; padding: 0.75rem; border: 0.1875rem solid var(--line); background: #fff; color: var(--ink-3); font-size: .9rem; }
.status-steps .step.done { background: #e9f9d9; color: var(--green-dd); }
.status-steps .step.now { background: #fff8d6; color: var(--gold-dd); animation: pulse-soft 1.4s ease-in-out infinite; }
pre.log { background: #12222f; color: #b9f5c8; border: 0.1875rem solid var(--line); padding: 0.75rem; font-size: .82rem; white-space: pre-wrap; word-break: break-word; max-height: 20rem; overflow: auto; margin: 0; }
.rank-stage { display: grid; place-items: center; padding: 1.625rem 0 0.5rem; }

/* ---------- forumas ---------- */
.forum-cat { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; padding: 0.875rem 1.25rem; border-bottom: 0.1875rem solid #d9e9f3; color: inherit; transition: background .12s; }
.forum-cat:hover { background: #fff8d6; text-decoration: none; }
.forum-cat:last-child { border-bottom: 0; }
.forum-cat .ico { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; background: var(--sky-4); border: 0.1875rem solid var(--line); box-shadow: inset 0.1875rem 0.1875rem 0 #fff, inset -0.1875rem -0.1875rem 0 #bfe3f6; }
.forum-cat h3 { margin: 0 0 0.125rem; font-size: 1.5rem; }
.forum-cat p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.forum-cat .meta { text-align: right; color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
.thread-row { display: flex; gap: 0.875rem; align-items: center; padding: 0.75rem 1.125rem; border-bottom: 0.1875rem solid #d9e9f3; }
.thread-row:hover { background: #fff8d6; }
.thread-row:last-child { border-bottom: 0; }
.thread-row .t-main { flex: 1; min-width: 0; }
.thread-row .t-title { font-family: var(--pixel); font-weight: 600; font-size: 1.5rem; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row .t-meta { color: var(--ink-3); font-size: .84rem; }
.thread-row .t-stats { color: var(--ink-2); font-size: .85rem; text-align: right; white-space: nowrap; }
.list-card { padding: 0; overflow: hidden; }
.post { display: grid; grid-template-columns: 10rem 1fr; border-bottom: 0.1875rem solid #d9e9f3; }
.post:last-child { border-bottom: 0; }
.post-author { padding: 1.125rem; background: var(--sky-4); border-right: 0.1875rem solid #d9e9f3; text-align: center; font-size: .9rem; }
.post-author .name { display: block; font-family: var(--pixel); font-weight: 700; font-size: 1.3rem; margin: 0.5rem 0 0.25rem; color: var(--ink); word-break: break-all; }
.post-body { padding: 1.125rem 1.375rem; min-width: 0; }
.post-body .content { overflow-wrap: anywhere; }
.post-meta { display: flex; justify-content: space-between; gap: 0.625rem; color: var(--ink-3); font-size: .84rem; margin-bottom: 0.625rem; flex-wrap: wrap; }
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.125rem; flex-wrap: wrap; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: min(70vh, 40rem); min-height: 23.75rem; padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 0.875rem 1.125rem; background: #f6fcff; scroll-behavior: smooth; }
.msg { display: flex; gap: 0.625rem; padding: 0.3125rem 0; align-items: flex-start; }
.msg .avatar { margin-top: 0.125rem; width: 1.5rem; height: 1.5rem; }
.msg .m-body { min-width: 0; flex: 1; }
.msg .m-name { font-family: var(--pixel); font-weight: 700; font-size: 1.2rem; margin-right: 0.375rem; color: var(--ink); }
.msg .m-time { color: var(--ink-3); font-size: .75rem; margin-left: 0.25rem; }
.msg .m-text { overflow-wrap: anywhere; color: #1f3d56; }
.msg .src { font-family: var(--tiny); font-size: .8rem; padding: 0.125rem 0.3125rem; margin-right: 0.375rem; vertical-align: 0.125rem; border: 0.125rem solid var(--line); }
.src-web { background: var(--cyan-l); } .src-game { background: #cdf5b0; }
.msg.system { color: var(--ink-3); font-size: .88rem; font-style: italic; padding-left: 2.125rem; }
.msg .m-del { visibility: hidden; margin-left: 0.375rem; font-size: .75rem; color: #b3202a; }
.msg:hover .m-del { visibility: visible; }
.chat-form { display: flex; gap: 0.625rem; padding: 0.75rem; border-top: 0.1875rem solid var(--line); background: #e6f4de; }
.chat-form input { flex: 1; }
.chat-preview .msg { padding: 0.1875rem 0; font-size: .92rem; }

/* ---------- profilis, panelė ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.skin-stage {
  position: relative; display: grid; place-items: end center; width: 11.875rem; height: 14.375rem; overflow: hidden; border: 0.1875rem solid var(--line);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-3));
}
.skin-stage::before { content: ""; position: absolute; left: -5.625rem; top: 1.125rem; width: 6.25rem; height: 2.5rem; background: url("../img/scene/cloud_2.76053c8640c6.png") center / 100% 100% no-repeat; animation: cloud-drift-s 18s linear infinite; image-rendering: pixelated; }
.skin-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5rem; background: url("../img/tex/grass_side.dbe97f026646.png") repeat-x 0 0 / 2.5rem 2.5rem; image-rendering: pixelated; }
.skin-stage .body-render { margin-bottom: 1.625rem; animation: idle 3s ease-in-out infinite; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.375rem 1rem; font-size: .93rem; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; text-align: right; font-weight: 600; }
.console-out { background: #12222f; color: #b9f5c8; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: 0.75rem; white-space: pre-wrap; border: 0.1875rem solid var(--line); max-height: 18.75rem; overflow: auto; }

/* ---------- taisyklės, pirkimo sąlygos, privatumo politika ---------- */
.legal-wrap { max-width: 68rem; }
.rule-card h2, #bausmes h2, #apeliacijos h2 { font-size: 1.9rem; margin: 0; display: flex; align-items: center; gap: 0.625rem; }
.rule-card, #bausmes, #apeliacijos { scroll-margin-top: 6rem; }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: flex; gap: 0.875rem; align-items: baseline; padding: 0.625rem 0; border-bottom: 0.125rem dashed rgba(22, 60, 77, .16); }
.rule-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rule-nr { flex: none; min-width: 2.75rem; text-align: center; font-family: var(--pixel); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--green-dd); background: #cdf5b0; border: 0.125rem solid var(--green-dd); padding: 0 0.375rem; }
.legal h2 { font-size: 1.75rem; margin: 2rem 0 .6rem; padding-top: 1.25rem; border-top: 0.1875rem dashed rgba(22, 60, 77, .2); scroll-margin-top: 6rem; }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal ul { margin: 0 0 1em; padding-left: 1.375rem; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--green-d); }
.legal-owner { max-width: 34rem; margin: 0 0 1rem; padding: 0.875rem 1rem; background: var(--sky-4); border: 0.1875rem solid var(--line); }
.legal-table { font-size: .9rem; min-width: 46rem; }
.legal-table td { vertical-align: top; }
.legal-table th { white-space: nowrap; }

/* ---------- apatinė juosta ---------- */
.footer { position: relative; margin-top: 4rem; padding-top: 5rem; color: #fff; background: #6b4529 url("../img/tex/dirt.5f01b9b42009.png") 0 0 / 4rem 4rem; image-rendering: pixelated; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4rem; background: url("../img/tex/grass_side.dbe97f026646.png") repeat-x 0 0 / 4rem 4rem; image-rendering: pixelated; }
.footer::after { content: ""; position: absolute; left: 0; right: 0; top: 4rem; bottom: 0; background: linear-gradient(rgba(30, 15, 5, .25), rgba(30, 15, 5, .62)); pointer-events: none; }
.footer .container { position: relative; z-index: 1; padding-bottom: 1.875rem; display: flex; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; align-items: flex-end; }
.footer a { color: var(--gold); font-weight: 500; }
.foot-brand { display: flex; gap: 0.875rem; align-items: flex-end; }
.foot-logo { width: 15rem; margin-bottom: 0.375rem; filter: drop-shadow(0 0.25rem 0 rgba(0, 0, 0, .35)); }
.foot-brand span { color: #f1e6d6; font-size: .9rem; }
.foot-brand .foot-ip { color: var(--gold); font-weight: 600; }
.foot-cols { display: flex; gap: 1.5rem 3.5rem; flex-wrap: wrap; }
.footer nav { display: flex; flex-direction: column; gap: 0.125rem; font-family: var(--pixel); font-weight: 600; font-size: 1.3rem; }
.footer nav strong { color: #fff; font-size: 1.45rem; text-shadow: 0 0.125rem 0 rgba(0, 0, 0, .45); margin-bottom: 0.125rem; }
.footer .copy { width: 100%; font-size: .82rem; color: #e4d3bd; border-top: 0.1875rem dashed rgba(255, 255, 255, .22); padding-top: 0.875rem; }
.toast { position: fixed; bottom: 1.375rem; left: 50%; transform: translateX(-50%) translateY(1.25rem); background: var(--gold); color: #3a2600; font-family: var(--pixel); font-weight: 700; font-size: 1.35rem; padding: 0.5rem 1.125rem; border: 0.1875rem solid var(--gold-dd); box-shadow: inset 0.1875rem 0.1875rem 0 var(--gold-l), 0 0.25rem 0 var(--gold-dd); opacity: 0; transition: .2s; pointer-events: none; z-index: 400; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pxp { position: fixed; width: 0.5rem; height: 0.5rem; pointer-events: none; z-index: 300; }

/* ---------- animacijos ---------- */
@keyframes cube-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.875rem); } }
@keyframes item-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.375rem); } }
@keyframes item-spin { to { transform: rotateY(360deg); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .55; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(120, 220, 60, .6); } 50% { box-shadow: 0 0 0 0.375rem rgba(120, 220, 60, 0); } }
@keyframes pulse-soft { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes splash { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(-3deg) scale(1.1); } }
@keyframes flag-wave { 0%, 100% { transform: translateY(calc(var(--a) * var(--amp) * -1)); } 50% { transform: translateY(calc(var(--a) * var(--amp))); } }
@keyframes flag-shade { to { background-position-x: 2.25rem; } }
@keyframes cloud-drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 40rem)); } }
@keyframes cloud-drift-s { from { transform: translateX(0); } to { transform: translateX(18.75rem); } }
@keyframes hills-slide { from { background-position: 0 100%; } to { background-position: -60rem 100%; } }
@keyframes sun-spin { to { rotate: 360deg; } }
@keyframes sun-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes orb-rise { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 1.25rem), -20.625rem) scale(1); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.25rem); } }
@keyframes logo-bob { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-0.375rem) rotate(.4deg); } }
html.js .reveal { opacity: 0; translate: 0 1.375rem; transition: opacity .55s ease, translate .55s cubic-bezier(.2, .8, .3, 1); }
html.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- mobilus vaizdas ---------- */
/* Siauresniuose ekranuose (nešiojamieji 1366–1536 px) meniu sutankinamas, kad tilptų logotipas,
   visi punktai ir prisijungusio administratoriaus „Panelė“. */
@media (max-width: 1560px) {
  .logo-img { width: 12rem; }
  .nav { gap: 0.125rem; margin-left: 0; }
  .nav a { font-size: 1.25rem; padding-left: 0.5rem; padding-right: 0.5rem; }
  .status-pill .label { display: none; }
}
@media (max-width: 1200px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 4.5rem; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 0.25rem solid var(--line); padding: 0.5rem 1rem 1rem; margin: 0; box-shadow: 0 0.375rem 0 var(--green); }
  .nav.open { display: flex; }
  .nav a { padding: 0.625rem 0.75rem; }
  .status-pill .label { display: none; }
}
@media (max-width: 960px) {
  .layout-side { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 10rem; }
  .scene { height: 21.25rem; }
  .hero-cube { --cs: 8.75rem; }
  .flag-plane { scale: .85; }
}
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: 0.625rem; text-align: left; border-right: 0; border-bottom: 0.1875rem solid #d9e9f3; padding: 0.625rem 0.875rem; }
  .post-author .name { margin: 0; }
  .post-author .avatar { width: 1.75rem; height: 1.75rem; }
  .forum-cat { grid-template-columns: 3.25rem 1fr; }
  .forum-cat .meta { display: none; }
  .forum-cat .ico { width: 3rem; height: 3rem; }
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .page-head .container::after { display: none; }
  .cta .flagpole { display: none; }
  .section { padding: 2.5rem 0; }
}
@media (max-width: 720px) {
  .logo-img { width: 10.5rem; }
}
@media (max-width: 560px) {
  .user-chip span { display: none; }
  .topbar .bar { gap: 0.625rem; }
  /* telefone visas logotipas netelpa šalia būsenos ir prisijungimo – rodomas žolės blokas */
  .logo-img { display: none; }
  .logo-cube { display: grid; }
  .foot-logo { width: 12rem; }
  .nav-flag .flag { --fw: 1.875rem !important; --fh: 1.125rem !important; }
  .nav-flag .flag > i:nth-child(n+11) { display: none; }
}
@media (max-width: 440px) {
  .nav-right { gap: 0.5rem; }
  .hero-stats li { flex: 1 1 8.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; translate: 0 0; }
}
