.eb-main {
    margin-top: 1rem;
}

/* ── How-to ──────────────────────────────────────────────────────────────── */
.eb-how-to {
    border: 1px solid rgba(0, 255, 255, 0.24);
    background: rgba(0, 255, 255, 0.04);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.eb-how-to h3 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-accent);
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
}

.eb-how-to ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--game-text);
}

.eb-how-to li {
    margin: 0.5rem 0;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.4;
}

.eb-how-to li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--game-accent);
}

/* ── Config panel ────────────────────────────────────────────────────────── */
.eb-config {
    border: 1px solid rgba(0, 255, 255, 0.24);
    background: rgba(0, 255, 255, 0.04);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.eb-config h3 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-accent);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.eb-config-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.eb-config-row label {
    color: var(--game-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    min-width: 150px;
}

.eb-config-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.eb-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.eb-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--game-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    cursor: pointer;
}

.eb-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--game-accent);
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    cursor: pointer;
}

.eb-speed-readout {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    white-space: nowrap;
    color: var(--game-accent);
    font-size: 0.95rem;
    min-width: 80px;
}

.eb-speed-unit {
    color: var(--game-muted);
    font-size: 0.78rem;
}

.eb-config-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.eb-cfg-btn {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: var(--game-muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.eb-cfg-btn:hover {
    background: rgba(0, 255, 255, 0.12);
    color: var(--game-accent);
    border-color: rgba(0, 255, 255, 0.6);
}

.eb-cfg-btn.active {
    background: rgba(0, 255, 255, 0.16);
    border-color: var(--game-accent);
    color: var(--game-accent);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.eb-config-note {
    color: var(--game-muted);
    font-size: 0.78rem;
    margin: 0.6rem 0 0;
    opacity: 0.7;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.eb-card {
    border: 1px solid rgba(0, 255, 255, 0.28);
    background: rgba(3, 9, 9, 0.9);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.14);
    padding: 0.8rem;
}

.eb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.65rem 0.8rem;
    flex-wrap: wrap;
}

.eb-title {
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.8rem;
    color: var(--game-text);
}

.eb-stats {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.eb-stats span {
    border: 1px solid rgba(0, 255, 255, 0.32);
    background: rgba(0, 255, 255, 0.05);
    padding: 0.45rem 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-muted);
}

.eb-stats strong {
    color: var(--game-accent);
}

.eb-instruction {
    margin-top: 0.7rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.38);
    padding: 0.55rem;
    color: var(--game-muted);
    text-align: center;
}

/* ── Readouts ────────────────────────────────────────────────────────────── */
.eb-readouts {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.eb-readout-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.eb-readout-label {
    font-family: Consolas, monospace;
    font-size: 0.78rem;
    color: var(--game-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eb-readout-val {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--game-accent);
    letter-spacing: 0.06em;
    min-width: 3ch;
    transition: color 0.15s;
}

.eb-readout-val.correct { color: #22c55e; }
.eb-readout-val.close   { color: #f59e0b; }
.eb-readout-val.wrong   { color: #ef4444; }

/* ── Simon display ───────────────────────────────────────────────────────── */
.eb-simon-display {
    display: none;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.9rem;
    padding: 0.7rem;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.eb-simon-display.visible {
    display: flex;
}

.eb-simon-label {
    font-family: Consolas, monospace;
    font-size: 0.78rem;
    color: var(--game-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.eb-simon-leds {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.eb-simon-led {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: background 0.1s, box-shadow 0.1s;
}

.eb-simon-led.lit {
    background: #00ffff;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.8);
    border-color: #00ffff;
}

.eb-simon-led.user-lit {
    background: rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* ── Board / switches ────────────────────────────────────────────────────── */
.eb-board {
    margin-top: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.22);
    padding: 1.2rem 1rem;
}

.eb-switches {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual switch block */
.eb-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.12s;
    min-width: 64px;
}

.eb-switch:hover .eb-switch-body {
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.eb-switch.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.eb-switch-body {
    width: 64px;
    height: 90px;
    border: 2px solid rgba(0, 255, 255, 0.28);
    background: rgba(0, 20, 20, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.eb-switch.on .eb-switch-body {
    border-color: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
    background: rgba(0, 30, 0, 0.7);
}

.eb-switch.flash .eb-switch-body {
    border-color: #00ffff;
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.7);
    background: rgba(0, 40, 40, 0.9);
}

/* Lever graphic */
.eb-lever-track {
    width: 6px;
    height: 44px;
    background: rgba(0, 255, 255, 0.12);
    border-radius: 3px;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.eb-lever-knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.7);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2px;
    transition: bottom 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.eb-switch.on .eb-lever-knob {
    bottom: calc(100% - 18px);
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.eb-switch.flash .eb-lever-knob {
    background: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 1);
}

/* Switch value label */
.eb-switch-val {
    font-family: Consolas, monospace;
    font-size: 0.82rem;
    color: rgba(0, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.eb-switch.on .eb-switch-val {
    color: #22c55e;
}

/* ON/OFF badge */
.eb-switch-state {
    font-family: Consolas, monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-muted);
    padding: 0.1rem 0.3rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 2px;
}

.eb-switch.on .eb-switch-state {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
}

/* ── Feedback ────────────────────────────────────────────────────────────── */
.eb-feedback {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 2.5rem;
    text-align: center;
    margin-top: 0.8rem;
    transition: color 0.15s;
}

.eb-feedback.correct { color: #22c55e; }
.eb-feedback.wrong   { color: #ef4444; }
.eb-feedback.info    { color: #00ffff; }

/* ── Start button ────────────────────────────────────────────────────────── */
.eb-start-btn {
    display: block;
    margin: 1rem auto 0;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.85rem 3rem;
    background: rgba(0, 255, 255, 0.06);
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: var(--game-accent);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
}

.eb-start-btn:hover {
    background: rgba(0, 255, 255, 0.14);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.22);
}

.eb-start-btn:active {
    background: rgba(0, 255, 255, 0.22);
}

.eb-start-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
