/* ป้องกันการคลุมดำข้อความและรูปภาพทั้งหน้าเว็บ */
body {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE / Edge */
  user-select: none;         /* Standard */
}

/* ป้องกันการคลิกลากรูปภาพ */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none; /* ป้องกันการคลิกหรือบันทึกรูป */
}

/* ในไฟล์ style.css ของคุณ */
.card-magic {
  --card-bg: url('../images/guide/bg1.jpg');
}

.card-world {
  --card-bg: url('../images/guide/bg2.jpg');
}

.card-class {
  --card-bg: url('../images/guide/bg3.jpg');
}
	/* ตกแต่งแท็ก Category ของโปรโมชั่น */
.news-cat.promo {
  background-color: #e67e22; /* สีส้มสำหรับโปรโมชั่น */
  color: #fff;
}

/* ตกแต่งปุ่ม Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.pagination .page-btn {
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ccc;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.2s;
}

.pagination .page-btn.active, 
.pagination .page-btn:hover {
  background: #d4a359;
  color: #000;
  border-color: #d4a359;
  font-weight: bold;
}

.no-news {
  text-align: center;
  color: #888;
  padding: 20px 0;
}
	@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@800&family=Prompt:wght@600&display=swap');

/* Quick Menu Layout */
.rpg-box.quick-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

/* Base RPG Button Wrapper */
.dg-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 0 14px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Outer & Inner RPG Bevel Frame */
.dg-border-frame {
    position: absolute;
    inset: 0;
    border: 2px solid #fef08a;
    border-image: linear-gradient(to bottom, #fef08a 0%, #d97706 50%, #451a03 100%) 1;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 2;
}

.dg-border-frame::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(254, 240, 138, 0.35);
}

/* Diamond Corners */
.dg-btn-wrapper::before,
.dg-btn-wrapper::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fef08a;
    box-shadow: 0 0 5px #f59e0b;
    transform: rotate(45deg);
    z-index: 4;
}
.dg-btn-wrapper::before { top: 3px; left: 3px; }
.dg-btn-wrapper::after { top: 3px; right: 3px; }

/* Content Layer Structure */
.dg-content-layer {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 3;
}

/* Icon Badge Styling */
.dg-icon-badge {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    border: 2px solid #fef08a;
    box-shadow: 0 0 8px rgba(0,0,0,0.8), inset 0 0 6px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.dg-icon-badge i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Text Label Styling */
.dg-label-text {
    font-family: 'Prompt', 'Cinzel', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px #000;
    text-align: left;
    transition: all 0.3s ease;
}


/* ==================== BUTTON 1: LIKE FACEBOOK (GOLDEN AMBER) ==================== */
.dg-btn-wrapper:nth-child(1) {
    background: linear-gradient(135deg, #331803 0%, #1a0a00 50%, #0a0300 100%);
}

.dg-btn-wrapper:nth-child(1) .dg-icon-badge {
    background: radial-gradient(circle, #b45309 0%, #451a03 100%);
    color: #fef08a;
}

.dg-btn-wrapper:nth-child(1) .dg-label-text {
    color: #fef08a;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.6), 1px 1px 3px #000;
}

/* Light Flare Sweep FX */
.dg-flare-sweep {
    position: absolute;
    top: -50%;
    left: -80%;
    width: 30%;
    height: 200%;
    background: rgba(254, 240, 138, 0.35);
    transform: rotate(25deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.dg-btn-wrapper:nth-child(1):hover .dg-flare-sweep {
    left: 135%;
}

.dg-btn-wrapper:nth-child(1):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.dg-btn-wrapper:nth-child(1):hover .dg-icon-badge {
    box-shadow: 0 0 14px #f59e0b;
    transform: scale(1.1) rotate(-8deg);
}


/* ==================== BUTTON 2: SHARE FACEBOOK (AMETHYST PURPLE) ==================== */
.dg-btn-wrapper:nth-child(2) {
    background: linear-gradient(135deg, #24083b 0%, #120321 50%, #06010c 100%);
}

.dg-btn-wrapper:nth-child(2) .dg-icon-badge {
    background: radial-gradient(circle, #7e22ce 0%, #3b0764 100%);
    color: #e9d5ff;
}

.dg-btn-wrapper:nth-child(2) .dg-label-text {
    color: #e9d5ff;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.6), 1px 1px 3px #000;
}

.dg-btn-wrapper:nth-child(2):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.dg-btn-wrapper:nth-child(2):hover .dg-icon-badge {
    box-shadow: 0 0 15px #a855f7;
    transform: scale(1.1);
}

.dg-btn-wrapper:nth-child(2):hover .dg-icon-badge i {
    transform: rotate(15deg);
}


/* ==================== BUTTON 3: OTHER EVENTS (RUBY VIOLET) ==================== */
.dg-btn-wrapper:nth-child(3) {
    background: linear-gradient(135deg, #3b0720 0%, #1f0210 50%, #0a0007 100%);
}

.dg-btn-wrapper:nth-child(3) .dg-icon-badge {
    background: radial-gradient(circle, #be123c 0%, #4c0519 100%);
    color: #fecdd3;
}

.dg-btn-wrapper:nth-child(3) .dg-label-text {
    color: #fecdd3;
    text-shadow: 0 0 6px rgba(225, 29, 72, 0.6), 1px 1px 3px #000;
}

.dg-btn-wrapper:nth-child(3):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

.dg-btn-wrapper:nth-child(3):hover .dg-icon-badge {
    box-shadow: 0 0 15px #f43f5e;
    transform: scale(1.1);
}

.dg-btn-wrapper:nth-child(3):hover .dg-icon-badge i {
    transform: translateY(-2px);
}
	@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800&family=Prompt:wght@400;600&display=swap');

/* ==================== RPG BUTTON SECTION STYLES ==================== */
.rpg-menu-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 15px;
    flex-wrap: wrap;
}

/* Common Card Base */
.rpg-btn-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    height: 90px;
    padding: 0 20px;
    text-decoration: none !important;
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* กรอบทองคลาสสิก */
    border: 3px solid #eab308;
    border-image: linear-gradient(to bottom, #fef08a, #ca8a04, #713f12) 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 
                inset 0 0 12px rgba(0, 0, 0, 0.9);
}

/* Inner Frame Lines & Corners */
.rpg-btn-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(254, 240, 138, 0.3);
    pointer-events: none;
    z-index: 2;
}

/* RPG Gem Corners */
.rpg-btn-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fef08a;
    box-shadow: 0 0 6px #eab308;
    transform: rotate(45deg);
    z-index: 3;
}
.rpg-btn-corner-tl { top: 3px; left: 3px; }
.rpg-btn-corner-tr { top: 3px; right: 3px; }
.rpg-btn-corner-bl { bottom: 3px; left: 3px; }
.rpg-btn-corner-br { bottom: 3px; right: 3px; }

/* Icon Container */
.rpg-btn-icon-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    border: 2px solid #fef08a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(0,0,0,0.8);
    z-index: 2;
    transition: all 0.3s ease;
}

.rpg-btn-icon-wrapper i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Text Content Styling */
.rpg-btn-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.rpg-btn-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px #000;
    transition: all 0.3s ease;
}

.rpg-btn-subtitle {
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 2px;
    text-shadow: 1px 1px 3px #000;
    transition: all 0.3s ease;
}

/* ==================== BUTTON 1: REGISTER (GOLDEN SHINE) ==================== */
.rpg-btn-register {
    background: linear-gradient(135deg, #2a1704 0%, #451a03 40%, #1a0900 100%);
}

.rpg-btn-register .rpg-btn-icon-wrapper {
    background: radial-gradient(circle, #b45309 0%, #451a03 100%);
    color: #fef08a;
}

.rpg-btn-register .rpg-btn-title {
    color: #fef08a;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6), 2px 2px 4px #000;
}

/* Shine Sweep FX */
.rpg-btn-register::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 30%;
    height: 200%;
    background: rgba(254, 240, 138, 0.4);
    transform: rotate(25deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.rpg-btn-register:hover::after {
    left: 135%;
}

.rpg-btn-register:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(254, 240, 138, 0.2);
}

.rpg-btn-register:hover .rpg-btn-icon-wrapper {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 0 15px #f59e0b;
}

/* ==================== BUTTON 2: DOWNLOAD (BATTLE PULSE) ==================== */
.rpg-btn-download {
    background: linear-gradient(135deg, #3b0726 0%, #1f0318 50%, #0d010b 100%);
}

.rpg-btn-download .rpg-btn-icon-wrapper {
    background: radial-gradient(circle, #9f1239 0%, #4c0519 100%);
    color: #fecdd3;
}

.rpg-btn-download .rpg-btn-title {
    color: #fecdd3;
    text-shadow: 0 0 8px rgba(225, 29, 72, 0.6), 2px 2px 4px #000;
}

.rpg-btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(225, 29, 72, 0.4), inset 0 0 15px rgba(244, 63, 94, 0.2);
}

.rpg-btn-download:hover .rpg-btn-icon-wrapper {
    animation: battlePulse 0.5s ease infinite alternate;
    color: #fff;
    box-shadow: 0 0 15px #f43f5e;
}

@keyframes battlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* ==================== BUTTON 3: MEMBER SYSTEM (MAGIC AURA) ==================== */
.rpg-btn-member {
    background: linear-gradient(135deg, #1e0b36 0%, #110426 50%, #070114 100%);
}

.rpg-btn-member .rpg-btn-icon-wrapper {
    background: radial-gradient(circle, #6b21a8 0%, #3b0764 100%);
    color: #e9d5ff;
}

.rpg-btn-member .rpg-btn-title {
    color: #e9d5ff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6), 2px 2px 4px #000;
}

.rpg-btn-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(192, 132, 252, 0.2);
}

.rpg-btn-member:hover .rpg-btn-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 20px #a855f7, inset 0 0 10px #e9d5ff;
}

.rpg-btn-member:hover .rpg-btn-icon-wrapper i {
    transform: rotate(360deg);
    transition: all 0.8s ease;
}
	@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Prompt:wght@400;600&display=swap');

/* CSS Variables สำหรับป้ายแจ้งเตือนโดยเฉพาะ */
:root {
    --rpg-alert-bg-main: linear-gradient(160deg, #1d0736 0%, #0d021c 100%);
    --rpg-alert-gold-border: #f59e0b;
    --rpg-alert-gold-light: #fef08a;
    --rpg-alert-gold-dark: #78350f;
    --rpg-alert-purple-glow: rgba(168, 85, 247, 0.4);
    --rpg-alert-gold-glow: rgba(245, 158, 11, 0.5);
}

/* SweetAlert2 RPG Custom Popup Panel */
.rpg-alert-popup-box {
    background: var(--rpg-alert-bg-main) !important;
    border: 3px solid var(--rpg-alert-gold-border) !important;
    outline: 2px solid var(--rpg-alert-gold-dark) !important;
    outline-offset: -7px !important;
    border-radius: 12px !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 
                inset 0 0 20px var(--rpg-alert-purple-glow),
                0 0 20px var(--rpg-alert-gold-glow) !important;
    color: #f3e8ff !important;
    font-family: 'Prompt', sans-serif !important;
}

/* Title RPG Style */
.rpg-alert-title-text {
    font-family: 'Cinzel', 'Prompt', serif !important;
    color: var(--rpg-alert-gold-light) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px var(--rpg-alert-gold-glow), 2px 2px 4px #000 !important;
    margin-bottom: 5px !important;
}

/* Content Text Style */
.rpg-alert-content-text {
    color: #e9d5ff !important;
    font-size: 1rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* RPG Metallic Gold Button */
.rpg-alert-confirm-btn {
    background: linear-gradient(180deg, #fef08a 0%, #d97706 50%, #78350f 100%) !important;
    border: 1px solid var(--rpg-alert-gold-light) !important;
    color: #1a082e !important;
    font-weight: 800 !important;
    font-family: 'Prompt', sans-serif !important;
    padding: 10px 28px !important;
    border-radius: 6px !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 15px var(--rpg-alert-gold-glow) !important;
    transition: all 0.25s ease-in-out !important;
}

.rpg-alert-confirm-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 0 25px var(--rpg-alert-gold-glow) !important;
    filter: brightness(1.15) !important;
}

/* Backdrop Dim Effect */
.rpg-alert-backdrop-blur {
    background: rgba(8, 2, 18, 0.75) !important;
    backdrop-filter: blur(6px) !important;
}
	:root {
    --rpg-purple-dark: #0b0518;
    --rpg-purple-card: rgba(23, 11, 41, 0.92);
    --rpg-gold-light: #fef08a;
    --rpg-gold-main: #f59e0b;
    --rpg-gold-dark: #78350f;
    --rpg-gold-glow: rgba(245, 158, 11, 0.4);
    --rpg-purple-glow: rgba(168, 85, 247, 0.35);
}

/* Base Modal Dark Theme & Backdrop Blur */
.modal-purple-dark .modal-content {
    background: var(--rpg-purple-card);
    border: 2px solid var(--rpg-gold-main);
    outline: 2px solid var(--rpg-gold-dark);
    outline-offset: -6px;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9),
                inset 0 0 25px var(--rpg-purple-glow),
                0 0 20px var(--rpg-gold-glow);
    backdrop-filter: blur(12px);
    color: #f3e8ff;
    position: relative;
    overflow: hidden;
}

/* Corner Ornaments (มุมกรอบทองคลาสสิก) */
.modal-purple-dark .modal-content::before,
.modal-purple-dark .modal-content::after {
    content: "◆";
    position: absolute;
    color: var(--rpg-gold-light);
    font-size: 14px;
    text-shadow: 0 0 8px var(--rpg-gold-main);
    z-index: 5;
}
.modal-purple-dark .modal-content::before { top: 6px; left: 8px; }
.modal-purple-dark .modal-content::after { top: 6px; right: 8px; }

/* Modal Header */
.modal-purple-dark .modal-header {
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    background: linear-gradient(180deg, rgba(126, 34, 206, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 18px 24px;
}

.modal-purple-dark .modal-title {
    font-family: 'Cinzel', 'Prompt', serif;
    color: var(--rpg-gold-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--rpg-gold-glow), 2px 2px 4px #000;
}

/* Close Button Override */
.modal-purple-dark .btn-close {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(350deg);
    opacity: 0.8;
    transition: all 0.2s ease-in-out;
}
.modal-purple-dark .btn-close:hover {
    opacity: 1;
    transform: scale(1.15) rotate(90deg);
}

/* List Groups & Card Items */
.modal-purple-dark .list-group-item {
    background: rgba(15, 6, 31, 0.7) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: #e9d5ff !important;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.modal-purple-dark .list-group-item:hover {
    border-color: var(--rpg-gold-main) !important;
    box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Badges & Highlights */
.badge-cash, .modal-purple-dark .badge {
    background: linear-gradient(180deg, #fef08a 0%, #d97706 100%) !important;
    color: #1e0b36 !important;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #fef08a;
    box-shadow: 0 0 8px var(--rpg-gold-glow);
    text-shadow: none;
}

/* Table Styling */
.modal-purple-dark .table-responsive {
    background: rgba(10, 3, 20, 0.8) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.modal-purple-dark .table-custom thead th {
    color: var(--rpg-gold-light);
    border-bottom: 1px solid var(--rpg-gold-main) !important;
    font-family: 'Cinzel', 'Prompt', serif;
    background: rgba(126, 34, 206, 0.15);
}

.modal-purple-dark .table-custom tbody tr {
    transition: background-color 0.2s ease;
}
.modal-purple-dark .table-custom tbody tr:hover {
    background-color: rgba(168, 85, 247, 0.15) !important;
}

.char-name {
    color: var(--rpg-gold-light);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
}

.badge-level {
    color: #c084fc;
    font-weight: bold;
}

/* Forms & Inputs */
.modal-purple-dark .label-custom {
    color: var(--rpg-gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-purple-dark .form-control {
    background: rgba(8, 2, 18, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f3e8ff;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.modal-purple-dark .form-control:focus {
    background: rgba(15, 4, 33, 0.95);
    border-color: var(--rpg-gold-main);
    box-shadow: 0 0 12px var(--rpg-gold-glow);
    color: #fff;
}

.modal-purple-dark .form-control:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #a855f7;
}

/* Gold RPG Button */
.modal-purple-dark .btn-secondary,
.modal-purple-dark .btn-primary {
    background: linear-gradient(180deg, #fef08a 0%, #d97706 50%, #78350f 100%) !important;
    border: 1px solid var(--rpg-gold-light) !important;
    color: #1a082e !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px var(--rpg-gold-glow);
    transition: all 0.2s ease-in-out !important;
}

.modal-purple-dark .btn-secondary:hover,
.modal-purple-dark .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--rpg-gold-glow) !important;
    filter: brightness(1.1);
}

.sub-text-soft {
    color: #c084fc !important;
    font-size: 0.8rem;
}

/* Custom Overlay Modal Loader (สำหรับ customModal) */
.modal-overlay {
    background: rgba(5, 1, 13, 0.85);
    backdrop-filter: blur(8px);
}
.modal-container {
    border: 2px solid var(--rpg-gold-main);
    border-radius: 12px;
    box-shadow: 0 0 30px var(--rpg-gold-glow);
    background: var(--rpg-purple-dark);
}
	/* Custom SweetAlert2 Classic Fantasy Gold Theme */
.swal2-rpg-gold-popup {
    background: linear-gradient(145deg, #180e29 0%, #0a0414 100%) !important;
    border: 3px solid #f59e0b !important;
    outline: 2px solid #78350f !important;
    border-radius: 12px !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), inset 0 0 15px rgba(168, 85, 247, 0.3) !important;
    backdrop-filter: blur(8px);
}

.swal2-rpg-title {
    font-family: 'Cinzel', 'Prompt', serif !important;
    color: #fef08a !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.7), 2px 2px 4px #000 !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}

.swal2-rpg-content {
    color: #e9d5ff !important;
    font-size: 1.05rem !important;
}

/* ปุ่มสไตล์แฟนตาซีทอง/ม่วง */
.btn-swal-gold {
    background: linear-gradient(180deg, #fef08a 0%, #d97706 50%, #78350f 100%) !important;
    border: 1px solid #fef08a !important;
    color: #1e1b4b !important;
    font-weight: bold !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-swal-gold:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.9) !important;
}

.btn-swal-purple {
    background: linear-gradient(180deg, #c084fc 0%, #7e22ce 50%, #3b0764 100%) !important;
    border: 1px solid #e9d5ff !important;
    color: #fff !important;
    font-weight: bold !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-swal-purple:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.9) !important;
}
	/* ===================================================
   RPG FANTASY THEME (PURPLE & GOLD) - CSS STYLES
   =================================================== */
:root {
    --gold-primary: #f59e0b;
    --gold-light: #fef08a;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --purple-dark: #0f0728;
    --purple-card: rgba(26, 16, 52, 0.85);
    --purple-border: #7e22ce;
    --purple-glow: rgba(168, 85, 247, 0.5);
}

body {
    font-family: 'Prompt', sans-serif;
}

/* กรอบหลักสไตล์ RPG Box */
.rpg-box {
    background: var(--purple-card);
    border: 2px solid #581c87;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 0 15px var(--purple-glow);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(10px);
    color: #fff;
}

.rpg-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-glow), 2px 2px 4px #000;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ช่องกรอกข้อมูล Fantasy Input */
.rpg-input-group {
    position: relative;
    margin-bottom: 20px;
}

.rpg-input-group label {
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 6px;
    display: block;
}

.rpg-input {
    width: 100%;
    background: rgba(15, 7, 40, 0.7);
    border: 1.5px solid #6b21a8;
    border-radius: 8px;
    padding: 12px 15px 12px 42px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rpg-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 38px;
    color: #a855f7;
    transition: all 0.3s ease;
}

.rpg-input:focus ~ .input-icon {
    color: var(--gold-primary);
}

/* ปุ่มกดสไตล์แฟนตาซี (RPG Buttons) */
.btn-rpg-gold {
    background: linear-gradient(180deg, #fef08a 0%, #d97706 50%, #78350f 100%);
    border: 1px solid var(--gold-light);
    color: #1e1b4b;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--gold-glow);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-rpg-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.8);
    filter: brightness(1.1);
}

.btn-rpg-purple {
    background: linear-gradient(180deg, #c084fc 0%, #7e22ce 50%, #3b0764 100%);
    border: 1px solid #e9d5ff;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px var(--purple-glow);
}

.btn-rpg-purple:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--purple-glow);
}

/* ลิงก์ระบบ */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.85rem;
}

.auth-links a {
    color: #c084fc;
    text-decoration: none;
    transition: 0.3s;
}

.auth-links a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 5px var(--gold-glow);
}

/* Responsive Handling */
@media (max-width: 576px) {
    .rpg-box {
        padding: 18px;
    }
    .rpg-title {
        font-size: 1.3rem;
    }
}
	/* ==========================================
   EXACT REPLICA - LOGIN GOLD BUTTON (ถอดจากรูปเป๊ะๆ)
   ========================================== */

.dg-btn-wrapper {
  position: relative;
  width: 100%;
  padding: 12px 24px;
  
  /* 1. เนื้อปุ่มสีทองไล่เฉดซ้ายไปขวา */
  background: linear-gradient(90deg, 
    #eec600 0%, 
    #d1a300 35%, 
    #9e7900 70%, 
    #7a5c00 100%
  );
  
  /* 2. กรอบสี่เหลี่ยมชั้นนอกสุด (Outer Solid Border) */
  border: 1px solid #ffe875 !important;
  border-radius: 8px;
  
  cursor: pointer;
  overflow: hidden;
  outline: none;
  isolation: isolate;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;

  /* 3. แสงออร่าสีทองส้มฟุ้งจางๆ ออกมารอบนอกปุ่ม */
  box-shadow: 0 0 12px rgba(255, 210, 80, 0.4),
              0 0 20px rgba(255, 170, 0, 0.25),
              0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* 4. เส้นขอบสว่างด้านในตัวปุ่ม (Inner Border) */
.dg-border-frame {
  position: absolute;
  inset: 1px; /* ชิดขอบด้านใน */
  border: 1px solid rgba(255, 253, 208, 0.85);
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.5);
}

/* 5. ข้อความตรงกลาง */
.dg-content-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.dg-icon-badge {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.dg-label-text {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f0a00; /* สีตัวหนังสือดำเข้มอมน้ำตาล */
  text-shadow: 0 1px 0px rgba(255, 235, 130, 0.5);
}

/* 6. แสง Flare วิ่งกวาดผ่านเบาๆ */
.dg-flare-sweep {
  position: absolute;
  top: -50%;
  left: -150%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  z-index: 1;
  transition: left 0.6s ease;
}

/* ==========================================
   HOVER & ACTIVE (สว่างขึ้นเวลานำเมาส์ไปชี้)
   ========================================== */

.dg-btn-wrapper:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 0 18px rgba(255, 210, 80, 0.75),
              0 0 30px rgba(255, 170, 0, 0.4) !important;
}

.dg-btn-wrapper:hover .dg-flare-sweep {
  left: 150%;
}

.dg-btn-wrapper:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}
	:root {
  --ro-purple-dark: #0f071b;
  --ro-purple-main: #240d47;
  --ro-purple-light: #5b21b6;
  --ro-gold-bright: #fbbf24;
  --ro-gold-dark: #b45309;
  --ro-gold-light: #fef08a;
}

/* BackDrop */
.ro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ro-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Window */
.ro-modal-window {
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  background: radial-gradient(circle at top, var(--ro-purple-main), var(--ro-purple-dark));
  border: 2px solid var(--ro-gold-bright);
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(180, 83, 9, 0.4), inset 0 0 15px rgba(91, 33, 182, 0.5);
  position: relative;
  overflow-y: auto;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.ro-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--ro-gold-bright);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}
.ro-modal-close:hover { transform: scale(1.2); }

/* Header */
.ro-modal-header {
  text-align: center;
  padding: 20px 15px 10px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}
.ro-modal-header h2 {
  font-family: 'Cinzel', serif, sans-serif;
  color: var(--ro-gold-bright);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  margin: 0;
}
.ro-modal-header p {
  font-size: 0.75rem;
  color: var(--ro-gold-light);
  opacity: 0.7;
  margin-top: 4px;
}

/* Body Layout */
.ro-modal-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

/* Class 1 Buttons (Left Menu) */
.class-1-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c1-btn {
  background: rgba(36, 13, 71, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #e2d5f8;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: all 0.25s;
}

.c1-btn:hover, .c1-btn.active {
  background: linear-gradient(90deg, var(--ro-purple-light), var(--ro-purple-main));
  border-color: var(--ro-gold-bright);
  color: var(--ro-gold-bright);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
  transform: translateX(4px);
}

/* Class 2 Toggle */
.class-2-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.c2-btn {
  flex: 1;
  padding: 8px;
  background: rgba(15, 7, 27, 0.8);
  border: 1px solid var(--ro-purple-light);
  color: #aaa;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.c2-btn.active {
  background: var(--ro-gold-dark);
  border-color: var(--ro-gold-bright);
  color: #fff;
  box-shadow: 0 0 10px rgba(180, 83, 9, 0.6);
}

/* Display Card */
.class-display-card {
  background: rgba(15, 7, 27, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 15px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 15px;
  align-items: center;
}

.char-preview-box {
  text-align: center;
  position: relative;
}

.char-display-gif {
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

.char-name {
  color: var(--ro-gold-bright);
  font-size: 1.2rem;
  margin-top: 8px;
}

.char-branch-tag {
  font-size: 0.7rem;
  background: var(--ro-purple-light);
  padding: 2px 8px;
  border-radius: 10px;
}

.char-description {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Stats */
.stat-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-row {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--ro-gold-light);
}

.stat-row span { width: 35px; }

.bar-frame {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ro-purple-light), var(--ro-gold-bright));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ro-modal-body {
    grid-template-columns: 1fr;
  }
  .class-1-selector {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .c1-btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .class-display-card {
    grid-template-columns: 1fr;
  }
}
	:root {
  /* ⚙️ ปรับเวลาการแสดงผล (เช่น 2s, 2.5s) */
  --aura-duration: 2.2s; 
}

#gold-aura-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(10, 5, 18, 0.6); /* พื้นหลังมืดจางๆ เพื่อขับแสงสีทอง */
  backdrop-filter: blur(8px);       /* เพิ่มความพรีเมียม เบลอหน้าเว็บด้านหลังนุ่มๆ */
  animation: overlayFade var(--aura-duration) ease-out forwards;
}

/* รัศมีดวงแสงวงกลมทรงพลัง แบบไร้ขอบ */
.gold-aura-sphere {
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  
  /* การไล่ระดับแสงแบบไม่มีขอบ (Center-to-Edge Radial Soft Edge) */
  background: radial-gradient(
    circle, 
    rgba(254, 240, 138, 0.85) 0%,   /* ศูนย์กลางสีทองแชมเปญนุ่มนวล */
    rgba(245, 158, 11, 0.45) 35%,   /* สีทองอำพันจางๆ */
    rgba(180, 83, 9, 0.15) 60%,     /* สีทองอบอุ่นบางเบา */
    rgba(0, 0, 0, 0) 70%            /* กลืนหายไปกับพื้นหลังแบบไร้ขอบ 100% */
  );
  
  /* ใช้ Filter เบลอซ้ำอีกชั้น เพื่อความฟุ้งละมุนสูงสุด */
  filter: blur(30px);
  animation: spherePulse var(--aura-duration) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Keyframes: จางหายของฉากหลัง */
@keyframes overlayFade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* Keyframes: การขยายและฟุ้งกระจายของดวงแสงวงกลม */
@keyframes spherePulse {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  35% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
    filter: blur(60px);
  }
}
	/* ส่วนปรับแต่งโลโก้หลัก */
.rpg-logo {
    display: inline-block;
    text-decoration: none;
    /* สามารถปรับขนาดความกว้างของโลโก้ได้ตรงนี้ */
    width: 120px; 
    height: auto;
    transition: transform 0.4s ease;
}

/* ตั้งค่ารูปภาพภายในโลโก้ */
.logo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    
    /* สภาวะปกติ: แสงเรืองแสงอ่อนๆ */
    filter: drop-shadow(0 0 5px rgba(255, 179, 0, 0.3));
    
    /* กำหนดจังหวะการเปลี่ยนเอฟเฟกต์ให้นุ่มนวล */
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* ==========================================
   เอฟเฟกต์เมื่อนำเมาส์ไปวาง (HOVER EFFECT)
   ========================================== */
.rpg-logo:hover .logo-img {
    /* เอฟเฟกต์แสงออร่าสีทองเปล่งประกายซ้อน 3 ชั้น */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8))  /* ทองสว่าง */
            drop-shadow(0 0 20px rgba(255, 179, 0, 0.6))  /* ทองส้ม */
            drop-shadow(0 0 30px rgba(255, 143, 0, 0.4)); /* แสงออร่ารอบนอก */
    
    /* ขยายขนาดโลโก้ขึ้นเล็กน้อยเพื่อให้ดูมีมิติ (ปรับออกได้ถ้าไม่ต้องการ) */
    transform: scale(1.05);
}
	/* ==========================================
     ⚙️ คอนฟิกหลัก (Clean Gold Palette)
     ========================================== */
  .rpg-clean-divider {
    --gold-bright: #ffe89e;
    --gold-main: #d4af37;
    --gold-glass: rgba(212, 175, 55, 0.25);
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 45px 0;
    position: relative;
    user-select: none;
  }

  /* 1. เส้นคั่นใสแบบโปร่งแสง (Glassmorphism & Light Beam) */
  .rpg-line {
    flex-grow: 1;
    height: 1px;
    position: relative;
    overflow: hidden;
  }

  .rpg-line.left {
    background: linear-gradient(90deg, transparent 0%, var(--gold-glass) 50%, var(--gold-main) 100%);
  }

  .rpg-line.right {
    background: linear-gradient(90deg, var(--gold-main) 0%, var(--gold-glass) 50%, transparent 100%);
  }

  /* เอฟเฟกต์ลำแสงวิ่งผ่านเส้นคั่น (Shimmering Light) */
  .rpg-line::after {
    content: '';
    position: absolute;
    top: -1px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    filter: blur(1px);
    opacity: 0.8;
  }

  .rpg-line.left::after {
    animation: sweep-right 4s infinite ease-in-out;
  }

  .rpg-line.right::after {
    animation: sweep-left 4s infinite ease-in-out;
  }

  /* 2. ศูนย์กลางวงแหวนเวทมนตร์ (Center Magic Node) */
  .rpg-center-node {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* วงแหวนแปดเหลี่ยมโปร่งใสชั้นนอก */
  .magic-ring.ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--gold-main);
    border-radius: 50%;
    opacity: 0.5;
    animation: spin-clockwise 12s linear infinite;
  }

  /* วงแหวนสี่เหลี่ยมด้านขนานชั้นใน */
  .magic-ring.ring-inner {
    position: absolute;
    width: 65%;
    height: 65%;
    border: 1px solid var(--gold-bright);
    transform: rotate(45deg);
    box-shadow: 0 0 8px var(--gold-glass);
    animation: spin-counter 8s linear infinite;
  }

  /* ผลึกคริสตัลตรงกลาง */
  .crystal-core {
    width: 8px;
    height: 8px;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 18px var(--gold-main);
    transform: rotate(45deg);
    z-index: 2;
    animation: crystal-pulse 2s infinite alternate ease-in-out;
  }

  /* ประกายประกายดาวฟุ้งนุ่มนวล */
  .star-light {
    position: absolute;
    color: var(--gold-bright);
    font-size: 10px;
    text-shadow: 0 0 6px var(--gold-main);
    z-index: 3;
    pointer-events: none;
    animation: star-sparkle 2.5s infinite ease-in-out;
  }

  /* 🎬 Animations */
  @keyframes sweep-right {
    0% { left: -10%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }

  @keyframes sweep-left {
    0% { right: -10%; opacity: 0; }
    50% { opacity: 1; }
    100% { right: 100%; opacity: 0; }
  }

  @keyframes spin-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @keyframes spin-counter {
    from { transform: rotate(45deg); }
    to { transform: rotate(-315deg); }
  }

  @keyframes crystal-pulse {
    0% { transform: scale(0.8) rotate(45deg); opacity: 0.7; }
    100% { transform: scale(1.2) rotate(45deg); opacity: 1; box-shadow: 0 0 14px #ffffff, 0 0 25px var(--gold-main); }
  }

  @keyframes star-sparkle {
    0%, 100% { transform: scale(0.5); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 1; }
  }
	.fRPG-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
    position: relative;
  }

  /* เส้นคั่นไล่เฉดสีทอง */
  .fRPG-line {
    flex-grow: 1;
    height: 2px;
    border: none;
  }

  .fRPG-line.left {
    background: linear-gradient(90deg, transparent, #b8860b, #ffd700);
  }

  .fRPG-line.right {
    background: linear-gradient(90deg, #ffd700, #b8860b, transparent);
  }

  /* คอนเทนเนอร์ตรงกลาง */
  .fRPG-gem-container {
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ผลึกเพชรตรงกลาง */
  .fRPG-gem {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #fff2a3, #ffd700, #996515);
    transform: rotate(45deg);
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffae00;
    border: 1px solid #ffffff;
    z-index: 2;
  }

  /* แสงฟุ้งกระจายหลังผลึก */
  .fRPG-glow {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ffd700;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.6;
    animation: fRPG-pulse 2s infinite alternate ease-in-out;
  }

  /* เอฟเฟกต์ละอองเวทมนตร์ลอยรอบๆ */
  .fRPG-sparkle {
    position: absolute;
    color: #fff8dc;
    font-size: 10px;
    text-shadow: 0 0 5px #ffd700;
    pointer-events: none;
  }

  .sp1 {
    animation: fRPG-orbit1 3s infinite linear;
  }

  .sp2 {
    animation: fRPG-orbit2 3s infinite linear 1.5s;
  }

  /* Keyframes แอนิเมชัน */
  @keyframes fRPG-pulse {
    0% { transform: scale(0.8); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 0.9; }
  }

  @keyframes fRPG-orbit1 {
    0% { transform: rotate(0deg) translate(-16px) rotate(0deg) scale(0.6); opacity: 0.2; }
    50% { opacity: 1; transform: rotate(180deg) translate(-16px) rotate(-180deg) scale(1); }
    100% { transform: rotate(360deg) translate(-16px) rotate(-360deg) scale(0.6); opacity: 0.2; }
  }

  @keyframes fRPG-orbit2 {
    0% { transform: rotate(360deg) translate(16px) rotate(-360deg) scale(0.6); opacity: 0.2; }
    50% { opacity: 1; transform: rotate(180deg) translate(16px) rotate(-180deg) scale(1); }
    100% { transform: rotate(0deg) translate(16px) rotate(0deg) scale(0.6); opacity: 0.2; }
  }
:root {
    --gold-light: #fff8d6;
    --gold-main: #f5cf66;
    --gold-dark: #a3751a;
    --purple-deep: #0e051b;
    --purple-main: #250d44;
    --purple-bright: #8a2be2;
    --purple-glow: #bd3bef;
    
    /* Gradient Metallic Gold */
    --gold-metallic: linear-gradient(135deg, #fff8d6 0%, #f5cf66 30%, #a3751a 70%, #ffd97d 100%);
    --purple-card-bg: radial-gradient(circle at 50% 0%, #32115e 0%, #15062b 70%, #0a0216 100%);
  }

  /* POPUP CONTAINER (PC: CENTER-RIGHT) */
  .royal-rpg-container {
    position: fixed;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    z-index: 99999;
    font-family: 'Kanit', sans-serif;
    user-select: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  /* ROYAL CARD FRAME */
  .royal-card {
    position: relative;
    width: 220px;
    background: var(--purple-card-bg);
    padding: 20px 14px 16px 14px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95),
                0 0 25px rgba(138, 43, 226, 0.4),
                inset 0 0 15px rgba(189, 59, 239, 0.2);
    /* Metallic Border Structure */
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  /* Gold Metallic Frame Line */
  .royal-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: var(--gold-metallic);
    z-index: -1;
    box-shadow: 0 0 12px rgba(245, 207, 102, 0.4);
  }

  /* Inner Gold Filigree Outline */
  .royal-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(245, 207, 102, 0.3);
    border-radius: 5px;
    pointer-events: none;
  }

/* ซ่อน Scrollbar สำหรับ Chrome, Safari, Edge, Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ซ่อน Scrollbar สำหรับ Firefox และการตั้งค่ามาตรฐาน */
html, body {
  -ms-overflow-style: none;  /* IE และ Edge รุ่นเก่า */
  scrollbar-width: none;  /* Firefox */
}
  .crest-tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
  .crest-tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
  .crest-bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
  .crest-br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

  /* HEADER */
  .royal-header {
    text-align: center;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(245, 207, 102, 0.6));
    padding-bottom: 8px;
    margin-bottom: 12px;
    position: relative;
  }

  .royal-header-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
  }

  .royal-header-line span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
  }

  .royal-header-line i {
    font-size: 8px;
    color: var(--gold-main);
  }

  /* MENU NAV LIST */
  .royal-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* ITEM BUTTON */
  .royal-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: linear-gradient(90deg, rgba(37, 13, 68, 0.8) 0%, rgba(14, 5, 27, 0.9) 100%);
    border: 1px solid var(--gold-dark);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
  }

  /* Icon Crystal Box */
  .royal-icon-wrap {
    position: relative;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, var(--purple-bright) 0%, var(--purple-deep) 100%);
    border: 1px solid var(--gold-main);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gold-light);
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
    transition: all 0.3s ease;
  }

  .royal-label {
    font-size: 13px;
    font-weight: 400;
    color: #f0e3ff;
    transition: all 0.3s ease;
  }

  /* MODERN HOVER & SHADOW EFFECTS */
  .royal-nav-item:hover {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.4) 0%, rgba(37, 13, 68, 0.9) 100%);
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(189, 59, 239, 0.5), inset 0 0 10px rgba(245, 207, 102, 0.2);
    transform: translateX(-4px) scale(1.02);
  }

  .royal-nav-item:hover .royal-icon-wrap {
    background: var(--gold-metallic);
    color: var(--purple-deep);
    transform: rotate(360deg);
    box-shadow: 0 0 12px var(--gold-light);
  }

  .royal-nav-item:hover .royal-label {
    color: #fff;
    text-shadow: 0 0 8px var(--gold-main);
    font-weight: 600;
  }

  /* Modern Light Wave Effect */
  .royal-nav-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 248, 214, 0.5), transparent);
    transform: rotate(25deg);
  }

  .royal-nav-item:hover::after {
    left: 180%;
    transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* TOGGLE ORB BUTTON (PC) */
  .royal-toggle-btn {
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 56px;
    background: var(--purple-deep);
    border: 2px solid var(--gold-main);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.8), -2px 0 8px rgba(189, 59, 239, 0.4);
    transition: all 0.3s ease;
  }

  .royal-toggle-btn:hover {
    background: var(--purple-bright);
    color: #fff;
    box-shadow: -5px 0 20px var(--purple-glow);
  }

  /* FOLDED STATE (PC) */
  .royal-rpg-container.is-folded {
    transform: translateY(-50%) translateX(235px);
  }

  /* ==========================================
     MOBILE RESPONSIVE (BOTTOM NAV BAR)
     ========================================== */
  @media (max-width: 768px) {
    .royal-rpg-container {
      top: auto;
      bottom: 0;
      right: 0;
      left: 0;
      transform: translateY(0);
      width: 100%;
    }

    .royal-card {
      width: 100%;
      border-radius: 16px 16px 0 0;
      border-bottom: none;
      padding: 10px 8px 16px 8px;
      background: rgba(10, 2, 22, 0.98);
    }

    .royal-card::before {
      border-radius: 16px 16px 0 0;
    }

    .royal-header {
      display: none;
    }

    .royal-nav {
      flex-direction: row;
      justify-content: space-around;
      gap: 4px;
    }

    .royal-nav-item {
      flex-direction: column;
      padding: 8px 2px;
      flex: 1;
      justify-content: center;
      gap: 4px;
      text-align: center;
    }

    .royal-nav-item:hover {
      transform: translateY(-3px);
    }

    .royal-icon-wrap {
      width: 26px;
      height: 26px;
      font-size: 11px;
    }

    .royal-label {
      font-size: 10px;
    }

    /* Toggle Handle - Mobile Top Center */
    .royal-toggle-btn {
      left: 50%;
      top: -22px;
      transform: translateX(-50%);
      width: 54px;
      height: 22px;
      border-radius: 10px 10px 0 0;
      border: 2px solid var(--gold-main);
      border-bottom: none;
    }

    .royal-toggle-btn i {
      transform: rotate(90deg);
      transition: transform 0.3s ease;
    }

    /* FOLDED STATE (MOBILE) */
    .royal-rpg-container.is-folded {
      transform: translateY(calc(100% - 10px));
    }

    .royal-rpg-container.is-folded .royal-toggle-btn i {
      transform: rotate(-90deg);
    }
  }
	* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #0d0614; /* สีพื้นหลังเว็บ */
            color: #ffffff;
            font-family: sans-serif;
            min-height: 100vh;
        }

        /* ตั้งค่า Canvas ให้อยู่ชั้นล่างสุด ไม่บังส่วนอื่น */
        #bgCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1; /* ทำให้อยู่หลังสุดเสมอ */
            pointer-events: none; /* เพื่อให้คลิกผ่านไปยัง Element ด้านหลังได้ */
        }

        /* ตัวอย่าง Demo เนื้อหาบนหน้าเว็บ */
        .content {
            max-width: 800px;
            margin: 100px auto;
            padding: 40px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #ffd700;
        }
	:root {
            --purple-deep: #120924;
            --purple-main: #2a144e;
            --purple-light: #4c2882;
            --gold-bright: #ffd700;
            --gold-main: #d4af37;
            --gold-dark: #aa7c11;
            --text-light: #f5e9ff;
            --border-gold: linear-gradient(135deg, #ffd700, #aa7c11, #ffd700);
        }

        body {
            background-color: #0b0514;
            color: var(--text-light);
            font-family: 'Prompt', sans-serif;
            margin: 0;
            min-height: 200vh; /* สร้างพื้นที่ให้ทดสอบ Scroll Bar */
            background-image: 
                radial-gradient(circle at 50% 20%, rgba(76, 40, 130, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(42, 20, 78, 0.4) 0%, transparent 50%);
        }

        /* Container หลัก ติดด้านซ้ายกลางหน้าจอเสมอ */
        .rpg-widget-container {
            position: fixed;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            z-index: 9999;
            display: flex;
            align-items: center;
            font-family: 'Prompt', sans-serif;
        }

        /* ปุ่มไอคอนสไตล์แฟนตาซี (ปุ่มเรียก Card) */
        .rpg-toggle-btn {
            width: 50px;
            height: 55px;
            background: linear-gradient(135deg, var(--purple-light), var(--purple-deep));
            border: 2px solid var(--gold-main);
            border-left: none;
            border-radius: 0 12px 12px 0;
            color: var(--gold-bright);
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 4px 0 10px rgba(0,0,0,0.5);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            z-index: 2;
        }

        .rpg-toggle-btn:hover {
            width: 58px;
            color: #fff;
            box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 6px 0 15px rgba(0,0,0,0.7);
            background: linear-gradient(135deg, #6332aa, var(--purple-main));
        }

        /* เอฟเฟกต์ออร่าหมุนรอบปุ่ม */
        .rpg-toggle-btn::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 0 12px 12px 0;
            box-shadow: inset 0 0 8px var(--gold-bright);
            opacity: 0.5;
            animation: pulse-glow 2s infinite alternate;
        }

        /* ตัว Card ข้อมูล */
        .rpg-card {
            width: 320px;
            background: rgba(18, 9, 36, 0.85);
            backdrop-filter: blur(10px);
            border: 2px solid transparent;
            border-image: linear-gradient(180deg, var(--gold-bright), var(--purple-light), var(--gold-dark)) 1;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(76, 40, 130, 0.5);
            padding: 20px;
            box-sizing: border-box;
            position: relative;
            margin-left: -340px; /* ซ่อนไว้ทางซ้าย */
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            pointer-events: none;
            border-radius: 0 16px 16px 0;
            clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
        }

        /* สถานะเมื่อเปิด Card */
        .rpg-widget-container.active .rpg-card {
            margin-left: 0;
            opacity: 1;
            pointer-events: auto;
        }

        .rpg-widget-container.active .rpg-toggle-btn {
            border-radius: 0;
            border-right: none;
        }

        /* หัวข้อ Card สไตล์แฟนตาซี */
        .card-header {
            text-align: center;
            border-bottom: 2px solid var(--gold-dark);
            padding-bottom: 10px;
            margin-bottom: 15px;
            position: relative;
        }

        .card-title {
            font-family: 'Cinzel', serif;
            font-size: 20px;
            font-weight: 800;
            color: var(--gold-bright);
            text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
            letter-spacing: 1px;
            margin: 0;
        }

        .card-subtitle {
            font-size: 11px;
            color: #cbb4e6;
            margin-top: 2px;
        }

        /* รายการอัตราคูณ (Rates List) */
        .rate-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .rate-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            margin-bottom: 8px;
            background: rgba(42, 20, 78, 0.4);
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .rate-item:hover {
            background: rgba(76, 40, 130, 0.6);
            border-color: var(--gold-bright);
            transform: translateX(4px);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        }

        .rate-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-light);
        }

        .rate-label i {
            color: var(--gold-bright);
            font-size: 14px;
            width: 16px;
            text-align: center;
        }

        .rate-value {
            font-family: 'Cinzel', serif;
            font-weight: 800;
            font-size: 14px;
            color: #00ffcc;
            text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
        }

        .rate-value.gold {
            color: var(--gold-bright);
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        }

        /* ส่วนข่าวสาร/รายละเอียดเพิ่มเติม */
        .server-info {
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px dashed rgba(212, 175, 55, 0.3);
            font-size: 12px;
        }

        .info-status {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #bda2e6;
        }

        .status-badge {
            background: rgba(0, 255, 128, 0.15);
            color: #00ff80;
            border: 1px solid #00ff80;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
            box-shadow: 0 0 8px rgba(0, 255, 128, 0.3);
        }

        /* ปุ่มปิด Card ด้านใน */
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            color: rgba(255, 215, 0, 0.5);
            font-size: 14px;
            cursor: pointer;
            transition: 0.2s;
        }

        .close-btn:hover {
            color: var(--gold-bright);
            transform: scale(1.2);
        }

        /* Animation Keyframes */
        @keyframes pulse-glow {
            0% { opacity: 0.3; }
            100% { opacity: 0.8; box-shadow: inset 0 0 12px var(--gold-bright); }
        }
	/* Container styling */
.rpg-slider-section {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 480px;
  
  /* เพิ่ม margin-bottom เว้นระยะห่างด้านล่างภายนอกกรอบ */
  margin: 0 auto 40px auto; /* 40px คือระยะเว้นด้านล่าง */
  
  overflow: hidden;
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.8);
  font-family: 'Georgia', serif;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide elements */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slow Zoom Effect (Ken Burns) */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 10s ease;
}

.slide.active .bg-image {
  transform: scale(1.15);
}

/* Vignette Dark Overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 4, 38, 0.95) 10%, rgba(18, 4, 38, 0.4) 50%, transparent 100%);
}

/* Content Box */
.slide-caption {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 650px;
  transform: translateY(20px);
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
}

.slide.active .slide-caption {
  transform: translateY(0);
  opacity: 1;
}

/* RPG Badge */
.rpg-badge {
  display: inline-block;
  background: linear-gradient(45deg, #4c1d95, #7e22ce);
  color: #fef08a;
  border: 1px solid #facc15;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 4px;
  text-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
  margin-bottom: 12px;
}

/* Title & Description */
.rpg-title {
  color: #fef08a;
  font-size: 2.2rem;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px #000, 0 0 10px rgba(234, 179, 8, 0.6);
  letter-spacing: 1px;
}

.rpg-desc {
  color: #e9d5ff;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.rpg-btn {
  position: relative;
  display: inline-block;
  
  /* ปรับระยะขอบและจำกัดขนาดปุ่ม */
  padding: 10px 20px;       /* บน-ล่าง 10px, ซ้าย-ขวา 20px */
  max-width: 180px;         /* จำกัดความยาวปุ่มไม่ให้เกิน 180px */
  width: 100%;
  text-align: center;
  
  background: linear-gradient(180deg, #d4af37 0%, #85581A 100%);
  color: #1a0933;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #fff099;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  overflow: hidden;
}

.rpg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.8);
  color: #000;
}

/* Slide Nav Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 9, 51, 0.7);
  color: #d4af37;
  border: 2px solid #d4af37;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slide-btn:hover {
  background: #d4af37;
  color: #1a0933;
  box-shadow: 0 0 15px #d4af37;
}

.slide-btn.prev { left: 20px; }
.slide-btn.next { right: 20px; }

/* Indicators / Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #d4af37;
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active, .dot:hover {
  background: #facc15;
  box-shadow: 0 0 10px #facc15;
  transform: rotate(45deg) scale(1.2);
}
	/* =========================================
   LARGE BANNER CTA SECTION
   ========================================= */
.banner-cta-section {
  width: 100%;
  margin-top: 32px;
}

.rpg-banner-card {
  position: relative;
  display: block;
  width: 100%;
  height: 140px; /* ปรับความสูงของแบนเนอร์ตามต้องการ */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

/* พื้นหลังรูปภาพพร้อมเอฟเฟกต์ Zoom บน Hover */
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

/* เงาดำทับรูปภาพให้อ่านตัวหนังสือชัดขึ้น */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 3, 38, 0.85) 0%, rgba(18, 3, 38, 0.3) 50%, rgba(18, 3, 38, 0.85) 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* กรอบขอบทองประดับมุมสไตล์ RPG Fantasy */
.banner-gold-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

/* เนื้อหาและข้อความ */
.banner-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 16px;
}

.discord-icon {
  width: 38px;
  height: 38px;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px var(--glow-gold));
  transition: transform 0.3s ease;
}

.banner-text {
  color: var(--gold-light);
  font-size: 1.4rem;
  font-weight: bold;
  font-family: 'Cinzel', serif, sans-serif;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 1px;
}

.banner-arrow {
  color: var(--gold-primary);
  font-size: 2rem;
  margin-left: auto; /* ดันลูกศรไปขวาสุด */
  transition: transform 0.3s ease;
  text-shadow: 0 0 8px var(--glow-gold);
}

/* เอฟเฟกต์แสงวิ่งสะท้อนผ่าน (Shine Effect) */
.shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 3;
  pointer-events: none;
}

/* =========================================
   HOVER & ACTIVE EFFECTS
   ========================================= */
.rpg-banner-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8),
              0 0 25px var(--glow-gold);
}

.rpg-banner-card:hover .banner-bg {
  transform: scale(1.08); /* รูปซูมขึ้น */
}

.rpg-banner-card:hover .banner-gold-frame {
  border-color: var(--gold-primary);
  box-shadow: inset 0 0 20px var(--glow-gold),
              0 0 15px var(--gold-primary);
}

.rpg-banner-card:hover .discord-icon {
  transform: scale(1.2) rotate(-8deg);
}

.rpg-banner-card:hover .banner-arrow {
  transform: translateX(10px);
}

/* เรียกเล่นแสงวิ่งเมื่อ Hover */
.rpg-banner-card:hover .shine-effect {
  animation: shineSweep 0.8s ease-in-out;
}

@keyframes shineSweep {
  100% {
    left: 150%;
  }
}

/* =========================================
   RESPONSIVE DESIGN (Mobile 100%)
   ========================================= */
@media (max-width: 768px) {
  .rpg-banner-card {
    height: 100px; /* ลดความสูงบนมือถือ */
  }

  .banner-content {
    padding: 0 20px;
    gap: 10px;
  }

  .discord-icon {
    width: 28px;
    height: 28px;
  }

  .banner-text {
    font-size: 1rem; /* ย่อขนาดฟอนต์บนหน้าจอเล็ก */
  }

  .banner-arrow {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .rpg-banner-card {
    height: 85px;
  }

  .banner-text {
    font-size: 0.9rem;
  }
}
	/* =========================================
   GAME GUIDE SECTION STYLES
   ========================================= */
.game-guide-section {
  margin-top: 32px;
  width: 100%;
}

.section-title {
  color: var(--gold-primary);
  font-family: 'Cinzel', serif, sans-serif;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--glow-gold);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Base Card Style */
.guide-card {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

/* Gradient Overlay เพิ่มความเข้มให้อ่านตัวหนังสือชัดขึ้น */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 3, 38, 0.85) 0%, rgba(18, 3, 38, 0.2) 60%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Text Content */
.card-content {
  position: relative;
  z-index: 3;
}

.card-title {
  color: var(--gold-light);
  font-size: 1.3rem;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

.card-title .arrow {
  color: var(--gold-primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.card-desc {
  color: #e0d5f5;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
  max-width: 85%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* GIF Character Container & Hover Effects */
.character-wrapper {
  position: absolute;
  bottom: -10px;
  right: 10px;
  width: 100px;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.char-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* เงาสายเวทมนตร์ใต้ตัวละคร */
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.7));
}

/* Gold Border Glow Animation (แสดงเมื่อ Hover) */
.gold-border-glow {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--gold-primary);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s ease;
}

/* =========================================
   HOVER EFFECTS (ลูกเล่นและเอฟเฟกต์ทันสมัย)
   ========================================= */
.guide-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8),
              0 0 20px var(--glow-gold);
}

.guide-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(18, 3, 38, 0.7) 0%, rgba(18, 3, 38, 0.1) 60%, rgba(0, 0, 0, 0.6) 100%);
}

.guide-card:hover .card-title {
  color: #ffffff;
  text-shadow: 0 0 8px var(--gold-primary);
}

.guide-card:hover .card-title .arrow {
  transform: translateX(6px);
}

/* เอฟเฟกต์ GIF ขยายใหญ่และลอยขึ้น */
.guide-card:hover .character-wrapper {
  transform: scale(1.15) translateY(-8px);
  filter: drop-shadow(0 8px 15px var(--glow-gold));
}

.guide-card:hover .gold-border-glow {
  opacity: 1;
  animation: rotateGlow 6s linear infinite;
}

/* =========================================
   RESPONSIVE (Mobile 100%)
   ========================================= */
@media (max-width: 992px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .guide-grid {
    grid-template-columns: 1fr; /* ปรับเป็น 1 คอลัมน์บนมือถือ */
  }

  .guide-card {
    height: 180px;
  }

  .character-wrapper {
    width: 110px;
    height: 110px;
  }
}
	:root {
  --bg-purple-dark: #120326;
  --bg-purple-card: rgba(30, 10, 58, 0.75);
  --gold-primary: #ffd700;
  --gold-light: #fff2a3;
  --gold-dark: #b8860b;
  --glow-purple: rgba(155, 77, 224, 0.5);
  --glow-gold: rgba(255, 215, 0, 0.6);
}

/* =========================================
   MAIN CARD CONTAINER (โปร่งใส + ขอบเส้นตรงสีทอง)
   ========================================= */
.rpg-main-card {
  max-width: 1200px;
  width: 92%;
  margin: 40px auto;
  padding: 24px;
  background: var(--bg-purple-card);
  backdrop-filter: blur(0px); /* เอฟเฟกต์กระจกเบลอ */
  border-radius: 16px; /* ขอบโค้งมน */
  
  /* เปลี่ยนเป็นเส้นตรง solid สีทอง */
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8),
              inset 0 0 15px rgba(255, 215, 0, 0.15);
  position: relative;
  overflow: hidden;
  animation: goldPulse 4s infinite alternate;
}

/* เอฟเฟกต์ไฟวิ่งที่ขอบเส้นตรงสีทอง */
@keyframes goldPulse {
  0% { border-color: var(--gold-dark); box-shadow: 0 0 15px var(--glow-purple); }
  100% { border-color: var(--gold-light); box-shadow: 0 0 25px var(--glow-gold); }
}

/* =========================================
   SLIDER SECTION (ส่วนบน 100%)
   ========================================= */
.slider-section {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-dark);
  margin-bottom: 24px;
}

.slider-wrapper .slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(10, 2, 22, 0.9));
  color: #fff;
}

.badge {
  background: var(--gold-primary);
  color: #000;
  padding: 3px 8px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.8rem;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 3, 38, 0.7);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: 0.3s;
}
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-btn:hover { background: var(--gold-primary); color: #000; }

/* =========================================
   GRID LAYOUT (ส่วนล่าง ซ้าย-ขวา)
   ========================================= */
.content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

/* กรอบมาตรฐานสไตล์ RPG */
.rpg-box {
  background: rgba(20, 5, 40, 0.6);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  padding: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.box-title {
  color: var(--gold-primary);
  font-family: 'Cinzel', serif, sans-serif;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--gold-dark);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-shadow: 0 0 8px var(--glow-gold);
}

/* =========================================
   LEFT PANEL (Login & Buttons)
   ========================================= */
.left-panel { display: flex; flex-direction: column; gap: 20px; }

.input-group input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--glow-gold);
}

/* ปุ่มกดสไตล์ RPG ทองพรีเมียม */
.rpg-btn {
  width: 100%;
  padding: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: #120326;
  text-transform: uppercase;
}

.btn-gold-glow {
  background: linear-gradient(180deg, #4a154b, #2a085c);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.rpg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--glow-gold);
  filter: brightness(1.2);
}

.auth-links { text-align: center; font-size: 0.85rem; }
.auth-links a { color: #aaa; text-decoration: none; }
.auth-links a.link-gold { color: var(--gold-primary); }

/* =========================================
   RIGHT PANEL (News & Updates)
   ========================================= */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-dark);
  margin-bottom: 16px;
}

.news-tabs { display: flex; list-style: none; gap: 10px; margin: 0; padding: 0; }
.news-tabs .tab {
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.9rem;
}
.news-tabs .tab.active, .news-tabs .tab:hover {
  color: var(--gold-primary);
  border-bottom: 2px solid var(--gold-primary);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #ddd;
  transition: 0.2s;
}

.news-item:hover {
  background: rgba(255, 215, 0, 0.05);
  padding-left: 8px;
  color: var(--gold-primary);
}

.news-cat {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}
.news-cat.event { background: #9b4de0; color: #fff; }
.news-cat.update { background: #00bfff; color: #fff; }
.news-cat.notice { background: #ff4500; color: #fff; }

.news-title { flex: 1; margin: 0; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-date { font-size: 0.8rem; color: #777; }
.view-more { display: block; text-align: right; color: var(--gold-primary); text-decoration: none; margin-top: 15px; font-size: 0.85rem; }

/* =========================================
   RESPONSIVE DESIGN (100% Mobile Friendly)
   ========================================= */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr; /* ปรับเป็นคอลัมน์เดียวบนมือถือ/แท็บเล็ต */
  }
  
  .slider-wrapper .slide img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .rpg-main-card {
    width: 95%;
    padding: 12px;
    margin: 15px auto;
  }
  
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
	@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Sarabun:wght@400;600&display=swap');

:root {
  --purple-dark: #120924;
  --purple-main: #2a124e;
  --purple-accent: #4a1c82;
  --gold-bright: #ffd700;
  --gold-main: #d4af37;
  --gold-dark: #aa7c11;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --text-light: #f5e6cc;
}

/* Base Styles & Sticky Animation Setup */
.rpg-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(180deg, var(--purple-dark) 0%, rgba(18, 9, 36, 0.95) 100%);
  border-bottom: 2px solid var(--gold-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-glow);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0.8rem 0;
  
  /* Scroll Animation Trigger using Scroll-driven Animations */
  animation: shrink-nav linear duration;
  animation-timeline: scroll(root);
  animation-range: 0px 150px;
}

/* Keyframes สำหรับการหดตัวและเปลี่ยนสีเมื่อ Scroll */
@keyframes shrink-nav {
  to {
    padding: 0.3rem 0;
    background: rgba(18, 9, 36, 0.98);
    border-bottom: 2px solid var(--gold-bright);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 215, 0, 0.6);
  }
}

.rpg-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styling */
.rpg-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 0 8px var(--gold-glow), 2px 2px 4px #000;
  transition: transform 0.3s ease;
}

.rpg-logo:hover {
  transform: scale(1.05);
}

/* Nav Links */
.rpg-nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.rpg-nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-family: 'Sarabun', 'Cinzel', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.rpg-nav-links a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px var(--gold-glow);
}

/* Fantasy Hover Effect Line */
.rpg-nav-links a:not(.rpg-btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.rpg-nav-links a:not(.rpg-btn):hover::after {
  width: 100%;
}

/* Fantasy RPG Button */
.rpg-btn {
  background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%) !important;
  color: var(--purple-dark) !important;
  border: 1px solid var(--gold-bright);
  font-weight: 700 !important;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--gold-glow), inset 0 0 5px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease !important;
}

.rpg-btn:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-main) 100%) !important;
  box-shadow: 0 0 20px var(--gold-bright), inset 0 0 8px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Mobile Toggle Elements */
.rpg-menu-toggle {
  display: none;
}

.rpg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.rpg-hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--gold-main);
  box-shadow: 0 0 5px var(--gold-glow);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Mobile Rules */
@media screen and (max-width: 768px) {
  .rpg-hamburger {
    display: flex;
  }

  .rpg-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--purple-dark);
    border-bottom: 2px solid var(--gold-main);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1rem;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9);
  }

  /* Hamburger Toggle State */
  .rpg-menu-toggle:checked ~ .rpg-nav-links {
    clip-path: circle(150% at 100% 0);
  }

  .rpg-menu-toggle:checked ~ .rpg-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .rpg-menu-toggle:checked ~ .rpg-hamburger span:nth-child(2) {
    opacity: 0;
  }

  .rpg-menu-toggle:checked ~ .rpg-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}
	@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Kanit:wght@400;600&display=swap');

:root {
    --gold-bright: #ffe875;
    --gold-main: #ffd700;
    --gold-dark: #997a00;
    --purple-bg: rgba(22, 10, 38, 0.85);
    --purple-glow: rgba(138, 43, 226, 0.5);
}

/* Container หลักของกล่องข้อความวิ่ง */
.rpg-ticker-box {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    background: var(--purple-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* เปลี่ยนจากเส้นประ (dashed) เป็นเส้นตรงธรรมดา (solid) */
    border: 1px solid var(--gold-main); 
    
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 0 15px var(--purple-glow), inset 0 0 15px rgba(255, 215, 0, 0.15);
    overflow: hidden;
    box-sizing: border-box;
}

/* เอฟเฟกต์เรืองแสงขอบกล่องเมื่อ Hover */
.rpg-ticker-box:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(138, 43, 226, 0.4);
}

/* ป้ายกำกับด้านหน้า (Label Badge) */
.ticker-badge {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #0f051d;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

/* เอฟเฟกต์ไอคอนกะพริบเวทมนตร์ */
.ticker-badge i {
    font-size: 0.9rem;
    animation: iconPulse 1.5s infinite alternate;
}

@keyframes iconPulse {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 5px #fff); }
}

/* พื้นที่ข้อความวิ่ง (Viewport) */
.ticker-content-wrapper {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    padding-left: 10px;
}

/* ตัวข้อความวิ่ง */
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    color: #f3e8ff;
    animation: marquee 22s linear infinite;
}

/* หยุดวิ่งเมื่อเอาเมาส์ชี้ / แตะค้าง */
.rpg-ticker-box:hover .ticker-text {
    animation-play-state: paused;
}

.ticker-text span {
    color: var(--gold-bright);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.ticker-divider {
    margin: 0 15px;
    color: var(--gold-main);
    opacity: 0.6;
}

/* Animation ข้อความวิ่ง */
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Mobile Responsiveness (100% Mobile Friendly) */
@media (max-width: 600px) {
    .rpg-ticker-box {
        padding: 4px;
        border-width: 1.5px;
    }
    .ticker-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .ticker-text {
        font-size: 0.85rem;
        animation-duration: 16s; /* เพิ่มความเร็วให้สมดุลกับจอเล็ก */
    }
}
	/* กำหนด height ให้ชัดเจนเพื่อกัน layout สวิง */
.gif-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* กำหนดความสูงขั้นต่ำคงที่ไว้ */
}

.main-logo {
    min-height: 200px; /* กันพื้นที่รองรับโลโก้ไว้ก่อนรูปมา */
}
/* ========================================================
   1. GLOBAL VARIABLES & RESET
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600;700;800&display=swap');

:root {
    --logo-width: 800px;
    --bg-dark: #0a0512;
    --purple-deep: #150a26;
    --purple-main: #2a1147;
    --purple-light: #522880;
    --orange-bright: #ff6600;
    --orange-glow: #ff9900;
    --gold-accent: #ffd700;
    --gold-glow: #ffe875;
    --text-light: #f0e6ff;
    --glass-bg: rgba(26, 12, 43, 0.65);
    --glass-border: rgba(255, 153, 0, 0.25);
    --gold-border: linear-gradient(135deg, #ffd700, #b8860b, #ffd700);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--purple-light);
    border-radius: 4px;
    border: 1px solid var(--orange-bright);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(82, 40, 128, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 102, 0, 0.15) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(5, 2, 8, 0.7), rgba(7, 3, 10, 0.8)),
        url('images/bg/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================================
   2. TOP BAR & NAVIGATION
   ======================================================== */
.top-bar {
    background: rgba(10, 5, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 119, 0, 0.4);
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.top-bar .brand {
    font-weight: 800;
    color: var(--gold-accent);
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .top-links {
    display: flex;
    gap: 20px;
}

.top-bar .top-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar .top-links a:hover {
    color: var(--orange-bright);
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.8);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--orange-bright);
    color: var(--gold-accent);
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 10px 20px;
    position: relative;
}

.main-logo {
    width: var(--logo-width);
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.5)) drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    margin-bottom: 0px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.main-logo:hover {
    transform: scale(1.04) translateY(-4px);
    filter: drop-shadow(0 0 30px rgba(255, 153, 0, 0.8)) drop-shadow(0 8px 25px rgba(0,0,0,0.9));
}

.main-nav {
    background: linear-gradient(135deg, rgba(68, 35, 110, 0.8), rgba(42, 11, 71, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid var(--orange-bright);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    transition: all 0.3s ease;

}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    flex-wrap: wrap;
}

.main-nav li {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover {
    background: linear-gradient(180deg, var(--orange-bright) 0%, #cc5200 100%);
    color: #fff;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
}

/* ========================================================
   3. HERO FANTASY RPG BANNER & BUTTONS
   ======================================================== */
.hero-fantasy-box {
    width: 100%;
    max-width: 700px;
    margin: 15px auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    font-family: 'Prompt', 'Segoe UI', sans-serif;
}

.fantasy-divider {
    position: relative;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 115, 255, 0.8), transparent);
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fantasy-divider .diamond-icon {
    color: #e0b0ff;
    font-size: 12px;
    background: var(--bg-dark);
    padding: 0 8px;
    text-shadow: 0 0 8px #c084fc;
}

.rpg-banner-container {
    width: 100%;
    
    /* 1. คืนค่าพื้นหลังเป็นโทนสีม่วง RPG (เรียบหรู คลาสสิก) */
    background: linear-gradient(180deg, rgba(26, 10, 48, 0.90) 0%, rgba(13, 4, 26, 0.95) 100%);
    
    /* 2. ความโค้งมนกรอบด้านนอก */
    border-radius: 16px; 
    
    /* 3. เส้นขอบสีทองแบบไล่ระดับ (Gold Metallic Gradient) */
    border: 2px solid transparent;
    background-image: 
        linear-gradient(180deg, rgba(26, 10, 48, 0.90) 0%, rgba(13, 4, 26, 0.95) 100%), 
        linear-gradient(135deg, #fff3a1 0%, #d4af37 40%, #8a6414 70%, #f5cf66 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    /* 4. เอฟเฟกต์ฟุ้งกระจายออกด้านนอกโทนม่วง นุ่มนวล ไม่ฟุ้งเข้าด้านใน */
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));

    padding: 20px 25px;
    margin: 20px 0; 
    position: relative;
    backdrop-filter: blur(8px);
}

.rpg-banner-container::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    /* เส้นประด้านในปรับเป็นโทนสีทองจางๆ */
    border: 1px dashed rgba(245, 207, 102, 0.35); 
    border-radius: 10px;
    pointer-events: none;
}

.corner-jewel {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #7dd3fc;
    border: 1px solid #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 8px #38bdf8;
    z-index: 2;
}
.corner-jewel.top-left { top: 3px; left: 3px; }
.corner-jewel.top-right { top: 3px; right: 3px; }
.corner-jewel.bottom-left { bottom: 3px; left: 3px; }
.corner-jewel.bottom-right { bottom: 3px; right: 3px; }

.banner-inner-grid {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.gif-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110px;
}

.fantasy-gif {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
}

.left-slot .fantasy-gif { animation: floatGently 4s ease-in-out infinite; }
.right-slot .fantasy-gif { animation: floatGently 4s ease-in-out infinite 1.5s; }

@keyframes floatGently {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.banner-text-content {
    text-align: center;
}

.rpg-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;

    /* สีไล่ระดับ ทองเหลืองส้ม (Warm Gold & Amber) */
    background: linear-gradient(
        135deg, 
        #FFF176 0%,   /* ทองสว่างอมเหลือง */
        #FFD54F 25%,  /* ทองเหลืองเข้ม */
        #FFB300 60%,  /* ทองส้มอมแอมเบอร์ */
        #FF8F00 100%  /* ส้มทองพรีเมียม */
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: none;

    /* Animation ไล่สี + แสงเรืองแสงโทนส้มทอง */
    animation: warmGoldShift 6s ease infinite, warmGlowPulse 3s ease-in-out infinite alternate;
}

/* Animation 1: เคลื่อนไหวไล่โทนสีทองเหลืองส้มช้าๆ */
@keyframes warmGoldShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation 2: เรืองแสงสีทองอมส้มรอบนอกตัวหนังสือ */
@keyframes warmGlowPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 179, 0, 0.5), 
                     0 0 20px rgba(255, 143, 0, 0.4);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 213, 79, 0.8), 
                     0 0 30px rgba(255, 179, 0, 0.7);
    }
}

.rpg-description {
    font-size: 15px;
    font-weight: 400;
    color: #e2e8f0;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.rpg-subdescription {
    font-size: 13.5px;
    font-weight: 300;
    color: #94a3b8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 22px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-rpg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 230px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.btn-rpg::before {
    content: '';
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: all 0.6s ease;
}

.btn-rpg:hover::before {
    left: 125%;
}

.btn-download {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
    border: 2px solid #38bdf8;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-download:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #7dd3fc;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), 0 8px 25px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.btn-register {
    background: linear-gradient(180deg, #ea580c 0%, #c2410c 50%, #7c2d12 100%);
    border: 2px solid #fb923c;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-register:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #ffedd5;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.85), 0 8px 25px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

/* รวบกลุ่ม Class Diamond Icons บนปุ่มกด */
.btn-download .btn-diamond-left,
.btn-download .btn-diamond-right {
    color: #7dd3fc;
    font-size: 10px;
    text-shadow: 0 0 6px #38bdf8;
}

.btn-register .btn-diamond-left,
.btn-register .btn-diamond-right {
    color: #fde047;
    font-size: 12px;
    text-shadow: 0 0 6px #eab308;
}

/* ========================================================
   4. MAIN FRAME & CONTENT LAYOUT
   ======================================================== */
.page-frame {
    max-width: 1140px;
    width: 95%;
    margin: 20px auto 40px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(68, 35, 110, 0.3), inset 0 0 2px rgba(255, 215, 0, 0.3);
    padding: 25px;
    position: relative;
}

.page-frame::before, .page-frame::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--gold-accent);
    pointer-events: none;
}
.page-frame::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.page-frame::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
}

/* Sidebar & Buttons */
.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff8800 0%, #d43800 100%);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--gold-accent);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(255, 69, 0, 0.35);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.sidebar-btn.purple-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #4a00e0 100%);
    box-shadow: 0 6px 18px rgba(138, 43, 226, 0.35);
}

.sidebar-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 119, 0, 0.6);
    border-color: #fff;
}

.sidebar-btn.purple-btn:hover {
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.6);
}

/* Widget Box */
.widget-box {
    background: rgba(26, 11, 46, 0.7);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease;
}

.widget-box:hover { border-color: rgba(255, 153, 0, 0.5); }

.widget-title {
    color: var(--gold-accent);
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--purple-light);
    padding-bottom: 10px;
    margin-bottom: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--orange-bright);
}

.status-item {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.status-badge {
    background: rgba(0, 255, 102, 0.15);
    color: #00ff66;
    border: 1px solid #00ff66;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(0,255,102,0.3);
}

.quick-links-list {
    list-style: none;
    font-size: 13px;
}

.quick-links-list li { margin-bottom: 8px; }

.quick-links-list a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.quick-links-list a:hover {
    color: var(--orange-bright);
    transform: translateX(5px);
}

/* Main Content & Slider */
.banner-slider {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, rgba(42, 11, 71, 0.9), rgba(92, 37, 150, 0.7)),
                radial-gradient(circle at center, rgba(255,119,0,0.2) 0%, transparent 70%);
    border: 1px solid var(--orange-bright);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-accent);
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.banner-slider::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    animation: move-bg 20s linear infinite;
}

@keyframes move-bg {
    0% { transform: translate(-25%, -25%); }
    100% { transform: translate(0, 0); }
}

.banner-slider span { position: relative; z-index: 2; }

/* News Section */
.news-section {
    background: rgba(20, 10, 32, 0.7);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.news-tabs {
    display: flex;
    border-bottom: 2px solid var(--purple-light);
    margin-bottom: 18px;
    gap: 5px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #b3a2c7;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab:hover { color: var(--gold-accent); }

.tab.active {
    color: var(--orange-bright);
    border-bottom-color: var(--orange-bright);
    background: linear-gradient(to top, rgba(255, 102, 0, 0.1), transparent);
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.news-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.news-item a:hover { color: var(--orange-glow); }

.news-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-update { background: rgba(255, 102, 0, 0.2); color: var(--orange-bright); border: 1px solid var(--orange-bright); }
.tag-event { background: rgba(255, 215, 0, 0.2); color: var(--gold-accent); border: 1px solid var(--gold-accent); }
.tag-notice { background: rgba(0, 204, 255, 0.2); color: #00ccff; border: 1px solid #00ccff; }

.news-date {
    color: #7a6b8c;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
}

/* Footer */
footer {
    background: rgba(5, 2, 8, 0.9);
    border-top: 1px solid var(--purple-light);
    padding: 25px 20px;
    text-align: center;
    margin-top: auto;
    font-size: 12px;
    color: #7a6b8c;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--orange-bright);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover { text-decoration: underline; }

/* ========================================================
   5. RESPONSIVE DESIGN (รวบจุดซ้ำซ้อน)
   ======================================================== */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar { order: 2; }
    .main-content { order: 1; }
}

@media (max-width: 768px) {
    :root {
        --logo-width: 320px;
    }

    .top-bar { padding: 10px 15px; }
    .mobile-menu-btn { display: block; }
    .top-links { display: none; }
    .hero { padding: 20px 10px 10px 10px; }

    /* Navigation */
    .main-nav { border-radius: 8px; }
    .main-nav ul {
        display: none;
        flex-direction: column;
    }
    .main-nav.active ul { display: flex; }
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .main-nav a {
        padding: 12px 12px 12px 20px;
        justify-content: flex-start;
    }

    /* Hero Fantasy Box & Banner Grid */
    .banner-inner-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .gif-slot { min-height: auto; }
    .left-slot { order: 1; }
    .banner-text-content { order: 2; }
    .right-slot { order: 3; }

    .rpg-title { font-size: 20px; }
    .rpg-description { font-size: 13px; }
    .rpg-subdescription { font-size: 12px; }

    /* Action Buttons */
    .hero-action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-rpg {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Layout Frames & Elements */
    .page-frame {
        width: 98%;
        padding: 12px;
        margin-top: 10px;
        border-radius: 12px;
    }
    .banner-slider {
        height: 180px;
        font-size: 16px;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .news-date {
        margin-left: 0;
        align-self: flex-end;
    }
}
/* ==================== [แก้ไข] จัดไอคอน+ข้อความปุ่มกิจกรรมให้ตรงกันทุกปุ่ม ====================
   เดิม .dg-content-layer จัดกึ่งกลาง → ปุ่มที่ข้อความยาว (ขึ้น 2 บรรทัด) ดูชิดซ้าย
   ส่วนปุ่มข้อความสั้นลอยไปกลาง ไอคอนเลยไม่อยู่แนวเดียวกัน
   ตอนนี้ล็อกให้ไอคอนอยู่ซ้ายทุกปุ่ม ข้อความเริ่มตำแหน่งเดียวกัน */
.quick-menu .dg-content-layer {
  justify-content: flex-start;
  width: 100%;
  gap: 14px;
}
.quick-menu .dg-icon-badge {
  margin-right: 0;
  flex-shrink: 0;
}
.quick-menu .dg-label-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  line-height: 1.35;
}