@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

.smg-wrapper {
    background: #000;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    user-select: none;
    aspect-ratio: 16/9;
}

.supreme-moon-game {
    position: relative;
    width: 100%;
    height: 100%;
}

.supreme-moon-game canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* UI Layers */
.smg-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.smg-interactive {
    pointer-events: auto;
}

/* HUD Top Left */
.smg-hud-top-left {
    position: absolute;
    top: 3%;
    left: 3%;
    display: flex;
    align-items: center;
    background: rgba(0, 10, 30, 0.7);
    border: 1px solid #00f0ff;
    border-radius: 4px;
    padding: 4px 12px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.smg-hud-num {
    color: #00f0ff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 12px;
}

.smg-hud-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Title Screen */
.smg-title-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
}

.smg-title-main {
    font-size: 5rem;
    line-height: 1;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.smg-title-send { color: #fff; display: block; }
.smg-title-tothe { color: #ff00ea; display: block; text-shadow: 0 0 15px rgba(255, 0, 234, 0.5); }
.smg-title-moon { color: #00f0ff; display: block; font-size: 6rem; text-shadow: 0 0 20px rgba(0, 240, 255, 0.6); }

.smg-subtitle {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 40px;
    font-weight: 600;
}

.smg-btn-start {
    pointer-events: auto;
    background: rgba(255, 0, 234, 0.1);
    border: 2px solid #ff00ea;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 10px 60px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 234, 0.4), inset 0 0 10px rgba(255, 0, 234, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.smg-btn-start:hover {
    background: rgba(255, 0, 234, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 234, 0.6), inset 0 0 20px rgba(255, 0, 234, 0.4);
    transform: scale(1.05);
}

.smg-btn-start:active {
    transform: scale(0.95);
}

/* Bottom Nav */
.smg-bottom-nav {
    position: absolute;
    bottom: 3%;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    pointer-events: auto;
}

.smg-btn-nav {
    background: none;
    border: none;
    color: #00f0ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.smg-btn-nav:hover {
    color: #fff;
    text-shadow: 0 0 10px #00f0ff;
}

/* Objective Panel */
.smg-objective-panel {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid #00f0ff;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px 40px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* HUD Right */
.smg-hud-right {
    position: absolute;
    top: 10%;
    right: 3%;
    background: rgba(0, 5, 15, 0.85);
    border: 1px solid #00f0ff;
    border-radius: 8px;
    padding: 20px;
    min-width: 200px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.smg-hud-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
}

.smg-hud-label {
    color: #00f0ff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.smg-hud-val {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.smg-mt { margin-top: 20px; }

.smg-energy-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.smg-energy-bar-fill {
    width: 0%;
    height: 100%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    transition: width 0.3s ease;
}

/* Messages */
.smg-message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    display: none;
    text-align: center;
}

.smg-message-sub {
    font-size: 2rem;
    color: #fff;
    text-shadow: none;
    margin-top: 10px;
}

/* Mobile Controls */
.smg-mobile-controls {
    position: absolute;
    bottom: 5%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
    pointer-events: auto;
}

.smg-ctrl-group {
    display: flex;
    gap: 15px;
}

.smg-btn-ctrl {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    user-select: none;
    touch-action: manipulation;
}

.smg-btn-ctrl:active {
    background: rgba(0, 240, 255, 0.3);
}

.smg-ctrl-jump {
    width: 80px;
    height: 80px;
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .smg-title-main { font-size: 3rem; }
    .smg-title-moon { font-size: 3.5rem; }
    .smg-btn-start { font-size: 1.5rem; padding: 10px 40px; }
    .smg-hud-top-left { transform: scale(0.8); transform-origin: top left; }
    .smg-hud-right { transform: scale(0.7); transform-origin: top right; }
    .smg-mobile-controls { display: flex; }
}

@media (min-width: 769px) {
    .smg-mobile-controls { display: none !important; }
}
