@charset "utf-8";

:root,
html.theme-light {
  --dbz-orange: #ff7a00;
  --dbz-gold: #ffc400;
  --dbz-blue: #0756c9;
  --dbz-sky: #19a7ff;
  --dbz-navy: #071b4a;
  --dbz-ink: #17213a;
  --dbz-paper: #fffaf0;
  --dbz-line: #f2b53d;
  --text: #17213a;
  --muted: #4b5878;
  --card: #fffdf7;
  --card-2: #fff6e4;
  --inside: #ffffff;
  --input-bg: #ffffff;
  --input-border: #8ebcff;
  --ok: #087a2e;
  --ok-border: #45b861;
  --err: #b51220;
  --err-border: #e05050;
  --link: #0756c9;
  --link-hover: #d94c00;
  --shell: rgba(3, 15, 44, 0.88);
}

html.theme-dark {
  --text: #eef4ff;
  --muted: #b7c6e8;
  --card: #102b64;
  --card-2: #081b43;
  --inside: #0d2458;
  --input-bg: #071b4a;
  --input-border: #369cff;
  --ok: #7dff9e;
  --ok-border: #45b861;
  --err: #ff8b93;
  --err-border: #e05050;
  --link: #7ec8ff;
  --link-hover: #ffc400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 10%, rgba(25, 167, 255, 0.32), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(255, 122, 0, 0.28), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(255, 196, 0, 0.16), transparent 38%),
    linear-gradient(165deg, #071b4a 0%, #020814 52%, #0b2e78 100%);
  background-attachment: fixed;
}

body {
  width: 100%;
  margin: 0;
  padding: 12px 8px 24px;
  font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: #ffb000;
  color: #071b4a;
  font-weight: 800;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.in {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px;
  overflow-wrap: anywhere;
  background: var(--shell);
  border: 1px solid rgba(255, 176, 0, 0.58);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.site-header,
.site-main,
.site-footer {
  display: block;
}

.brand {
  padding: 6px 10px 10px;
  text-align: center;
}

.brand img {
  width: 100%;
  max-width: 540px;
  height: auto;
}

.hud {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  margin: 0 0 8px;
  padding: 10px;
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 27, 74, 0.95), rgba(7, 86, 201, 0.88));
  border: 1px solid rgba(255, 176, 0, 0.7);
  border-radius: 14px;
}

.hud-player {
  min-width: 0;
}

.hud-nick {
  color: #fff;
  font-size: 1.05rem;
}

.hud-meta {
  display: block;
  color: #d7e8ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hud-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.45);
  border-radius: 999px;
}

.hud-chip:hover,
.hud-chip:focus {
  color: #071b4a;
  text-decoration: none;
  background: #ffc400;
}

.hpbar {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 176, 0, 0.45);
  border-radius: 999px;
}

.hpbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff3b30, #ffc400);
}

.topbar,
.vmenu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 8px;
}

.topbar a,
.vmenu a,
.nr,
.log,
.log_red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 12px;
  min-height: 38px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #ffb000;
  border-radius: 999px;
  background: linear-gradient(135deg, #0756c9, #138eef);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.topbar a:hover,
.topbar a:focus,
.vmenu a:hover,
.vmenu a:focus {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff7a00, #ffad00);
}

.topbar a:active,
.vmenu a:active,
.mob-btn:active,
.submit:active {
  transform: scale(0.96);
}

/* Fiksuota apatinė greito valdymo juosta telefonams */
.bottom-dock {
  display: none;
}

@media (max-width: 680px) {
  body {
    padding-bottom: 74px; /* Vietos apatinei juostai */
  }

  .topbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar::-webkit-scrollbar {
    display: none;
  }
  .topbar a {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(3, 15, 44, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 176, 0, 0.55);
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  }

  .bottom-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d7e8ff;
    text-decoration: none;
    padding: 2px 0;
    font-size: 0.65rem;
    font-weight: 700;
    touch-action: manipulation;
  }

  .bottom-dock a:active {
    color: var(--dbz-gold);
    transform: scale(0.92);
  }

  .dock-icon {
    font-size: 1.15rem;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .dock-label {
    white-space: nowrap;
  }

  .mob-list {
    grid-template-columns: 1fr;
  }

  .mob-card {
    padding: 12px;
  }

  .mob-btn {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.85);
  outline-offset: 2px;
}

.header,
.page-head,
.top,
h1.header {
  display: block;
  margin: 0 0 8px;
  padding: 11px 12px;
  color: #fff;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  border: 1px solid #ffb000;
  border-radius: 14px 14px 6px 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  background: linear-gradient(135deg, #06388f 0%, #0756c9 38%, #168fe8 52%, #ff7a00 82%, #ffb000 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.section-head,
.title,
.iline,
.topas {
  display: block;
  margin: 12px 0 0;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #ffb000;
  border-radius: 12px 12px 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  background: linear-gradient(90deg, #ff6a00, #ffb000 54%, #0756c9);
}

.bottom,
.site-footer {
  margin-top: 10px;
  padding: 12px;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid #ffb000;
  border-radius: 6px 6px 16px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  background: linear-gradient(90deg, #071b4a, #0756c9, #ff7a00);
}

.panel,
.main,
.main_c,
.main_l,
.div,
.title_c,
.title_l,
.meniu,
#main_pgr {
  margin: 0 0 2px;
  padding: 10px 12px;
  color: var(--text);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 179, 0, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 4px rgba(0, 0, 0, 0.12);
}

.section-head + .panel,
.section-head + .panel--center,
.section-head + .mob-list,
.title + .panel,
.title + .panel--center,
.title + .main,
.title + .main_c,
.title + .main_l,
.title + .meniu,
.iline + .panel,
.iline + .main,
.topas + .panel,
.topas + .main {
  border-top: 0;
}

.panel + .panel,
.panel + .panel--center,
.panel--center + .panel,
.main + .main,
.main + .main_c,
.main_c + .main,
.main_l + .main {
  margin-top: -1px;
  border-top-style: dashed;
}

.panel--center {
  text-align: center;
}

.panel--center,
.main_c,
.title_c,
#main_pgr {
  text-align: center;
}

.main_l,
.title_l {
  text-align: left;
}

.inside,
.login-card .inside {
  padding: 12px;
  color: var(--text);
  background: var(--inside);
  border: 1px solid var(--dbz-gold);
  border-radius: 12px;
  box-shadow: inset 0 0 16px rgba(255, 196, 0, 0.14);
}

.message,
.true,
.atlikta,
.error,
.accept,
.acept {
  margin: 0 0 8px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  background: var(--inside);
}

.message,
.true,
.atlikta {
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.error,
.accept,
.acept {
  color: var(--err);
  border: 1px solid var(--err-border);
}

label {
  display: block;
  margin: 8px 0 0;
  font-weight: 700;
  text-align: left;
}

label:first-child {
  margin-top: 0;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  margin: 4px 0 8px;
  padding: 10px 12px;
  font-size: 16px; /* Apsaugo nuo priverstinio auto-zoom iOS Safari */
  color: var(--text);
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 9px;
  outline: none;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin: 0 6px 0 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--dbz-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.submit,
input[type="submit"],
button {
  width: auto;
  min-height: 44px; /* Patogus paspaudimas pirštu */
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #d85300;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffad00, #f05b00);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 5px rgba(0, 0, 0, 0.22);
  touch-action: manipulation;
}

.submit:hover,
input[type="submit"]:hover,
button:hover {
  filter: brightness(1.08);
}

.log_red {
  background: linear-gradient(135deg, #b51220, #ff5a4f);
}

.line {
  margin: 8px 0;
  border-top: 1px dashed #f0a400;
}

.like_ok {
  color: var(--ok);
}

.like_no {
  color: var(--err);
}

table {
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  padding: 6px;
  vertical-align: top;
}

font[color="red"],
font[color="RED"] {
  color: #e53935;
}

font[color="green"] {
  color: #2e7d32;
}

font[color="blue"] {
  color: #1565c0;
}

font[color="brown"] {
  color: #8d4b16;
}

html.theme-dark font[color="red"],
html.theme-dark font[color="RED"] {
  color: #ff8a80;
}

html.theme-dark font[color="green"] {
  color: #69f0ae;
}

html.theme-dark font[color="blue"] {
  color: #82b1ff;
}

.captcha {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 520px) {
  body {
    padding: 6px 4px 80px;
    font-size: 14px;
  }

  .in {
    padding: 6px;
    border-radius: 14px;
  }

  .hud {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
  }

  .hud-stats {
    justify-content: space-between;
    gap: 4px;
  }

  .hud-chip {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 5px 6px;
    font-size: 0.72rem;
  }

  .header,
  .top,
  h1.header {
    font-size: 1.05rem;
    padding: 8px;
  }

  .vs-battle-box {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .vs-badge {
    font-size: 1.2rem;
  }
}

/* Arenos ir priešininkų stiliai */
.mob-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 6px 0;
}

.mob-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(255, 176, 0, 0.45);
  border-radius: 10px;
  background: rgba(7, 27, 74, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mob-card--new {
  border-color: rgba(229, 57, 53, 0.6);
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.2);
}

.badge-new {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #b51220, #ff5a4f);
  vertical-align: middle;
}

.mob-name {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.mob-kg {
  font-size: 0.82rem;
  color: #d7e8ff;
  margin-bottom: 8px;
}

.mob-btn {
  display: inline-block;
  padding: 6px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a00, #ffb000);
  border: 1px solid #d85300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mob-btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.vs-battle-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 10px 0;
  border: 1px solid #ffb000;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(7, 27, 74, 0.95), rgba(7, 86, 201, 0.88));
  text-align: center;
}

.vs-fighter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-badge {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffc400;
  text-shadow: 0 0 12px rgba(255, 196, 0, 0.6);
}

/* Index, Auth & Landing Components */
.landing-hero {
  text-align: center;
  padding: 18px 12px;
  margin-bottom: 10px;
}

.landing-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dbz-gold);
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.landing-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d7e8ff;
  max-width: 580px;
  margin: 0 auto;
}

.starter-bonuses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.bonus-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(7, 27, 74, 0.45);
  border: 1px solid rgba(255, 196, 0, 0.4);
  text-align: center;
}

.bonus-pill strong {
  font-size: 1.1rem;
  color: var(--dbz-gold);
}

.bonus-pill small {
  font-size: 0.75rem;
  color: #d7e8ff;
  margin-top: 2px;
}

.auth-box {
  padding: 16px;
  border-radius: 14px;
  margin: 10px 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 179, 0, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 4px rgba(0, 0, 0, 0.12);
}

.auth-form-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dbz-gold);
  margin-bottom: 12px;
  text-align: center;
}

.auth-grid {
  display: grid;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.form-group label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dbz-gold);
}

.form-group input {
  margin: 0;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-img {
  border-radius: 6px;
  border: 1px solid var(--dbz-line);
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.auth-actions .submit {
  flex: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.45);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-secondary:hover {
  background: rgba(255, 196, 0, 0.25);
  color: #fff;
  text-decoration: none;
}

.stats-panel {
  padding: 8px 0;
}

.stats-chart {
  overflow-x: auto;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(7, 27, 74, 0.45);
  border: 1px solid rgba(255, 196, 0, 0.35);
  text-align: center;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dbz-gold);
}

.stat-label {
  font-size: 0.72rem;
  color: #d7e8ff;
  margin-top: 2px;
}

/* Touch ir accessibility patobulinimai */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .auth-actions {
    flex-direction: column;
  }
  .auth-actions .submit,
  .auth-actions .btn-secondary {
    width: 100%;
  }
}

/* ==========================================================================
   Žaidimo layout — sidebar, dashboard, online, legacy polish
   ========================================================================== */

.in:has(.web-app-layout) .site-header {
  padding: 4px 8px 0;
}

.in:has(.web-app-layout) .brand img {
  max-width: 320px;
}

@media (min-width: 861px) {
  .in:has(.web-app-layout) .site-header {
    display: none;
  }
}

.web-app-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  align-items: start;
}

.web-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 10px;
}

.web-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.web-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(7, 27, 74, 0.45);
  border: 1px solid rgba(255, 176, 0, 0.4);
  border-radius: 12px;
}

.web-nav-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--dbz-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 6px;
  margin: 0;
}

.web-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #d7e8ff;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.web-nav-link:hover,
.web-nav-link:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 176, 0, 0.35);
  color: #fff;
  text-decoration: none;
}

.web-nav-link.active,
.topbar a.active,
.bottom-dock a.active {
  background: linear-gradient(135deg, rgba(7, 86, 201, 0.6), rgba(255, 122, 0, 0.4));
  border-color: #ffb000;
  color: #fff;
}

.hud-bars {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.expbar {
  height: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(120, 178, 255, 0.35);
  border-radius: 999px;
}

.expbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0756c9, #19a7ff);
}

.hud-chip--online {
  border-color: rgba(69, 184, 97, 0.55);
  background: rgba(69, 184, 97, 0.15);
}

@media (min-width: 861px) {
  .topbar {
    display: none;
  }

  .hud {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 860px) {
  .web-app-layout {
    grid-template-columns: 1fr;
  }

  .web-sidebar {
    display: none;
  }
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 8px 0;
}

.dash-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 179, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dash-panel--wide {
  grid-column: 1 / -1;
}

.dash-panel-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dbz-gold);
}

.dash-panel-body {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.day-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 0, 0.5);
  background: rgba(7, 27, 74, 0.5);
}

.day-badge--exp { color: #ff8a80; border-color: #e05050; }
.day-badge--money { color: #69f0ae; border-color: #45b861; }
.day-badge--wood { color: #ffcc80; border-color: #a67c00; }
.day-badge--normal { color: #d7e8ff; }

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 176, 0, 0.35);
  background: rgba(7, 27, 74, 0.25);
}

.quick-link:hover,
.quick-link:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(7, 86, 201, 0.35);
  border-color: #ffb000;
}

.quick-link-arrow {
  color: var(--dbz-gold);
  font-weight: 900;
}

.topic-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(7, 27, 74, 0.3);
  border: 1px solid rgba(255, 176, 0, 0.25);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;
}

.topic-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.alert-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 0 8px;
  font-weight: 800;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 196, 0, 0.55);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.25), rgba(255, 196, 0, 0.15));
}

.alert-banner a {
  color: var(--dbz-gold);
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.loc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 0, 0.45);
  background: linear-gradient(145deg, rgba(7, 86, 201, 0.55), rgba(7, 27, 74, 0.85));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.loc-card:hover,
.loc-card:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #ffb000;
  box-shadow: 0 6px 16px rgba(255, 176, 0, 0.25);
}

.loc-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.loc-card-name {
  font-size: 0.9rem;
  line-height: 1.2;
}

.fight-arena-hero {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  margin: 8px 0;
  border: 1px solid rgba(255, 176, 0, 0.5);
  background: linear-gradient(135deg, rgba(7, 27, 74, 0.9), rgba(7, 86, 201, 0.7));
}

.fight-arena-hero img {
  max-width: 280px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 0, 0.4);
}

.fight-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 196, 0, 0.4);
}

/* Online */
.online-dot,
.online-dot-sm {
  display: inline-block;
  border-radius: 50%;
  background: #45b861;
  box-shadow: 0 0 6px rgba(69, 184, 97, 0.7);
  animation: online-pulse 2s ease-in-out infinite;
}

.online-dot { width: 10px; height: 10px; flex-shrink: 0; }
.online-dot-sm { width: 8px; height: 8px; vertical-align: middle; margin-right: 2px; }

@keyframes online-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(69, 184, 97, 0.5); }
  50% { opacity: 0.75; box-shadow: 0 0 10px rgba(69, 184, 97, 0.9); }
}

.online-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 6px 0 10px;
}

.online-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(7, 27, 74, 0.4);
  border: 1px solid rgba(255, 176, 0, 0.35);
}

.online-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.online-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.online-player:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.online-player-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.online-player-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.online-empty {
  padding: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.web-nav-link--more {
  margin-top: 4px;
  font-size: 0.82rem !important;
  color: var(--dbz-gold) !important;
  justify-content: center;
}

.game-online-bar {
  margin: 0 0 8px;
  border: 1px solid rgba(255, 176, 0, 0.45);
  border-radius: 12px;
  background: rgba(7, 27, 74, 0.55);
  overflow: hidden;
}

.game-online-bar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.game-online-bar-head::-webkit-details-marker {
  display: none;
}

.game-online-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
}

.game-online-bar-meta {
  flex: 1;
  font-size: 0.78rem;
  color: #d7e8ff;
  font-weight: 600;
}

.game-online-bar-all {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--dbz-gold);
  text-decoration: none;
}

.game-online-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
}

.game-online-chip {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 0, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.game-online-chip:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(7, 86, 201, 0.45);
}

.online-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 10px !important;
}

.online-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 0, 0.4);
  background: rgba(7, 27, 74, 0.35);
}

.online-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.online-card-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
}

.online-card-vieta {
  font-size: 0.82rem;
  color: #d7e8ff;
  font-weight: 600;
}

.online-card-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
}

.online-status--on {
  color: #b9f6ca;
  background: rgba(69, 184, 97, 0.18);
  border: 1px solid rgba(69, 184, 97, 0.45);
}

.online-status--off {
  color: #cfd8dc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.online-dot-off {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #90a4ae;
}

/* Legacy content polish — visi moduliai */
.web-content > .header,
.web-content > .page-head,
.web-content > .top,
.web-content > h1.header {
  margin-top: 0;
}

.web-content .section-head + .panel,
.web-content .section-head + .panel--center,
.web-content .section-head + .mob-list,
.web-content .title + .panel,
.web-content .title + .panel--center,
.web-content .title + .main,
.web-content .title + .main_c,
.web-content .title + .mob-list {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.web-content .panel:not(.mob-list):not(.online-grid):not(.loc-grid),
.web-content .main:not(.mob-list):not(.online-grid):not(.loc-grid) {
  border-radius: 10px;
  margin-bottom: 4px;
}

.web-content .panel img[border="1"],
.web-content .panel--center img[border="1"],
.web-content .main img[border="1"],
.web-content .main_c img[border="1"] {
  border: 1px solid rgba(255, 176, 0, 0.4) !important;
  border-radius: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.info-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 0, 0.4);
  background: rgba(7, 27, 74, 0.35);
}

.info-card-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dbz-gold);
  margin-bottom: 4px;
}

.info-card-value {
  font-size: 0.95rem;
  font-weight: 800;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 0, 0.45);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.char-card:hover,
.char-card:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #ffb000;
}

.char-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.char-card-name {
  font-weight: 900;
  font-size: 0.92rem;
}

.bottom-dock a.active .dock-icon {
  filter: drop-shadow(0 0 6px rgba(255, 196, 0, 0.65));
}

@media (max-width: 680px) {
  body {
    padding-bottom: 74px;
  }

  .game-online-bar-meta {
    width: 100%;
  }

  .game-online-bar-all {
    margin-left: auto;
  }
}

/* Profilis, TOP, SMS paketai */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin: 0 0 8px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 0, 0.45);
  background: linear-gradient(135deg, rgba(7, 27, 74, 0.9), rgba(7, 86, 201, 0.65));
}

.profile-hero img {
  max-width: 180px;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 0, 0.4);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px !important;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 176, 0, 0.25);
  background: rgba(7, 27, 74, 0.25);
}

.rank-row--me {
  border-color: rgba(229, 57, 53, 0.55);
  background: rgba(229, 57, 53, 0.12);
}

.rank-num {
  font-weight: 900;
  color: var(--dbz-gold);
  font-size: 0.88rem;
}

.rank-name {
  min-width: 0;
  font-weight: 800;
}

.rank-val {
  font-weight: 800;
  color: #d7e8ff;
  white-space: nowrap;
}

.sms-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.sms-pack {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 0, 0.4);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  line-height: 1.5;
  font-size: 0.88rem;
}

.sms-pack strong {
  color: var(--dbz-gold);
}

.rep-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 10px;
  background: rgba(7, 27, 74, 0.3);
  border: 1px solid rgba(255, 176, 0, 0.3);
}

.chat-compose textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 176, 0, 0.35);
  background: rgba(7, 27, 74, 0.5);
  color: #e8f0ff;
  font-family: inherit;
  resize: vertical;
}

.chat-msg {
  margin: 0 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 0, 0.2);
  background: rgba(7, 27, 74, 0.35);
}

.chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #9eb8d9;
}

.chat-msg-head a {
  color: var(--dbz-gold);
}

.chat-msg-body {
  line-height: 1.45;
  word-break: break-word;
}
