/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0d001a;
    background-image: linear-gradient(135deg, #0d001a, #230029);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #000;
}

.logo img {
    height: 30px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a, .menu-btn {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.menu-btn {
    background-color: #ffb800;
    border: none;
    color: #000;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 120px;
    background: linear-gradient(90deg, rgba(255,0,0,0.1), rgba(255,0,0,0.3));
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid rgba(255,0,0,0.4);
}

.event-title {
    text-align: center;
}

.chaos-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.the {
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
}

.chaos {
    font-size: 40px;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 10px #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Impact', sans-serif;
}

/* Event Banner */
.event-banner {
    background-color: #1a0022;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.event-banner h1 {
    font-size: 28px;
    color: #c9a0dc;
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(201, 160, 220, 0.5);
}

.event-banner p {
    font-size: 14px;
    color: #fff;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lucky-draw-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
}

.id-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.id-icon {
    color: #ffb800;
}

/* Rewards Section */
.rewards-section {
    background-color: #200028;
    padding: 20px 15px;
    position: relative;
}

.hexagon-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 65%;
    margin-right: 35%;
    position: relative;
    z-index: 1;
}

.hex-row {
    display: flex;
    justify-content: center;
    margin-bottom: -15px;
}

.hex-row-offset {
    margin-left: 45px;
}

.hex-item {
    width: 65px;
    height: 75px;
    background-color: #3a0051;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hex-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.hex-item[data-drawn="true"] {
    opacity: 0.5;
}

.hex-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.character-display {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 35%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
}

.character-display img {
    max-height: 90%;
    max-width: 100%;
    object-fit: contain;
}

.start-draw-btn {
    background-color: #ffb800;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.message-box {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #000;
    padding: 15px;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-text p {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.footer-text a {
    color: #999;
    text-decoration: none;
}

/* Hex Selector */
.hex-selector {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ffb800;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffb800, 0 0 20px rgba(255, 184, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    transition: all 0.1s ease;
}

/* Animation for draw */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s infinite;
}
