@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;600;700&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #1a1a2e;
    color: #c0c0c0;
    min-height: 100vh;
}

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

/* ── Header ── */
.header {
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 36px);
    gap: 3px;
    margin-bottom: 1.25rem;
}

.cell {
    width: 36px;
    height: 36px;
    background: #c0c0c0;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #7b7b7b;
    border-bottom: 3px solid #7b7b7b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    animation: cellReveal 0.3s ease both;
}

/*UC 9 refactors */
/*Start*/
.cell-hidden {
    -fx-background-color: #c0c0c0;
    -fx-border-color: #ffffff #7b7b7b #7b7b7b #ffffff;
    -fx-border-width: 3px;
    -fx-background-insets: 0;
    -fx-background-radius: 0;
    -fx-border-radius: 0;
    -fx-cursor: hand;
}

.cell-hidden:hover {
    -fx-background-color: #d4d4d4;
}

.cell-revealed {
    -fx-background-color: #bdbdbd;
    -fx-border-color: #7b7b7b;
    -fx-border-width: 1px;
    -fx-background-insets: 0;
    -fx-background-radius: 0;
    -fx-border-radius: 0;
    -fx-alignment: center;
}

.cell-flagged {
    -fx-background-color: #c0c0c0;
    -fx-border-color: #ffffff #7b7b7b #7b7b7b #ffffff;
    -fx-border-width: 3px;
    -fx-background-insets: 0;
    -fx-background-radius: 0;
    -fx-border-radius: 0;
    -fx-alignment: center;
}

.cell-mine {
    -fx-background-color: #bdbdbd;
    -fx-border-color: #7b7b7b;
    -fx-border-width: 1px;
    -fx-background-insets: 0;
    -fx-background-radius: 0;
    -fx-border-radius: 0;
    -fx-alignment: center;
}

.cell-exploded {
    -fx-background-color: #ff4444;
    -fx-border-color: #7b7b7b;
    -fx-border-width: 1px;
    -fx-background-insets: 0;
    -fx-background-radius: 0;
    -fx-border-radius: 0;
    -fx-alignment: center;
}

/* ── Number colors  ── */
.cell-num-1 { -fx-text-fill: #0000ff; }
.cell-num-2 { -fx-text-fill: #007b00; }
.cell-num-3 { -fx-text-fill: #ff0000; }
.cell-num-4 { -fx-text-fill: #00007b; }
.cell-num-5 { -fx-text-fill: #7b0000; }
.cell-num-6 { -fx-text-fill: #007b7b; }
.cell-num-7 { -fx-text-fill: #000000; }
.cell-num-8 { -fx-text-fill: #7b7b7b; }
/*End*/

@keyframes cellReveal {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

.title {
    font-size: 42px;
    font-weight: 700;
    color: #c0c0c0;
    letter-spacing: 2px;
    line-height: 1;
}

.title span {
    color: #fe0000;
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #555588;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ── Download card ── */
.download-card {
    background: #ffffff;
    color: #111;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.release-tag {
    display: inline-block;
    background: #1a1a2e;
    color: #c0c0c0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fe0000;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.15s;
}

.download-btn:hover {
    background: #cc0000;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.file-info {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* ── Section label ── */
.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #555588;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.75rem;
}

/* ── Steps ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #12122a;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 12px 14px;
}

.step-num {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #fe0000;
    min-width: 28px;
    line-height: 1.4;
}

.step-text {
    font-size: 15px;
    color: #c0c0c0;
    line-height: 1.5;
}

.step-text code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    padding: 1px 5px;
    border-radius: 3px;
    color: #aaaaff;
}

/* ── Warning ── */
.warning {
    border: 1px solid #5a4a00;
    background: #1a1500;
    color: #e8c84a;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 1rem;
}

/* ── Requirements grid ── */
.req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.req-item {
    background: #12122a;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 12px 14px;
}

.req-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #555588;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.req-value {
    font-size: 15px;
    font-weight: 700;
    color: #c0c0c0;
}

/* ── Footer ── */
.footer {
    text-align: center;
    font-size: 13px;
    color: #555588;
    margin-top: 1.5rem;
}

.footer a {
    color: #8888ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}