body {
    font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
    background-color: #e0e4cc;
    color: #69d2e7;
    margin: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

header {
    margin-bottom: 10px;
    color: #a7dbd8;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    text-decoration: none;
    font-weight: bold;
    color: #fa6900;
    font-size: 18px;
}

h1 {
    margin: 0;
    font-size: 32px;
    color: #fa6900;
}

.score-board {
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    color: #f38630;
    font-weight: bold;
    display: flex;
    gap: 15px;
}

.game-area {
    flex: 1;
    position: relative;
    background: #87ceeb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

canvas {
    background: #87ceeb;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px;
    z-index: 100;
}

.hidden {
    display: none !important;
}

h2 {
    margin: 0;
    color: #fa6900;
    font-size: 36px;
}

p {
    margin: 0;
    color: #776e65;
    font-size: 18px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    background: #f38630;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn:active {
    transform: scale(0.95);
}

.twitter {
    background: #1da1f2;
}

.tutorial-text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.8;
    font-size: 18px;
}

@media screen and (max-width: 520px) {
    .header-top {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        align-items: center;
    }

    .back-link {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    h1 {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
        font-size: 24px;
        margin: 0;
    }

    .score-board {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}