:root {
    --cyan: #00f3ff;
    --red: #ff3c3c;
    --dark-bg: #080808;
    --text-dim: #5a7b7d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #080808;
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* แบล็คกราวด์แบบ High-tech PCB ตามรูป */
    background-image: 
        radial-gradient(circle at center, rgba(0, 243, 255, 0.08) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 10px),
        linear-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 10px 10px, 10px 10px, 60px 60px, 60px 60px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
}

body::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

/* แกนกลาง: วงแหวนหมุน */
.core-wrapper {
    position: relative;
    width: 1200px; /* ขนาดใหญ่พิเศษตามที่ต้องการ */
    height: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4; /* ให้ดูจางและลึก */
    perspective: 2000px;
}

.ring-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--cyan);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

.ring {
    position: absolute;
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.eyes-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.ring-1 {
    width: 1100px;
    height: 1100px;
    border-left-color: transparent;
    animation: rotate 30s linear infinite;
    transform: rotateX(75deg) rotateY(10deg);
}

.ring-2 {
    width: 1000px;
    height: 700px;
    border-top-color: transparent;
    animation: rotate 40s linear reverse infinite;
    transform: rotateX(-40deg) rotateY(30deg);
}

.ring-3 {
    width: 800px;
    height: 1000px;
    border-right-color: transparent;
    animation: rotate 25s linear infinite;
    transform: rotateX(30deg) rotateZ(50deg);
}

.ring-4 {
    width: 950px;
    height: 900px;
    border-bottom-color: transparent;
    border: 0.5px dashed rgba(0, 243, 255, 0.1);
    animation: rotate 50s linear infinite;
    transform: rotateX(50deg) rotateY(-30deg);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ส่วนเนื้อหาหลัก */
.ui-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 95vw;
    max-width: 1100px; /* ขยายให้กว้างขึ้นอีกเพื่อไม่ให้เบียดตัวหนังสือ */
    margin: 0 auto;
}

/* กรอบ UI แบบในรูป */
.ui-box {
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 80px 60px; /* ปรับ Padding ให้สมดุลขึ้น */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: inline-block; /* ให้กรอบยืดตามความกว้างเนื้อหา */
    min-width: 80%; /* มั่นใจว่ากรอบจะไม่แคบไป */
    position: relative;
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 243, 255, 0.05);
}

/* มุมกรอบ (Brackets) */
.ui-box::before, .ui-box::after,
.ui-box .bracket-bottom::before, .ui-box .bracket-bottom::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--cyan);
    border-style: solid;
    opacity: 0.8;
}

.ui-box::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.ui-box::after { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.bracket-bottom::before { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.bracket-bottom::after { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.header-main {
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    font-weight: 700;
    animation: text-glitch 5s infinite;
}

@keyframes text-glitch {
    0%, 90%, 100% { transform: skew(0); }
    91% { transform: skew(2deg); opacity: 0.8; }
    92% { transform: skew(-2deg); opacity: 1; }
    93% { transform: skew(0); }
}

/* เส้นขีดสีแดงตรงกลาง */
.red-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    margin: 20px auto;
    box-shadow: 0 0 15px var(--red);
}

.sub-text {
    color: #cbd5e1;
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.9;
    line-height: 2;
    margin: 5px 0;
    font-weight: 400;
    text-transform: uppercase;
}

/* ข้อมูล Status เล็กๆ ตามจุดต่างๆ */
.data-bit {
    position: absolute;
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.top-left {
    top: -100px;
    left: 0;
    text-align: left;
}

.top-right {
    top: -100px;
    right: 0;
    text-align: right;
}

/* Footer Status ด้านล่าง */
.footer-status {
    position: fixed;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-dim);
    opacity: 0.7;
}

.footer-status div {
    display: flex;
    gap: 10px;
}

.highlight {
    color: var(--cyan);
}

/* Scanline effect */
.scanline {
    width: 100%;
    height: 100%;
    z-index: 20;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.15;
}
