@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    background: #010409; /* Koyu uzay teması */
    color: #fff;
    touch-action: none; /* Kaydırmayı engelle */
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #020a1a 0%, #1a1f36 70%, #3a3258 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 9 / 16;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.score-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    align-self: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#score-label {
    display: block;
    font-size: 0.8em;
    color: #aab8c2;
}

#score {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffc107;
}

#gyro-bar-container {
    padding: 10px;
    width: 80%;
    max-width: 300px;
    align-self: center;
    margin-bottom: 20px;
}

#gyro-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#gyro-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffc107;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #ffc107;
    transition: left 0.1s linear;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.menu-panel {
    background: rgba(26, 31, 54, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.menu-panel .logo {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 10px;
}

.menu-panel h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ff8a00;
    text-shadow: 0 0 5px #e52e71;
}

.menu-panel p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #c0c5d0;
}

.menu-panel .permissions-info {
    margin-top: 20px;
    font-size: 0.8em;
    color: #777;
}

button {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    border: none;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}