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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
}

.indicators {
    display: flex;
    gap: 5px;
}

.signal::before {
    content: "•••";
    letter-spacing: -1px;
    font-weight: 900;
}

.wifi::before {
    content: "⌃";
    transform: rotate(180deg);
    display: inline-block;
}

.battery {
    width: 25px;
    height: 12px;
    border: 1px solid #333;
    border-radius: 3px;
    position: relative;
    display: inline-block;
}

.battery::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 65%;
    height: 6px;
    background-color: #333;
    border-radius: 1px;
}

.battery::after {
    content: "";
    position: absolute;
    top: 3px;
    right: -4px;
    width: 3px;
    height: 5px;
    background-color: #333;
    border-radius: 0 2px 2px 0;
}

.container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 44px);
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.back-button, .reset-button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-button svg, .reset-button svg {
    width: 24px;
    height: 24px;
}

.instructions {
    margin-bottom: 30px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.game-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    flex-grow: 1;
}

.circle-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.broken-ring {
    width: 70px;
    height: 70px;
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Create the ring with two semi-circular parts */
.ring-part {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid #444;
    border-radius: 50%;
}

.ring-part-1 {
    clip-path: polygon(50% 0%, 0% 0%, 0% 100%, 50% 100%, 50% 50%);
    transform: rotate(-15deg);
}

.ring-part-2 {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%, 50% 50%);
    transform: rotate(15deg);
}

.arrows {
    position: absolute;
    width: 100%;
    height: 100%;
}

.arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L30 20 L30 40 L10 40 L10 20 L0 20 Z' fill='%23ddd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

.arrow:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L30 20 L30 40 L10 40 L10 20 L0 20 Z' fill='%23bbb'/%3E%3C/svg%3E");
}

.arrow.correct {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L30 20 L30 40 L10 40 L10 20 L0 20 Z' fill='%232ecc71'/%3E%3C/svg%3E");
}

.arrow.wrong {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L30 20 L30 40 L10 40 L10 20 L0 20 Z' fill='%23e74c3c'/%3E%3C/svg%3E");
}

.arrow-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-top-right {
    top: 15%;
    right: 15%;
    transform: rotate(45deg);
}

.arrow-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(90deg);
}

.arrow-bottom-right {
    bottom: 15%;
    right: 15%;
    transform: rotate(135deg);
}

.arrow-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.arrow-bottom-left {
    bottom: 15%;
    left: 15%;
    transform: rotate(225deg);
}

.arrow-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(270deg);
}

.arrow-top-left {
    top: 15%;
    left: 15%;
    transform: rotate(315deg);
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    margin-bottom: 20px;
    padding: 10px 0;
}

.progress-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.progress-segment {
    width: 60px;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
}

.progress-segment.active {
    background-color: #A880FC;
}

.timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-icon {
    width: 24px;
    height: 24px;
}

.timer-value {
    font-size: 24px;
    font-weight: 600;
}

.eye-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 25px;
    color: #555;
    font-size: 16px;
}

.eye-indicator svg {
    width: 24px;
    height: 16px;
}

.home-indicator {
    width: 134px;
    height: 5px;
    background-color: #000;
    border-radius: 3px;
    margin: 0 auto 8px;
}

@media (max-height: 700px) {
    .game-area {
        margin: 20px 0;
    }
    
    .circle-container {
        width: 240px;
        height: 240px;
    }
    
    .instructions h2 {
        font-size: 18px;
    }
    
    .progress-segment {
        width: 50px;
    }
}

@media (max-width: 360px) {
    .circle-container {
        width: 220px;
        height: 220px;
    }
    
    .arrow {
        width: 35px;
        height: 35px;
    }
    
    .broken-ring {
        width: 60px;
        height: 60px;
    }
} 