* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* พื้นหลังวิดีโอ + overlay */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) blur(2px);
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255,215,128,0.3), transparent 60%),
        radial-gradient(circle at bottom, rgba(255,255,255,0.08), transparent 60%);
    z-index: -1;
}

/* โครงหลัก */
.main {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f1e8d0;
    font-size: 12px;
    margin-bottom: 8px;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #32ff7e;
    box-shadow: 0 0 10px rgba(50,255,126,0.9);
}

.top-links {
    display: flex;
    gap: 6px;
}

.top-links button {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6);
    color: #f1e8d0;
}

/* Center content */
.center {
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    color: #f8f5ee;
}

.title {
    font-size: 30px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow:
        0 0 12px rgba(0,0,0,0.8),
        0 0 26px rgba(255,215,128,0.9);
}

.subtitle {
    font-size: 13px;
    margin-top: 3px;
    color: #d5caae;
}

/* กล่องชื่อ + ปุ่ม */
.glass-box {
    margin: 18px auto 10px;
    padding: 18px 18px 16px;
    max-width: 360px;

    background: rgba(10,8,4,0.75);
    border-radius: 18px;
    border: 1px solid rgba(255,215,128,0.5);
    box-shadow:
        0 0 30px rgba(0,0,0,0.8),
        0 0 26px rgba(255,215,128,0.35);
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    border: none;
    outline: none;

    background: rgba(255,255,255,0.08);
    color: #fff;
    text-align: center;
    font-size: 15px;
}

.input::placeholder {
    color: #d0c6b3;
}

.btn-start {
    width: 100%;
    margin-top: 14px;
    padding: 13px 0;
    border-radius: 999px;
    border: none;
    outline: none;

    background: linear-gradient(120deg, #ffcc4a, #ff9f1a);
    color: #1b1105;
    font-size: 18px;
    font-weight: 700;

    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 16px rgba(255,193,70,0.9),
        0 0 30px rgba(0,0,0,0.9);
}

.btn-start .shine {
    position: absolute;
    top: 0;
    left: -80px;
    width: 60px;
    height: 100%;
    background: rgba(255,255,255,0.55);
    filter: blur(12px);
    transform: skewX(-25deg);
    animation: shineMove 2.2s infinite;
}

@keyframes shineMove {
    0% { left: -80px; }
    100% { left: 120%; }
}

.error {
    margin-top: 8px;
    min-height: 18px;
    font-size: 12px;
    color: #ff9d9d;
}

/* Sections (ข่าว + patch) */
.section {
    max-width: 380px;
    margin: 10px auto 6px;
    text-align: left;
}

.section-header h3 {
    font-size: 13px;
    color: #f5e7c0;
    margin-bottom: 6px;
}

/* Carousel ข่าวปัดซ้าย-ขวา */
.carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    min-width: 240px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 14px;

    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,215,128,0.5);
    color: #fef5dc;
    font-size: 13px;
}

/* Patch notes */
.patch-list {
    max-height: 80px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f4ead4;
    font-size: 13px;
    overflow-y: auto;
}

.patch-list::-webkit-scrollbar {
    width: 4px;
}
.patch-list::-webkit-scrollbar-thumb {
    background: rgba(255,215,128,0.6);
    border-radius: 999px;
}

/* ปุ่มข่าวทั้งหมด */
.btn-news {
    margin-top: 10px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,215,128,0.6);
    background: rgba(0,0,0,0.7);
    color: #fbe7b5;
    font-size: 13px;
}

/* หน้าข่าวเต็มจอ */
.news-full {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-inner {
    width: 90%;
    max-width: 420px;
    max-height: 80%;
    background: rgba(15,10,4,0.95);
    border-radius: 16px;
    border: 1px solid rgba(255,215,128,0.85);
    padding: 14px 14px 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    color: #f8edd3;
    display: flex;
    flex-direction: column;
}

.news-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.btn-close {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,215,128,0.7);
    background: transparent;
    color: #fbe7b5;
}

.news-content {
    font-size: 13px;
    line-height: 1.5;
    overflow-y: auto;
    margin-top: 4px;
}

.news-content::-webkit-scrollbar {
    width: 4px;
}
.news-content::-webkit-scrollbar-thumb {
    background: rgba(255,215,128,0.6);
    border-radius: 999px;
}

/* Responsive นิดหน่อย */
@media (max-height: 620px) {
    .center {
        margin-top: 0;
    }
}
