/* ============================================================
   DYNMAP STYLES — Player markers, tooltips, profiles, auth
   ============================================================ */

/* ==================== КНОПКА УПРАВЛЕНИЯ ==================== */

.dynmap-control {
    position: relative;
}

.dynmap-control.active {
    background: rgba(196, 163, 90, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.dynmap-control--authenticated {
    border-color: rgba(74, 222, 128, 0.3);
}

.dynmap-control__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #0a0a0b;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 4px;
    border: 2px solid var(--color-bg);
    line-height: 1;
    font-family: var(--font-main);
    pointer-events: none;
}

.dynmap-control__status {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    background: var(--color-text-muted);
    pointer-events: none;
    transition: background 0.3s ease;
}

.dynmap-control__status--connected {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.dynmap-control__status--disconnected {
    background: #fbbf24;
    animation: dynmap-pulse 2s ease infinite;
}

.dynmap-control__status--error {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

@keyframes dynmap-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==================== ИКОНКА ИГРОКА НА КАРТЕ ==================== */

.dynmap-player-icon {
    background: none !important;
    border: none !important;
}

.dynmap-player {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.dynmap-player:hover {
    transform: scale(1.2);
    z-index: 10000 !important;
}

/* Круглый аватар с инициалами */
.dynmap-player__avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3), inset 0 0 8px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.dynmap-player__initials {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    line-height: 1;
    user-select: none;
}

.dynmap-player--antirelog .dynmap-player__avatar {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3), inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.dynmap-player--offline .dynmap-player__avatar {
    border-color: rgba(136, 136, 153, 0.5);
    box-shadow: none;
    opacity: 0.5;
    filter: grayscale(0.6);
}

.dynmap-player__status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #0a0a0b;
    background: #4ade80;
    z-index: 1;
}

.dynmap-player--antirelog .dynmap-player__status-dot {
    background: #fbbf24;
    animation: dynmap-pulse 1.5s ease infinite;
}

.dynmap-player--offline .dynmap-player__status-dot {
    background: #888899;
}

/* Тег с никнеймом под аватаром */
.dynmap-player__name-tag {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dynmap-player--offline .dynmap-player__name-tag {
    opacity: 0.5;
}

.dynmap-player__hp-bar {
    width: 36px;
    height: 3px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.dynmap-player__hp-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease, background 0.5s ease;
}

/* ==================== ТУЛТИП ==================== */

.dynmap-tooltip {
    background: rgba(10, 10, 11, 0.95) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    font-family: var(--font-main) !important;
}

.dynmap-tooltip::before {
    border-top-color: rgba(10, 10, 11, 0.95) !important;
}

.dynmap-tooltip__content {
    padding: 14px 16px;
    min-width: 200px;
}

.dynmap-tooltip__player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.dynmap-tooltip__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dynmap-tooltip__avatar span {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.dynmap-tooltip__player-info {
    flex: 1;
    min-width: 0;
}

.dynmap-tooltip__name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dynmap-tooltip__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.dynmap-tooltip__status--online { color: #4ade80; }
.dynmap-tooltip__status--antirelog { color: #fbbf24; }
.dynmap-tooltip__status--offline { color: #888899; }

.dynmap-tooltip__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dynmap-tooltip__status--online .dynmap-tooltip__status-dot { background: #4ade80; }
.dynmap-tooltip__status--antirelog .dynmap-tooltip__status-dot { background: #fbbf24; }
.dynmap-tooltip__status--offline .dynmap-tooltip__status-dot { background: #888899; }

.dynmap-tooltip__coords {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.dynmap-tooltip__hp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dynmap-tooltip__hp-label {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.dynmap-tooltip__hp-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dynmap-tooltip__hp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.dynmap-tooltip__hp-text {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: 'Roboto Mono', monospace;
    flex-shrink: 0;
}

/* ==================== ПРОФИЛЬ ИГРОКА ==================== */

.dynmap-profile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dynmap-profile.visible {
    opacity: 1;
    pointer-events: auto;
}

.dynmap-profile__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.dynmap-profile__panel {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    background: linear-gradient(180deg, #14141e 0%, #0f0f16 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(196, 163, 90, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dynmap-profile.visible .dynmap-profile__panel {
    transform: translateY(0) scale(1);
}

/* Header */
.dynmap-profile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--color-border);
}

.dynmap-profile__player-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Круглый аватар в профиле */
.dynmap-profile__avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid var(--color-accent-dim);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dynmap-profile__avatar-circle span {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
    letter-spacing: 1px;
}

.dynmap-profile__name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.dynmap-profile__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

.dynmap-profile__status--online { color: #4ade80; }
.dynmap-profile__status--antirelog { color: #fbbf24; }
.dynmap-profile__status--offline { color: #888899; }

.dynmap-profile__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dynmap-profile__status--online .dynmap-profile__status-dot { background: #4ade80; }
.dynmap-profile__status--antirelog .dynmap-profile__status-dot { 
    background: #fbbf24;
    animation: dynmap-pulse 1.5s ease infinite;
}
.dynmap-profile__status--offline .dynmap-profile__status-dot { background: #888899; }

.dynmap-profile__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dynmap-profile__close:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.dynmap-profile__close svg {
    width: 18px;
    height: 18px;
}

/* Body */
.dynmap-profile__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.dynmap-profile__body::-webkit-scrollbar { width: 6px; }
.dynmap-profile__body::-webkit-scrollbar-track { background: transparent; }
.dynmap-profile__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }

.dynmap-profile__section {
    margin-bottom: 20px;
}

.dynmap-profile__section:last-child {
    margin-bottom: 0;
}

.dynmap-profile__section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(196, 163, 90, 0.15);
}

/* Stats */
.dynmap-profile__stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dynmap-profile__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dynmap-profile__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dynmap-profile__stat-value {
    font-size: 14px;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.dynmap-profile__stat-value--mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.dynmap-profile__stat-value svg {
    color: var(--color-accent);
}

/* HP Bar */
.dynmap-profile__hp-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.dynmap-profile__hp-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 0.5s ease;
    position: relative;
}

.dynmap-profile__hp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 9px 9px 0 0;
}

.dynmap-profile__hp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto Mono', monospace;
}

/* Equipment */
.dynmap-profile__equipment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dynmap-profile__slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dynmap-profile__slot:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(196, 163, 90, 0.2);
}

.dynmap-profile__slot--empty {
    opacity: 0.4;
}

.dynmap-profile__slot-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 163, 90, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.dynmap-profile__slot-icon svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

.dynmap-profile__slot--empty .dynmap-profile__slot-icon {
    background: rgba(255, 255, 255, 0.05);
}

.dynmap-profile__slot--empty .dynmap-profile__slot-icon svg {
    color: var(--color-text-muted);
}

.dynmap-profile__slot-info {
    flex: 1;
    min-width: 0;
}

.dynmap-profile__slot-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.dynmap-profile__slot-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dynmap-profile__slot--empty .dynmap-profile__slot-value {
    color: var(--color-text-muted);
    font-style: italic;
    font-weight: 400;
}

.dynmap-profile__item-count {
    font-size: 11px;
    color: var(--color-accent);
    margin-left: 4px;
    font-weight: 600;
}

/* Footer */
.dynmap-profile__footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--color-border);
}

.dynmap-profile__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dim));
    border: none;
    border-radius: 12px;
    color: #0a0a0b;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dynmap-profile__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 163, 90, 0.3);
}

.dynmap-profile__btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ ==================== */

.dynmap-auth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dynmap-auth.visible {
    opacity: 1;
    pointer-events: auto;
}

.dynmap-auth__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.dynmap-auth__panel {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: linear-gradient(180deg, #14141e 0%, #0f0f16 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(196, 163, 90, 0.1);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dynmap-auth.visible .dynmap-auth__panel {
    transform: translateY(0) scale(1);
}

.dynmap-auth__header {
    text-align: center;
    padding: 32px 24px 20px;
}

.dynmap-auth__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 163, 90, 0.2), rgba(196, 163, 90, 0.05));
    border: 1px solid rgba(196, 163, 90, 0.2);
    border-radius: 16px;
}

.dynmap-auth__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.dynmap-auth__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.dynmap-auth__subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.dynmap-auth__body {
    padding: 0 24px 24px;
}

.dynmap-auth__field {
    margin-bottom: 16px;
}

.dynmap-auth__field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.dynmap-auth__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dynmap-auth__input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.dynmap-auth__input-wrap input::placeholder {
    color: rgba(136, 136, 153, 0.5);
}

.dynmap-auth__input-wrap input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

.dynmap-auth__eye {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dynmap-auth__eye:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.dynmap-auth__eye.active {
    color: var(--color-accent);
}

.dynmap-auth__eye svg {
    width: 18px;
    height: 18px;
}

.dynmap-auth__error {
    display: none;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #f87171;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

.dynmap-auth__error.visible {
    display: block;
    animation: dynmap-shake 0.4s ease;
}

@keyframes dynmap-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.dynmap-auth__footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.dynmap-auth__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dynmap-auth__btn--cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.dynmap-auth__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.dynmap-auth__btn--submit {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dim));
    color: #0a0a0b;
}

.dynmap-auth__btn--submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 163, 90, 0.3);
}

.dynmap-auth__btn--submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dynmap-auth__btn--submit svg {
    width: 18px;
    height: 18px;
}

.dynmap-auth__spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(10, 10, 11, 0.3);
    border-top-color: #0a0a0b;
    border-radius: 50%;
    animation: dynmap-spin 0.8s linear infinite;
}

@keyframes dynmap-spin {
    to { transform: rotate(360deg); }
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
    .dynmap-profile__panel {
        max-width: none;
        width: 95%;
        max-height: 80vh;
        border-radius: 16px;
    }

    .dynmap-profile__header {
        padding: 16px 18px;
    }

    .dynmap-profile__avatar-circle {
        width: 44px;
        height: 44px;
    }

    .dynmap-profile__avatar-circle span {
        font-size: 18px;
    }

    .dynmap-profile__name {
        font-size: 17px;
    }

    .dynmap-profile__body {
        padding: 16px 18px;
    }

    .dynmap-profile__slot {
        padding: 8px 12px;
        gap: 10px;
    }

    .dynmap-profile__slot-icon {
        width: 28px;
        height: 28px;
    }

    .dynmap-profile__slot-icon svg {
        width: 14px;
        height: 14px;
    }

    .dynmap-profile__slot-value {
        font-size: 13px;
    }

    .dynmap-profile__footer {
        padding: 14px 18px;
    }

    .dynmap-auth__panel {
        width: 95%;
        border-radius: 16px;
    }

    .dynmap-auth__header {
        padding: 24px 20px 16px;
    }

    .dynmap-auth__body {
        padding: 0 20px 20px;
    }

    .dynmap-auth__footer {
        padding: 0 20px 20px;
        flex-direction: column-reverse;
    }

    .dynmap-tooltip__content {
        padding: 10px 14px;
        min-width: 180px;
    }

    .dynmap-tooltip__avatar {
        width: 32px;
        height: 32px;
    }

    .dynmap-tooltip__avatar span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dynmap-profile__panel {
        width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }

    .dynmap-player__avatar {
        width: 28px;
        height: 28px;
    }

    .dynmap-player__initials {
        font-size: 11px;
    }

    .dynmap-player__name-tag {
        font-size: 9px;
        max-width: 60px;
    }

    .dynmap-player__hp-bar {
        width: 30px;
    }

    .dynmap-profile__equipment {
        gap: 6px;
    }

    .dynmap-profile__slot {
        padding: 8px 10px;
    }

    .dynmap-profile__avatar-circle {
        width: 40px;
        height: 40px;
    }

    .dynmap-profile__avatar-circle span {
        font-size: 16px;
    }
}