 * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            overflow-x: hidden;
            background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #fbc2eb);
            background-size: 400% 400%;
            animation: gradientBG 12s ease infinite;
            position: relative;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .bubbles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .bubble {
            position: absolute;
            bottom: -100px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            animation: floatUp 15s infinite ease-in;
        }

        .bubble:nth-child(1) { left: 10%; width: 60px; height: 60px; animation-duration: 18s; }
        .bubble:nth-child(2) { left: 25%; width: 40px; height: 40px; animation-duration: 14s; animation-delay: 2s; }
        .bubble:nth-child(3) { left: 40%; width: 80px; height: 80px; animation-duration: 20s; animation-delay: 4s; }
        .bubble:nth-child(4) { left: 60%; width: 50px; height: 50px; animation-duration: 16s; animation-delay: 1s; }
        .bubble:nth-child(5) { left: 75%; width: 70px; height: 70px; animation-duration: 22s; animation-delay: 3s; }
        .bubble:nth-child(6) { left: 90%; width: 45px; height: 45px; animation-duration: 13s; animation-delay: 5s; }

        @keyframes floatUp {
            0% { transform: translateY(0) scale(0.8); opacity: 0.6; }
            100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
        }

        .container {
            max-width: 950px;
            width: 100%;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(8px);
            border-radius: 28px;
            padding: 30px 35px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        header {
            text-align: center;
            margin-bottom: 25px;
            width: 100%;
        }

        h1 {
            font-size: 2.6rem;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #f7971e, #ffd200);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: none;
        }

        .subtitle {
            font-size: 1.2rem;
            color: #2d3436;
            font-weight: 500;
        }

        .content {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            width: 100%;
        }

        .compass-section {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .compass-container {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 0 auto 20px;
        }

        #compass {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: conic-gradient(from 0deg,
                    #8b0000 0deg, #8b0000 15deg,
                    #1b263b 15deg, #1b263b 345deg,
                    #8b0000 345deg);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.6),
                inset 0 0 20px rgba(0, 0, 0, 0.4);
            border: 8px solid #2d3746;
            position: relative;
        }

        .controls-section {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .direction-control {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .direction-control label {
            width: 110px;
            font-size: 1rem;
            font-weight: 600;
            color: #2d3436;
        }

        .direction-control input {
            flex: 1;
            padding: 10px 12px;
            border-radius: 10px;
            border: 2px solid #dfe6e9;
            font-size: 1rem;
            background: #f8f9fa;
            color: #2d3436;
            transition: 0.25s;
        }

        .direction-control input:focus {
            border-color: #f7971e;
            outline: none;
            background: #fff;
        }

        button {
            padding: 14px 20px;
            background: linear-gradient(135deg, #f7971e, #ffd200);
            color: #1d3557;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.25s;
            margin-top: 6px;
            width: 100%;
            box-shadow: 0 4px 12px rgba(247, 151, 30, 0.3);
        }

        button:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 8px 20px rgba(247, 151, 30, 0.4);
        }

        .result {
            text-align: center;
            padding: 20px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 16px;
            margin-top: 20px;
            width: 100%;
            border: 2px solid #ffd200;
        }

        .result h2 {
            color: #f7971e;
            margin-bottom: 8px;
        }

        .result p {
            font-size: 1.15rem;
            line-height: 1.7;
            color: #2d3436;
        }

        .instructions {
            margin-top: 25px;
            padding: 20px 25px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 16px;
            width: 100%;
            border: 1px solid #dfe6e9;
        }

        .instructions h3 {
            color: #f7971e;
            margin-bottom: 12px;
        }

        .instructions ol {
            padding-right: 22px;
            line-height: 2;
            color: #2d3436;
        }

        .location-info {
            display: flex;
            gap: 20px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .location-item {
            flex: 1;
            min-width: 160px;
            background: rgba(255, 255, 255, 0.5);
            padding: 12px 15px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid #ffd200;
        }

        .location-item h3 {
            color: #f7971e;
            font-size: 0.95rem;
        }

        .location-item p {
            font-weight: 600;
            color: #2d3436;
        }

        .city-search {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 5px;
            flex-wrap: wrap;
        }

        .city-search label {
            font-weight: 600;
            color: #2d3436;
            width: 110px;
        }

        .city-search input {
            flex: 2;
            padding: 10px 12px;
            border-radius: 10px;
            border: 2px solid #dfe6e9;
            font-size: 1rem;
            background: #f8f9fa;
            color: #2d3436;
            transition: 0.25s;
            min-width: 180px;
        }

        .city-search input:focus {
            border-color: #f7971e;
            outline: none;
            background: #fff;
        }

        @media (max-width: 768px) {
            .content {
                flex-direction: column;
            }
            .compass-section,
            .controls-section {
                width: 100%;
            }
            .city-search {
                flex-direction: column;
                align-items: stretch;
            }
            .city-search label {
                width: auto;
            }
        }