body { background: #fef9e7; }

.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.35);
    box-shadow: 0 4px 6px rgba(0,0,0,0.18);
}

.page-wrapper {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

h1 { font-size: 1.8rem; color: #222; margin-bottom: 0.25rem; }
.subtitle { color: #555; margin-bottom: 2rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}
.back-link .back-arrow { display: inline-block; transition: transform 0.2s; }
.back-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 119, 6, 0.6); }
.back-link:hover .back-arrow { transform: translateX(-4px); }
.back-link:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45); }

.controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.controls label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    margin-right: 0.4rem;
}

.controls select, .controls input[type="range"] {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.controls input[type="color"] {
    width: 36px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.size-value {
    font-size: 0.9rem;
    color: #666;
    min-width: 20px;
}

#wall {
    min-height: 60px;
}

#wall h2 {
    color: #888;
    font-size: 1.1rem;
    font-weight: 400;
}

.wall-row {
    display: flex;
}

.brick {
    width: 60px;
    height: 28px;
    border: 2px solid rgba(0,0,0,0.25);
    border-radius: 3px;
    margin: 2px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.wall-row.staggered {
    margin-left: 31px;
}

.instructions {
    margin-top: 3rem;
    border-top: 2px solid #e5e7eb;
    padding-top: 2rem;
}

.instructions h2 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.3rem;
}

.step-content p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    overflow-x: auto;
    line-height: 1.6;
    white-space: pre;
}

.code-block .kw  { color: #569cd6; }
.code-block .fn  { color: #dcdcaa; }
.code-block .str { color: #ce9178; }
.code-block .cmt { color: #6a9955; }
.code-block .num { color: #b5cea8; }

/* ── Inline-style replacement utilities ── */
.copy-hint    { font-size: 0.88rem; color: #555; margin-bottom: 1rem; }
.copy-wrapper { position: relative; }
.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
.code-pre { padding-top: 2.5rem; white-space: pre; overflow-x: auto; }
