:root {
    --primary: #00C6FF;
    --accent: #FF4D4D;
    --background: #0a192f;
    --surface: #172a45;
    --text: #ccd6f6;
    --border: #2d4059;
    --success: #00ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    touch-action: manipulation;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header h1 {
    font-size: 2.8rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.game-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

iframe {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

/* Game Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Control Bar */
.control-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    font-weight: 600;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,198,255,0.2);
}

.button-primary {
    background: var(--primary);
    color: var(--background);
}

/* Mobile Hint Tooltip */
.mobile-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: help;
    transition: all 0.3s ease;
}

.mobile-hint:hover {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

.mobile-hint i {
    font-size: 1rem;
}

.mobile-hint .tooltip {
    visibility: hidden;
    width: 200px;
    background-color: var(--surface);
    color: var(--text);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-hint .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--surface) transparent transparent transparent;
}

.mobile-hint:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Control Guide */
.control-guide {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.control-visual {
    text-align: center;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.control-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

kbd {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
}

/* Game Story Section */
.game-story {
    background: var(--surface);
    padding: 3rem;
    border-radius: 16px;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.game-story h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.highlight-list {
    list-style: none;
    max-width: 800px;
    margin: 2rem auto;
}

.highlight-list li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2.5rem;
}

.highlight-list li:before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

.play-now {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 7;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.play-now:hover {
    transform: scale(1.05);
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Rating Section */
.rating-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 2rem;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rating-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.like {
    background: rgba(0,255,136,0.1);
    border: 1px solid var(--success);
}

.dislike {
    background: rgba(255,0,0,0.1);
    border: 1px solid var(--accent);
}

.rating-button span {
    position: absolute;
    bottom: -20px;
    font-size: 12px;
    width: 100%;
    text-align: center;
}

/* Stats Section */
.stats {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.stats h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn i {
    font-size: 1.2rem;
    color: white;
}

.facebook {
    background: #3b5998;
}

.twitter {
    background: #1DA1F2;
}

.discord {
    background: #5865F2;
}

/* Orientation Banner */
.orientation-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.orientation-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.orientation-banner.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.orientation-banner i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    iframe {
        height: 60vh;
        min-height: 400px;
    }

    .button {
        padding: 0.8rem 1.5rem;
    }

    .game-story {
        padding: 2rem 1rem;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #E0E0E0;
        --background: #121212;
        --surface: #1E1E1E;
    }
}