.player-sprite img
{
    padding-top: 20% !important;
}
.enemy-sprite img
{
    padding-top: 20% !important;
}

/* Containerul jucătorului este 1 tile (16x16),
   imaginea e 32x32 și o ancorăm cu picioarele pe tile */
#player-sprite {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 30;
}

#player-sprite .player-sprite-img {
    position: absolute;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    left: -8px;   /* centru pe X: (32 - 16) / 2 */
    top: -16px;   /* picioarele pe tile: 32 - 16 */
}

/* La fel pentru ceilalți jucători de pe hartă, dacă îi ai */
.remote-player {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 25;
}

.remote-player img {
    position: absolute;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    left: -8px;
    top: -16px;
}


.battle_background
{
background: url(https://forums.pokemmo.com/uploads/monthly_2025_01/RDT_20250109_0835187212760689019158779.jpg.50be093a3c45a569bdc7509daefb2ced.jpg) no-repeat;

}

.battle_base
{
    background: url(/images/battle/base.png) no-repeat;
    margin: auto;
    height: 96px;
    width: 126px;
    -webkit-text-size-adjust: none;
}

/* ===========================
   PALETĂ LEAF GREEN
   =========================== */
:root {
    --bg-main: #050f08;
    --bg-alt: #07150d;
    --bg-card: #0c1c12;
    --bg-card-soft: #0f2317;
    --bg-elevated: #12291c;

    --border-soft: rgba(148, 163, 184, 0.35);
    --border-strong: #a3e635; /* lime */

    --txt-main: #e5f6e9;
    --txt-muted: #a3b9aa;
    --txt-strong: #fefce8;

    --accent: #22c55e;        /* verde principal */
    --accent-soft: #16a34a;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --accent-blue: #38bdf8;

    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.65);
}

/* ===========================
   BODY + LAYOUT DE BAZĂ
   =========================== */

body {
    margin: 0;
    padding: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(15, 118, 110, 0.35),
            rgba(8, 47, 35, 0.9)
        ),
        #020617;
    background-image:
        linear-gradient(
            to bottom,
            rgba(6, 95, 70, 0.65),
            rgba(12, 74, 46, 0.95)
        ),
        url('images/bg_town.png'); /* <- schimbă dacă ai altă poză */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    color: var(--txt-main);
    text-align: center;
}

/* containterul principal al site-ului – LĂȚIT */
.wrapper {
    margin: 18px auto 40px;
    padding: 0 16px;
    max-width: 1180px;  /* <- aici faci site-ul mai lat */
}

/* conținutul central (ul/li) */
.content-wrapper {
    text-align: center;
    max-width: 1120px;
    margin: 0 auto;
}

/* ===========================
   BANNER / HEADER
   =========================== */

.banner {
    position: relative;
    background:
        linear-gradient(135deg, #065f4657, #0f766e4f), url(banner.png) center / cover no-repeat;
    border-radius: var(--radius-lg);
    height: 160px;
    max-width: 1120px;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(190, 242, 100, 0.26), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.22), transparent 55%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
    transition: all 0.2s ease-out;
}

/* ===========================
   NAV STÂNGA / DREAPTA
   =========================== */

.left-nav,
.right-nav {
    float: left;
    width: 190px;          /* nav-uri mai late */
    min-height: 120px;
    margin-top: 26px;
}

/* listă comună */
.left-nav ul,
.right-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.left-nav li,
.right-nav li {
    padding: 8px 10px;
    background: rgba(6, 24, 18, 0.96);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-top: none;
    text-align: center;
    color: var(--txt-main);
    backdrop-filter: blur(6px);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.left-nav li:first-child,
.right-nav li:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    border-top: 1px solid rgba(34, 197, 94, 0.55);
}

.left-nav li:last-child,
.right-nav li:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.left-nav li:hover,
.right-nav li:hover {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.18),
        rgba(6, 24, 18, 0.98)
    );
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(6, 24, 18, 0.9);
}

/* header-urile din nav */
.left-nav li.top-header,
.left-nav li.header,
.right-nav li.top-header,
.right-nav li.header {
    padding: 8px 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #bbf7d0, #22c55e);
    border-color: var(--border-strong);
    color: #052e16;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 6px 14px rgba(6, 24, 18, 0.9);
}

/* ===========================
   ZONA DE CONȚINUT CENTRAL
   =========================== */

.content {
    float: left;
    width: 740px;   /* zona principală mai lată */
    margin-top: 18px;
}

/* reset listă */
.content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* card principal */
.content li.main {
    min-height: 320px;
    background:
        radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.08), transparent 50%),
        var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-soft);
    border-top: none;
    text-align: center;
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-soft);
}

/* headerul de sus al cardului (titlu pagină) */
.content li.header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #bbf7d0, #22c55e);
    color: #052e16;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* header secundar pentru forum / tabele */
.content li.fheader {
    padding: 6px 12px;
    border-left: 1px solid var(--border-strong);
    border-right: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #a3e635, #4ade80);
    color: #052e16;
    font-weight: 600;
}

/* „bottom strip” decorativ */
.content li.bottom {
    height: 12px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-strong);
    border-top: none;
    background: linear-gradient(135deg, #bef264, #4ade80);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* footer card */
.content li.footer {
    min-height: 80px;
    background: var(--bg-card-soft);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-soft);
    text-align: center;
    padding: 10px;
}

/* ===========================
   TABELE
   =========================== */

table {
    margin-top: 8px;
    font-size: 11px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 680px;
    border-collapse: collapse;
    background: transparent;
}

td,
th {
    padding: 6px 8px;
    text-align: center;
}

th {
    font-weight: 700;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #dcfce7, #a3e635);
    color: #052e16;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px;
}

td {
    border: 1px solid rgba(15, 23, 42, 0.9);
    background: rgba(6, 22, 14, 0.96);
    color: var(--txt-main);
}

/* zebra rows */
tbody tr:nth-child(odd) td {
    background: rgba(6, 24, 18, 0.97);
}

/* hover pe rând */
tbody tr:hover td {
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.20), rgba(6, 24, 18, 0.98));
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.55);
}

/* ===========================
   TOOLTIP PARTY
   =========================== */

#party {
    position: relative;
}

#info {
    width: 140px;
    display: none;
    position: absolute;
    z-index: 9999;
}

#slot:hover + #info {
    margin-top: 6px;
    display: block;
    height: 160px;
    width: 140px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at 10% 0, rgba(190, 242, 100, 0.12), transparent 50%),
                var(--bg-elevated);
    box-shadow: var(--shadow-soft);
}

/* ===========================
   BUTOANE
   =========================== */

.button {
    display: inline-block;
    border: 1px solid #a3e635;
    background: radial-gradient(circle at 0 0, #dcfce7, #a3e635 45%, #4ade80);
    height: 32px;
    min-width: 130px;
    margin: 10px 8px;
    padding: 0 16px;
    color: #052e16;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(6, 24, 18, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

.button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
        0 12px 26px rgba(6, 24, 18, 0.95),
        0 0 0 2px rgba(190, 242, 100, 0.6);
}

/* ===========================
   LINKURI
   =========================== */

a:link,
a:visited {
    text-decoration: none;
    color: var(--accent-yellow);
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(248, 250, 252, 0.9);
}

/* ===========================
   FORUM – AVATAR / POST / ROLE
   =========================== */

.forum-post {
    display: flex;
    gap: 12px;
    padding: 10px 10px 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at 0 0, rgba(22, 163, 74, 0.15), transparent 55%);
}

.forum-post-left {
    width: 96px;
    text-align: center;
    font-size: 11px;
    color: var(--txt-muted);
}

.forum-post-right {
    flex: 1;
    text-align: left;
}

.forum-avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid rgba(34, 197, 94, 0.9);
    background: radial-gradient(circle at 30% 0, rgba(190, 242, 100, 0.35), #020617);
    box-shadow: 0 8px 16px rgba(6, 24, 18, 0.9);
    margin-bottom: 4px;
}

.forum-post-username {
    font-weight: 700;
    font-size: 12px;
    color: #bbf7d0;
    margin-top: 2px;
    text-shadow: 0 0 4px rgba(22, 163, 74, 0.65);
}

/* roles – badge */
.forum-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 3px 6px rgba(6, 24, 18, 0.9);
}

.role-owner  { background: linear-gradient(135deg, #22c55e, #16a34a); color:#ecfdf5; }
.role-admin  { background: linear-gradient(135deg, #f97373, #b91c1c); color:#fef2f2; }
.role-mod    { background: linear-gradient(135deg, #38bdf8, #1d4ed8); color:#eff6ff; }
.role-member { background: linear-gradient(135deg, #a3e635, #4ade80); color:#052e16; }
.role-guest  { background: linear-gradient(135deg, #6b7280, #374151); color:#f9fafb; }

.forum-signature {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    font-size: 11px;
    color: var(--txt-muted);
}

/* conținut post (text) */
.forum-post-right p {
    margin: 4px 0;
    line-height: 1.5;
}

/* ===========================
   DIVERSE MICI AJUSTĂRI
   =========================== */

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}
