body {
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}
#upgrade-popup, #player-icon-readme, #home-popup, #visited-areas-popup, #player-cards-popup, #player-cards-popup, #playerstat-popup, #cart-popup, #player-readme-popup, #playerstat-upgrade-popup,#player-pets-popup{z-index:1000}

.form-container {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.form-group label {
    font-weight: bold;
}

.form-group .form-control:disabled {
    background-color: #e9ecef;
}

.form-group textarea {
    width: 100%;
    height: 100px;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buttons, .user-info {
    display: flex;
    gap: 0px;
}

.button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    min-width: 120px;
}

.button:hover {
    background-color: #0056b3;
}

.container {
    background-color: #F4FGFF;
    padding: 0px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-y: auto;
}

.container2 {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 95%;
    margin: 10px auto;
}

h2 {
    text-align: center;
    color: #333;
    margin: 20px 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

label {
    margin-bottom: 5px;
    color: #333;
}

input[type="text"], input[type="password"], input[type="email"], select {
    padding: 5px;
    margin-bottom: 0px;
    border: 1px solid #000;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="submit"] {
    padding: 10px 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #218838;
}

.back {
    text-align: center;
    margin-top: 20px;
}

.back a {
    color: #007bff;
    text-decoration: none;
}

.back a:hover {
    text-decoration: underline;
}

.legend {
    margin-bottom: 10px;
    font-size: 16px;
}

.legend img {
    vertical-align: middle;
    margin-right: 5px;
}

.hidden-input {
    display: none;
}

.label-container {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: Blue;
    text-align: center;
}

.label-containererror {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: red;
    text-align: center;
}

.panel {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.panel-header {
    background-color: #f7f7f7;
    padding: 10px;
    text-align: center;
}

.toggle-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.panel-body {
    display: none;
    padding: 10px;
}

.nav-links a {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: #0056b3;
}

.selection {
    margin: 20px 0;
}

.selection select {
    padding: 15px;
    font-size: 16px;
    width: 100%;
    max-width: 500px;
}

#map {
    width: 100%;
    height: calc(100vh - 300px);
    min-height: 250px;
    max-height: 420px;
    border-radius: 12px;
    overflow: hidden;
}

#log {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
    height: clamp(150px, 22vh, 245px);
    max-height: min(245px, calc(100dvh - 480px));
    overflow-y: auto;
    font-size: 14px;
    border: 1px solid #7a5a35;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

@media (max-height: 900px) {
    #map {
        height: calc(100vh - 320px);
        max-height: 360px;
    }
}

@media (max-height: 768px) {
    #map {
        height: calc(100vh - 340px);
        min-height: 200px;
        max-height: 300px;
    }
}

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

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 10px;
    text-align: left;
}

#marketBlockTable {
    display: none;
}

.card-container, .card-stat-container {
    display: flex;
    flex-wrap: wrap;
    /*gap: 10px;*/
	justify-content: center;
}
.card-stat-container-statmain {
    display: flex;
    flex-wrap: wrap;
    /*gap: 10px;*/
	justify-content: left;
}
.card-card-container{
    display: flex;
    flex-wrap: wrap;
    /*gap: 10px;*/
	justify-content: center;
}

.card, .greencard, .yellowcard {
    background-color: #F4FGFF;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: calc(100% - 20px);
    max-width: 450px;
    box-sizing: border-box;
    margin: 10px;
}

.card img, .greencard img, .yellowcard img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.card .title, .greencard .title, .yellowcard .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card .content p, .greencard .content p, .yellowcard .content p {
    margin: 10px 0;
    font-size: 16px;
}

.card .footer p, .greencard .footer p, .yellowcard .footer p {
    margin: 10px 0;
    font-size: 16px;
    color: gray;
}

.image-preview {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.image-preview img {
    width: 300px;
    height: auto;
    object-fit: contain;
    margin-right: 10px;
}

.image-preview button {
    padding: 10px 15px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-preview button:hover {
    background-color: #ff0000;
}

.file-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #0056b3;
}

.content, .contentava, .subcontent, .subcontenty {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #eaf4ff;
    border-radius: 5px;
}

.subcontenty {
    background-color: #fff4f4;
}

.content img, .subcontent img, .subcontenty img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

.bold-input {
    font-weight: bold;
    font-size: 16px;
    color: black;
}

@media screen and (max-width: 600px) {
    .container, .container2 {
        width: 100%;
        padding: 0px;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    form {
        padding: 10px;
        gap: 10px;
    }

    #map {
        height: 250px;
    }

    #log{
        width: 100%;
        margin: 0px auto;
        padding: 10px;
        border: 1px solid #000;
        box-sizing: border-box;
        background-color: #FFFFFF;
        height: 245px;
        max-height: 215px;
        overflow-y: auto;
        font-size: 14px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 0px;
        border-bottom: 0px solid #ddd;
    }

    td {
        display: block;
        text-align: left;
        border: none;
        position: relative;
        /*padding-left: 50%;*/
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
    }

    .card {
        width: 100%;
    }
}

@media (min-width: 900px) {
    .card {
        width: calc(33.333% - 20px);
    }
}

#player-info {
    width: 100%;
    margin: 0px auto;
    padding: 5px;
    border: 1px solid #000;
    box-sizing: border-box;
    background-color: #FFFFFF;
	font-size: 14px;
}

#visited-areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-item {
    border: 1px solid black;
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 16px;
    font-weight: bold;
}

.card-price {
    font-size: 14px;
    color: #000;
}

.card-desc {
    font-size: 14px;
    color: #000;
}

.add-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.add-btn:disabled {
    background-color: #d3d3d3;
    color: #ffffff;
    cursor: not-allowed;
    border: none;
    opacity: 0.6;
}

.add-btn:hover {
    background-color: #45a049;
}

input[type="text"]:disabled {
    color: blue;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.stat-table {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.stat-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    text-align: left;
}

.stat-table .stat-label {
    font-weight: bold;
    color: #333;
    width: 50%; /* Ensures labels take up half the width */
}

.add-btn {
    float: right;
    padding: 5px 10px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-btn:hover {
    background-color: #218838;
}

@media (max-width: 600px) {
    .stat-table td {
        font-size: 14px;
        padding: 8px;
    }

    .add-btn {
        padding: 4px 8px;
        font-size: 14px;
    }
}



.image-preview img {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin-right: 10px; /* Space between image and button */
}

.image-preview button {
    padding: 10px 15px; /* Larger padding for easier tapping */
    background-color: #ff4d4d; /* Bright red for visibility */
    color: white;
    border: none;
    border-radius: 5px; /* Rounded corners for modern look */
    font-size: 16px; /* Larger text for readability */
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transition effect */
}

.image-preview button:hover {
    background-color: #ff0000; /* Darker red on hover for feedback */
}

.image-preview {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.file-label {
    display: inline-block;
    padding: 10px 10px; /* Increase padding for larger touch area */
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 16px; /* Increase font size for better readability */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.file-input-wrapper {
	width: 100%;
	max-width: 100px; /* กำหนดความกว้างสูงสุด */
	margin: 0 auto;
}

.file-input {
	width: 90%;
	padding: 10px; /* ปรับระยะห่างภายใน */
	font-size: 18px; /* ขนาดตัวอักษรใหญ่ขึ้น */
	border: 2px solid #28a745; /* ขอบ */
	border-radius: 5px; /* ทำให้ขอบโค้ง */
	background-color: #f9f9f9; /* สีพื้นหลัง */
	color: #555;
	cursor: pointer;
	display: none; 
}

.file-input:hover {
	background-color: #e0e0e0; /* เปลี่ยนสีพื้นหลังเมื่อ hover */
}

@media (max-width: 700px) {
	.file-input {
		font-size: 18px; /* ลดขนาดตัวอักษรสำหรับหน้าจอมือถือ */
		padding: 8px;
	}
	.progress-bar-inline {
		display: inline-block;
		background-color: #ddd;
		border-radius: 5px;
		width: 35%; /* ขนาดแถบ */
		height: 14px; /* ความสูงเล็กลง */
		margin: 0 5px; /* ระยะห่างเล็กน้อย */
		overflow: hidden;
		vertical-align: middle;
		position: relative;
	}
}
@media (min-width: 701px) {
	.progress-bar-inline {
		display: inline-block;
		background-color: #ddd;
		border-radius: 5px;
		width: 40%; /* ขนาดแถบ */
		height: 14px; /* ความสูงเล็กลง */
		margin: 0 5px; /* ระยะห่างเล็กน้อย */
		overflow: hidden;
		vertical-align: middle;
		position: relative;
	}
}

.progress-fill-inline {
    height: 100%;
    width: 0%;
    transition: width 0.5s;
    position: relative;
}

#hp-bar {
    background-color: #ff9999; 
}

#exp-bar {
    background-color: #4db8ff;
}

.progress-text {
    font-size: 12px; 
    color: black;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; 
}

.progress-bar-inline-monster {
    display: inline-block;
    background-color: #333;
    border-radius: 5px;
    width: 80%;
    height: 12px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill-inline-monster {
    height: 100%;
    width: 0%;
    transition: width 0.4s linear;
}

.progress-text-monster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
}


.progress-text-monster {
    position: absolute;
    top: 50%;  /* ให้อยู่ตรงกลางแนวตั้ง */
    left: 50%;  /* ให้อยู่ตรงกลางแนวนอน */
    transform: translate(-50%, -50%);  /* ปรับให้ตรงกลางพอดี */
    font-size: 8px;
    color: white;
    font-weight: bold;
    pointer-events: none;  /* ป้องกันการคลิกหรือโต้ตอบกับข้อความ */
}

.slash-container {
    position: relative;
    width: 70px;
    height: 70px;
}

.slash-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: cover;
    animation: slash-spin 1s linear infinite;
    transform-origin: 50% -30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--start-rotate, 0deg));
    opacity: 0.7;
}

.arrow-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: cover;
    top: 50%;  /* จัดตำแหน่งให้อยู่กึ่งกลางตามแนวแกน Y */
    left: 100%;  /* ให้อยู่ทางขวาของตัวละคร */
    transform: translate(-20%, -50%);  /* ปรับให้เยื้องเล็กน้อยจากตำแหน่ง */
}


/* Animation สำหรับการหมุน */
@keyframes slash-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.attack-container {
    position: relative;
}

.attack-effect {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    animation: blink 0.5s ease-in-out; /* กระพริบ 1 ครั้ง */
}

/* Keyframes สำหรับการกระพริบ */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* container ที่จะ "ค่อย ๆ เคลื่อน" */
.monster-move-to-center {
    display: inline-block;
    animation-name: moveToCenter;
    animation-duration: 6s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* กระโดด + เอียง */
.monster-jump {
    display: inline-block;
    animation-name: jumpSway;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 0.8s;
    animation-delay: 0s;
    --jump-height: 12px;
    transform-origin: bottom center;
}
@keyframes monsterJumpLoop {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-14px); }
    40%  { transform: translateY(0); }
    70%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
@keyframes monsterJumpJerkSoft {
    0%   { transform: translateY(0); }
    15%  { transform: translateY(-4px); }
    30%  { transform: translateY(0); }
    45%  { transform: translateY(-3px); }
    60%  { transform: translateY(0); }
    75%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.monster-jump-always {
    animation: monsterJumpLoop 1.5s ease-in-out infinite;
}
/* เคลื่อนเข้าหาศูนย์ (ใช้ transform เท่านั้น) */
@keyframes moveToCenter {
    from {
        transform: translate(var(--from-x), var(--from-y));
    }
    to {
        transform: translate(0, 0);
    }
}

/* กระโดด */
@keyframes jump {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(calc(var(--jump-height) * -1)); }
    100% { transform: translateY(0); }
}

/* กระโดด + เอียง */
@keyframes jumpSway {
    0%   { transform: translateY(0)                                    rotate(0deg); }
    25%  { transform: translateY(calc(var(--jump-height) * -1))        rotate(6deg); }
    50%  { transform: translateY(0)                                    rotate(0deg); }
    75%  { transform: translateY(calc(var(--jump-height) * -0.5))      rotate(-6deg); }
    100% { transform: translateY(0)                                    rotate(0deg); }
}

.monster-element-bar {
    position: absolute;
    top: 2px;
    left: 2px;
    display: flex;
    gap: 2px;
    z-index: 5;
}

.monster-element-bar img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    pointer-events: none;
}

.monster-hit-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 6;
    display: none; /* ค่าเริ่มต้น = ซ่อน */
}

.monster-hit-effect img {
    opacity: 0.9;
    object-fit: contain;
}

.monster-drop-item {
    position: absolute;
    bottom: -5px;
    left: 50%;
    pointer-events: none;
    z-index: 2;

    opacity: 0; /* 🔴 ซ่อนก่อน */
    animation: dropBounceOnce 0.4s ease-out forwards;
}

.monster-drop-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

@keyframes dropBounceOnce {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    80% {
        transform: translate(-50%, -6px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.attack-effect.show-attack {
    animation: attackStay 0.4s ease-out forwards;
}

@keyframes attackStay {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1; /* ✅ ไม่หาย */
        transform: translate(-50%, -50%) scale(1.0);
    }
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    30% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1);
    }
}

/* 🔹 Damage / Element Float (ปกติ) */
@keyframes elementFloatFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0.4;
    }
}

/* 🔹 Summon / Special (ไม่จาง) */
@keyframes elementFloatStay {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0.2;
    }
}

/* optional: class รวม */
.damage-float {
    position: relative;
    top: 0;
    opacity: 0;  
    text-align: center;
    font-weight: bold;
    pointer-events: none;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}
.reward-shake {
    animation: rewardShake 2.2s infinite;
}

@keyframes rewardShake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    90%  { transform: translate(0, 0) rotate(0deg); }

    92%  { transform: translate(-2px, 0) rotate(-2deg); }
    94%  { transform: translate(2px, 0) rotate(2deg); }
    96%  { transform: translate(-2px, 0) rotate(-2deg); }
    98%  { transform: translate(2px, 0) rotate(2deg); }

    100% { transform: translate(0, 0) rotate(0deg); }
}
#milestoneWrapper{
    display:flex;
    align-items:flex-start;
    gap:10px;
}
#milestoneScroll{
    overflow-x:auto;
    overflow-y:hidden;
    max-width:100%;
}
#milestoneBar{
    display:inline-flex;
    align-items:flex-start;
    min-width:max-content;
}
.level-prefix{
    font-weight:bold;
    color:#000;
    font-size:12px;
    flex-shrink:0;
}
.milestone{
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:0 0 auto;
}

.dot{
    width:14px;
    height:14px;
    border-radius:50%;
}

.dot.unlock{
    background:#2ecc71;
    box-shadow:0 0 4px rgba(46, 204, 113, 0.45);
}

.dot.lock{
    background:#777;
}

.line{
    width:30px;
    height:3px;
    background:#777;
    margin-top:5px;
    flex:0 0 auto;
}

.line.unlock{
    background:#2ecc71;
}

.level-label{
    margin-top:5px;
    font-size:12px;
    color:#000;
    text-align:center;
    min-width:36px;
}
#milestoneWrapperReborn{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:10px 0;
    box-sizing:border-box;
    -webkit-overflow-scrolling:touch;
}

#milestoneBarReborn{
    display:inline-flex;
    align-items:flex-start;
    min-width:max-content;
}

.reborn-prefix{
    color:#000;
    font-weight:bold;
    margin-right:10px;
    flex:0 0 auto;
    font-size:12px;
}

.milestone{
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:0 0 auto;
}

.dot{
    width:14px;
    height:14px;
    border-radius:50%;
}

.dot.unlock{
    background:#2ecc71;
    box-shadow:0 0 4px rgba(46, 204, 113, 0.45);
}

.dot.lock{
    background:#777;
}

.line{
    width:30px;
    height:3px;
    background:#777;
    margin-top:5px;
    flex:0 0 auto;
}

.line.unlock{
    background:#2ecc71;
}

.level-label{
    margin-top:5px;
    font-size:12px;
    color:#000;
    text-align:center;
    min-width:36px;
}

.wt-btn {
    background: #444;
    color: #fff;
    border: none;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.15s;
}

.wt-btn:hover {
    background: #666;
}

.wt-btn:active {
    transform: scale(0.9);
}
/* Combat log icon sizes */
.ic30 { width: 30px; height: 30px; vertical-align: middle; }
.ic40 { width: 40px; height: 40px; vertical-align: middle; }
.ic50 { width: 50px; height: 50px; vertical-align: middle; }
.ic60 { width: 60px; height: 60px; vertical-align: middle; }
.ic70 { width: 70px; height: 70px; vertical-align: middle; }
.ic15 { width: 15px; height: 15px; vertical-align: middle; }
.ic25 { width: 25px; height: 25px; vertical-align: middle; }
.ic35 { width: 35px; height: 35px; vertical-align: middle; }
.ic45 { width: 45px; height: 45px; vertical-align: middle; }

/* MVP map display */
.mvp-map-row { position: relative; display: flex; align-items: center; gap: 3px; width: 100%; }
.mvp-map-title { color: #2007ff; font-size: 13px; }
.mvp-img-wrap { position: relative; width: 50px; height: 50px; flex-shrink: 0; overflow: hidden; }
.mvp-img-wrap img { width: 50px; height: 50px; object-fit: cover; display: block; }
.mvp-tier-badge {
    position: absolute; top: 0; right: 0;
    background: rgba(0,0,0,0.75);
    font-size: 10px; font-weight: bold;
    padding: 1px 5px;
    border-bottom-left-radius: 6px;
    line-height: 1.2;
}
.mvp-level-badge {
    position: absolute; bottom: 0; left: 0;
    background: rgba(0,0,0,0.6);
    color: #fff; font-size: 10px; font-weight: bold;
    padding: 1px 3px;
    border-bottom-right-radius: 5px;
    min-width: 40px;
}
.mvp-warp-btn {
    background-color: #007bff; color: #fff;
    border: none; padding: 6px 10px;
    font-size: 12px; font-weight: bold;
    border-radius: 6px; cursor: pointer;
    transition: background-color 0.2s ease;
}
.mvp-warp-btn:hover { background-color: #0056b3; }
.mvp-name { color: #2007ff; font-size: 13px; }

/* LINE social bar */
.line-social-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.line-social-title { color: #2007ff; font-size: 13px; }
.line-add-btn, .line-chat-btn {
    color: #fff; padding: 5px 10px; font-size: 11px; font-weight: bold;
    border-radius: 6px; text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.line-add-btn { background: #06C755; }
.line-add-btn:hover { background: #049c44; }
.line-chat-btn { background: #00C300; }
.line-chat-btn:hover { background: #009900; }
