* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #0b1c2f 0%, #1a2f40 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    padding: 1rem;
}

/* modern card container */
.construction-card {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3rem 3rem 2rem 2rem;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 215, 100, 0.2) inset;
    padding: 2rem 2rem 3rem 2rem;
    transition: box-shadow 0.3s ease;
}

.construction-card:hover {
    box-shadow: 0 35px 60px -15px #000, 0 0 0 2px rgba(255, 200, 70, 0.3) inset;
}

/* header with under construction messaging */
.under-messaging {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.under-messaging h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffe7b0, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4), 0 0 20px #ffb34750;
    margin-bottom: 0.4rem;
}

.under-messaging .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #c0d4e6;
    background: rgba(0, 15, 30, 0.5);
    display: inline-block;
    padding: 0.4rem 1.8rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 200, 100, 0.3);
    margin-top: 0.2rem;
}

.under-messaging .subtitle i {
    font-style: normal;
    margin: 0 0.3rem;
    color: #ffc464;
}

/* game container styling */
.game-wrapper {
    background: #1f2e3f;
    border-radius: 2.4rem;
    padding: 1.2rem;
    box-shadow: inset 0 -5px 0 #0f1a24, 0 15px 25px -8px #00000080;
    border: 1px solid #ffd58c40;
    margin-bottom: 1.8rem;
}

.canvas-container {
    display: flex;
    justify-content: center;
    border-radius: 1.8rem;
    overflow: hidden;
    background: #eae6d7;
    box-shadow: 0 0 0 2px #4d3e2e, inset 0 0 0 2px #f9f2d9;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #f6efe0;
    cursor: pointer;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* score and status bar */
.game-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0.5rem 0.2rem 0.5rem;
    color: #ebdbbc;
    font-weight: 500;
    text-shadow: 0 2px 3px black;
}

.score-box {
    background: #2c3e4e;
    padding: 0.5rem 1.4rem;
    border-radius: 40px;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid #b99e6b;
    box-shadow: inset 0 -3px 0 #15232e;
    color: #fadf9e;
    font-family: 'Courier New', monospace;
}

.restart-btn {
    background: #fee3b8;
    border: none;
    color: #1f2a36;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 6px 0 #876b42, 0 6px 10px black;
    cursor: pointer;
    transition: 0.08s linear;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.restart-btn:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #876b42, 0 6px 12px black;
}

.restart-btn:hover {
    background: #ffeac8;
}

.hint-message {
    color: #bbaa88;
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.hint-message kbd {
    background: #2e3f4d;
    border-radius: 6px;
    padding: 0.2rem 0.8rem;
    color: #ffd78a;
    font-weight: 600;
    border: 1px solid #ac8e5f;
}

footer {
    text-align: center;
    color: #9aaec2;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}