/* ==========================================================================
   SemanticHero 🦸 - HeroOS & W3C Shield Edition (4-Quadrant Layout & Theme)
   Stylistyka komiksowego systemu HeroOS: głęboki indygo-fiolet, złoto tarczy CKE,
   szmaragd czystego HTML5, wyraźne kontury :focus-visible i animacje pojedynku.
   ========================================================================== */

:root {
    --hero-bg-deep: #0b071a;
    --hero-surface: #130e2a;
    --hero-surface-alt: #1b143b;
    --hero-panel-header: linear-gradient(180deg, #271e52 0%, #191238 100%);
    --hero-menubar: linear-gradient(180deg, #241b4b 0%, #130d2b 100%);

    --hero-purple: #8b5cf6;
    --hero-purple-bright: #a78bfa;
    --hero-purple-deep: #5b21b6;
    --hero-gold: #facc15;
    --hero-amber: #f59e0b;
    --hero-emerald: #10b981;
    --hero-emerald-light: #34d399;
    --hero-danger: #ef4444;
    --hero-danger-light: #f87171;
    --hero-cyan: #38bdf8;

    --hero-border: rgba(167, 139, 250, 0.28);
    --hero-border-strong: rgba(167, 139, 250, 0.52);
    --hero-text: #f8fafc;
    --hero-text-muted: #cbd5e1;
    --hero-text-dim: #94a3b8;

    --hero-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hero-mono: "JetBrains Mono", Consolas, monospace;
    --hero-transition: all 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Wyraźne i dostępne wskaźniki fokusu klawiaturowego (WCAG 2.4.7 / 2.4.11) */
body.theme-semantichero :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--hero-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   Układ Pełnoekranowy 100vh (4 Kwadranty)
   ========================================================================== */
body.theme-semantichero {
    background:
        radial-gradient(circle at 15% 18%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 22%, rgba(250, 204, 21, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 50% 88%, rgba(16, 185, 129, 0.14) 0%, transparent 50%),
        linear-gradient(135deg, #090517 0%, #120c29 50%, #0a071a 100%);
    color: var(--hero-text);
    font-family: var(--hero-font);
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body.theme-semantichero.embed-mode .hero-home-btn {
    display: none;
}

.scroller::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
.scroller::-webkit-scrollbar-track {
    background: #0d0821;
}
.scroller::-webkit-scrollbar-thumb {
    background: #3b2d70;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.scroller::-webkit-scrollbar-thumb:hover {
    background: var(--hero-purple);
}

/* ==========================================================================
   Górny Pasek HeroOS Menu Bar
   ========================================================================== */
.top-navbar.hero-menubar {
    height: 46px !important;
    min-height: 46px;
    padding: 0 10px !important;
    background: var(--hero-menubar) !important;
    border-bottom: 1px solid rgba(167, 139, 250, 0.45) !important;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.hero-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: var(--hero-transition);
}
.hero-home-btn:hover {
    background: var(--hero-purple);
    border-color: var(--hero-purple-bright);
    color: #ffffff;
}

.brand.hero-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(250, 204, 21, 0.18) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.5);
    user-select: none;
}

.brand-icon {
    font-size: 1.1rem;
}
.brand-accent {
    color: var(--hero-gold);
}
.brand-badge {
    background: linear-gradient(180deg, #8b5cf6 0%, #5b21b6 100%);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-daemons-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(9, 5, 23, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 5px;
    font-family: var(--hero-mono);
    font-size: 0.64rem;
    color: #cbd5e1;
}
.daemon-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.daemon-sep {
    color: #64748b;
}
.daemon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hero-emerald);
    box-shadow: 0 0 6px var(--hero-emerald);
    display: inline-block;
}

.hero-led-panel {
    background: linear-gradient(180deg, #0b071a 0%, #160f33 100%);
    border: 1px solid #4c3b85;
    border-radius: 5px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.led-divider {
    color: #4c3b85;
    font-size: 0.7rem;
}
.brand-progress-badge {
    font-family: var(--hero-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #c4b5fd;
}
.brand-shields-badge {
    font-family: var(--hero-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--hero-gold);
    cursor: help;
}

/* Pasek 30 Pigułek Poziomów */
.levels-bar-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.level-pills {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.level-pill {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border-radius: 4px;
    font-family: var(--hero-mono);
    font-size: 0.64rem;
    font-weight: 700;
    background: linear-gradient(180deg, #2d225c 0%, #1c143d 100%);
    color: #cbd5e1;
    border: 1px solid rgba(167, 139, 250, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--hero-transition);
}
.level-pill:hover:not(:disabled) {
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    border-color: #ddd6fe;
    transform: translateY(-1px);
}
.level-pill.completed {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #6ee7b7;
}
.level-pill.has-shield {
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.7);
    border-color: var(--hero-gold);
}
.level-pill.active {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: var(--hero-gold);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
    transform: scale(1.08);
}
.level-pill.locked {
    opacity: 0.36;
    cursor: not-allowed;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.hero-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(180deg, #3b2d70 0%, #241b4b 100%);
    color: #f8fafc;
    border: 1px solid var(--hero-border-strong);
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hero-transition);
}
.hero-nav-btn:hover {
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
    border-color: var(--hero-gold);
}

.theme-semantichero .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 6px;
    background: #1c143d;
    border: 1px solid var(--hero-border);
    color: #f8fafc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.theme-semantichero .btn-icon:hover {
    background: #2e225e;
    border-color: var(--hero-purple-bright);
}
.theme-semantichero .btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #f87171;
}

/* ==========================================================================
   Kontener 4 Kwadrantów
   ========================================================================== */
body.theme-semantichero .game-container {
    flex: 1;
    min-height: 0;
    padding: 8px;
    max-width: none !important;
    width: 100%;
    margin: 0;
    display: flex;
    overflow: hidden;
}

body.theme-semantichero .game-workspace {
    flex: 1;
    min-height: 0;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100%;
}

.workspace-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    min-width: 0;
}

.quadrant-card {
    background: var(--hero-surface);
    border: 1px solid var(--hero-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.quadrant-task {
    flex: 1.08;
}
.quadrant-tools {
    flex: 0.92;
}
.quadrant-code {
    flex: 1.05;
}
.quadrant-live {
    flex: 0.95;
}

/* Belka Tytułowa Okna HeroOS */
.hero-titlebar {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    background: var(--hero-panel-header);
    border-bottom: 1px solid var(--hero-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
}

.hero-window-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.dot-purple { background: #a855f7; }
.dot-gold { background: #facc15; }
.dot-emerald { background: #10b981; }

.hero-titlebar-center {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}
.hero-app-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-titlebar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.hero-pill-tag {
    font-family: var(--hero-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.25);
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.35);
}

/* ==========================================================================
   KWADRANT 1: Misja CKE & Walka z Dr. Divozą
   ========================================================================== */
.task-window-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}
.level-header-tags,
.level-right-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid transparent;
}
.tag-level {
    background: rgba(139, 92, 246, 0.25);
    color: #ddd6fe;
    border-color: rgba(167, 139, 250, 0.4);
}
.tag-phase {
    background: rgba(56, 189, 248, 0.16);
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.35);
}
.tag-exam {
    font-family: var(--hero-mono);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.15);
}
.tag-shield {
    background: rgba(250, 204, 21, 0.14);
    color: #fde047;
    border-color: rgba(250, 204, 21, 0.38);
}
.tag-shield.earned {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.32), rgba(245, 158, 11, 0.28));
    color: #fef08a;
    border-color: #facc15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}
.tag-points {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
}

/* Pasek Walki z Dr. Divozą i Divoza Index */
.villain-battle-bar {
    background: linear-gradient(135deg, #1b123b 0%, #261347 100%);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 9px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--hero-transition);
}
.villain-battle-bar.mood-victory {
    background: linear-gradient(135deg, #063024 0%, #0d3b2e 100%);
    border-color: rgba(16, 185, 129, 0.6);
}
.villain-battle-bar.mood-hit {
    animation: villainHit 0.35s ease;
    border-color: var(--hero-danger-light);
}

.villain-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(9, 5, 23, 0.7);
    border: 2px solid var(--hero-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.villain-battle-bar.mood-victory .villain-avatar {
    animation: miniVillainFlee 0.8s ease forwards;
}

.villain-battle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.villain-battle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}
.villain-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.villain-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
}
.villain-subtitle {
    font-size: 0.67rem;
    color: #c4b5fd;
}
.villain-metrics-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.divoza-index-pill {
    font-family: var(--hero-mono);
    font-size: 0.67rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid;
}
.divoza-index-pill.high {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
}
.divoza-index-pill.mid {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.5);
}
.divoza-index-pill.clean {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.6);
}
.villain-hp-text {
    font-family: var(--hero-mono);
    font-size: 0.66rem;
    font-weight: 700;
    color: #e2e8f0;
}

.meters-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.meter-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.meter-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.meter-track {
    height: 7px;
    background: rgba(9, 5, 23, 0.85);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.meter-fill {
    height: 100%;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}
.divoza-fill {
    width: var(--divoza-pct, 100%);
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
}
.hp-fill {
    width: var(--hp-pct, 100%);
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 100%);
}
.villain-mood-desc {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-style: italic;
}

/* Dokument zadania */
.hero-doc-well {
    background: rgba(11, 7, 26, 0.6);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 8px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.theme-semantichero .level-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}
.theme-semantichero .level-instruction {
    font-size: 0.81rem;
    color: #e2e8f0;
    line-height: 1.48;
}
.theme-semantichero .level-instruction code {
    background: rgba(139, 92, 246, 0.24);
    color: #fde047;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--hero-mono);
    font-size: 0.77rem;
}

/* Zwijana Checklista CKE (<details>) */
.cke-checklist-box {
    background: rgba(27, 20, 59, 0.65);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 6px;
    padding: 5px 8px;
}
.cke-checklist-header {
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 700;
    color: #c4b5fd;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.cke-checklist-badge {
    font-family: var(--hero-mono);
    background: rgba(139, 92, 246, 0.35);
    color: #fde047;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.66rem;
}
.cke-checklist-toggle-hint {
    margin-left: auto;
    font-size: 0.66rem;
    color: #94a3b8;
    font-weight: 500;
}
.cke-checklist {
    list-style: none;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 2px;
}
.cke-checklist li {
    font-size: 0.73rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cke-checklist li.passed {
    color: #6ee7b7;
}

/* Pułapka i Wskazówki */
.cke-trap-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 6px;
    padding: 8px 10px;
}
.cke-trap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.cke-trap-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--hero-gold);
}
.cke-trap-close-btn {
    background: transparent;
    border: none;
    color: #fde047;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}
.cke-trap-desc {
    font-size: 0.76rem;
    color: #fef3c7;
    line-height: 1.4;
}
.cke-hints-extra {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inline-hint-item {
    font-size: 0.74rem;
    color: #e2e8f0;
    background: rgba(11, 7, 26, 0.5);
    padding: 4px 7px;
    border-radius: 4px;
    border-left: 2px solid var(--hero-gold);
}

/* Dolny pasek akcji */
.task-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.theme-semantichero .workspace-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hero-action-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    color: #ffffff;
    border: 1px solid #a78bfa !important;
    padding: 7px 13px !important;
    border-radius: 7px !important;
    font-size: 0.77rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--hero-transition);
}
.hero-action-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
}
.hero-metal-btn {
    background: #1f1745 !important;
    color: #e2e8f0 !important;
    border: 1px solid var(--hero-border-strong) !important;
    padding: 7px 11px !important;
    border-radius: 7px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.hero-metal-btn:hover {
    background: #2e2263 !important;
}
.hero-emerald-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #6ee7b7 !important;
    padding: 7px 13px !important;
    border-radius: 7px !important;
    font-size: 0.77rem !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.theme-semantichero .feedback-box {
    display: none;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    line-height: 1.4;
}
.theme-semantichero .feedback-box.active {
    display: block;
}
.theme-semantichero .feedback-box.success {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #a7f3d0;
}
.theme-semantichero .feedback-box.error {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fecaca;
}
.theme-semantichero .feedback-box.warning {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fde68a;
}

/* ==========================================================================
   KWADRANT 2: Rysunek 1 CKE, Drzewo DOM & Kreator Formularzy/Tabel
   ========================================================================== */
.q2-mode-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}
.q2-tab-btn,
.pv-view-tab {
    background: rgba(11, 7, 26, 0.6);
    color: #cbd5e1;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hero-transition);
}
.q2-tab-btn:hover,
.pv-view-tab:hover {
    color: #ffffff;
    border-color: var(--hero-purple-bright);
}
.q2-tab-btn.active,
.pv-view-tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    border-color: var(--hero-gold);
}

.q2-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px;
}

/* Papierowy Rysunek 1 CKE */
.blueprint-paper {
    background: #f8fafc;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.blueprint-paper-header {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
    border-bottom: 2px dashed #94a3b8;
    padding-bottom: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blueprint-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blueprint-wireframe-block {
    border: 2px solid #334155;
    background: #ffffff;
    border-radius: 4px;
    padding: 6px 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.blueprint-wireframe-block.role-header { background: #ede9fe; border-color: #7c3aed; }
.blueprint-wireframe-block.role-nav { background: #e0f2fe; border-color: #0284c7; }
.blueprint-wireframe-block.role-main { background: #dcfce7; border-color: #16a34a; }
.blueprint-wireframe-block.role-footer { background: #fef3c7; border-color: #d97706; }
.blueprint-wireframe-block.role-form { background: #fae8ff; border-color: #9333ea; }
.blueprint-wireframe-block.role-table { background: #e0e7ff; border-color: #4f46e5; }
.bp-label {
    font-family: var(--hero-mono);
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
}
.bp-detail {
    font-size: 0.7rem;
    color: #475569;
    font-weight: 600;
}

/* Drzewo Semantyczne DOM */
.tree-section-box {
    background: #0d0821;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 7px;
    padding: 9px 11px;
    margin-bottom: 8px;
}
.tree-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #c4b5fd;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dom-tree-node {
    font-family: var(--hero-mono);
    font-size: 0.74rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: 5px;
}
.dom-tree-node.is-semantic { color: #34d399; font-weight: 700; }
.dom-tree-node.is-div { color: #f87171; font-weight: 700; text-decoration: line-through; }
.dom-tree-node.is-obsolete { color: #fb923c; font-weight: 700; }
.dom-tree-node.is-neutral { color: #cbd5e1; }
.dom-tree-attr {
    font-size: 0.67rem;
    color: #fde047;
    font-weight: 500;
    text-decoration: none;
}

/* Kreator Formularzy i Tabel CKE */
.builder-card {
    background: rgba(11, 7, 26, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.32);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.77rem;
    font-weight: 800;
    color: #f8fafc;
}
.builder-pill {
    font-size: 0.64rem;
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.45);
    padding: 1px 6px;
    border-radius: 999px;
}
.builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.builder-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.builder-field label {
    font-size: 0.67rem;
    font-weight: 700;
    color: #c4b5fd;
}
.builder-field input,
.builder-field select {
    background: #160f33;
    color: #f8fafc;
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 0.74rem;
    font-family: var(--hero-mono);
}
.builder-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.builder-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #e2e8f0;
    cursor: pointer;
}
.hero-mini-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #6ee7b7;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}
.hero-mini-btn:hover {
    filter: brightness(1.08);
}
.builder-code-preview {
    background: #090517;
    border: 1px dashed rgba(167, 139, 250, 0.4);
    border-radius: 6px;
    padding: 7px 9px;
    font-family: var(--hero-mono);
    font-size: 0.72rem;
    color: #34d399;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0;
}

/* ==========================================================================
   KWADRANT 3: VSCode_Hero — Kod Zainfekowany + Edytor HTML5
   ========================================================================== */
.code-window-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.code-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.infected-panel {
    flex: 0.72;
    border-bottom: 1px solid var(--hero-border);
}
.html-editor-panel {
    flex: 1.28;
}

.code-panel-header {
    padding: 5px 10px;
    background: #171033;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}
.code-header-left,
.code-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.code-lang-tag {
    font-family: var(--hero-mono);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}
.infected-lang-badge {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}
.html-lang-badge {
    background: rgba(139, 92, 246, 0.35);
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.5);
}
.code-panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
}
.code-scope-pill {
    font-size: 0.62rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Przełącznik Trybu Hardcore */
.hero-hardcore-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.hardcore-label-title {
    font-size: 0.63rem;
    font-weight: 800;
    color: var(--hero-gold);
}
.hero-hardcore-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.hero-switch-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #271e52;
    border: 1px solid #4c3b85;
    font-family: var(--hero-mono);
    font-size: 0.61rem;
    font-weight: 800;
    color: #cbd5e1;
    transition: var(--hero-transition);
}
.hero-hardcore-toggle input:checked + .hero-switch-track {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: #fca5a5;
    color: #ffffff;
}

.infected-code-wrapper {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #090517;
    padding: 7px 10px;
}
.infected-code-display {
    font-family: var(--hero-mono);
    font-size: 0.72rem;
    line-height: 1.45;
    color: #94a3b8;
    margin: 0;
    white-space: pre-wrap;
}
.infected-div-hit {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
}

/* Chipy szybkie i przycisk formatowania */
.html-quick-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #120c29;
    border-bottom: 1px solid rgba(167, 139, 250, 0.16);
    flex-wrap: wrap;
}
.html-chip-btn {
    font-family: var(--hero-mono);
    font-size: 0.65rem;
    font-weight: 700;
    background: #1f1745;
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
}
.html-chip-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: var(--hero-gold);
}

.hero-format-btn {
    background: #1f1745;
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
}
.hero-format-btn:hover {
    background: #6d28d9;
    color: #ffffff;
}
.html-line-error-badge {
    font-family: var(--hero-mono);
    font-size: 0.64rem;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.55);
    padding: 1px 6px;
    border-radius: 4px;
}

.theme-semantichero .editor-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 10px;
    background: #0d0821;
}

.guided-block-card {
    background: #130d2e;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 7px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}
.guided-block-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #c4b5fd;
}
.locked-code-fragment {
    font-family: var(--hero-mono);
    font-size: 0.73rem;
    color: #64748b;
    background: rgba(9, 5, 23, 0.75);
    padding: 4px 7px;
    border-radius: 4px;
    white-space: pre-wrap;
    margin: 0;
}

.code-editor-wrap {
    display: flex;
    flex: 1;
    min-height: 120px;
    background: #090517;
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 6px;
    overflow: hidden;
}
.code-gutter {
    width: 32px;
    padding: 7px 4px;
    background: #130d2b;
    border-right: 1px solid rgba(167, 139, 250, 0.2);
    font-family: var(--hero-mono);
    font-size: 0.73rem;
    line-height: 1.5;
    color: #64748b;
    text-align: right;
    user-select: none;
    overflow: hidden;
}
.code-gutter-line.has-error {
    background: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-weight: 800;
    border-radius: 2px;
}

.hero-code-textarea {
    flex: 1;
    width: 100%;
    min-height: 120px;
    background: transparent;
    color: #f8fafc;
    border: none;
    padding: 7px 9px;
    font-family: var(--hero-mono);
    font-size: 0.77rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}

/* ==========================================================================
   KWADRANT 4: Podgląd Live, Pojedynek, Audytor WCAG & Porównywarka DOM
   ========================================================================== */
.preview-view-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #171033;
    border-bottom: 1px solid var(--hero-border);
}
.wcag-tab-badge {
    font-family: var(--hero-mono);
    font-size: 0.63rem;
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    padding: 1px 5px;
    border-radius: 999px;
}

.preview-viewport {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scena Pojedynku Komiksowego */
.comic-battle-stage {
    background: radial-gradient(circle at 50% 45%, #3b1c7a 0%, #150930 100%);
    border: 2px solid #7c3aed;
    border-radius: 9px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 76px;
}
.fighter-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 2;
}
.fighter-sprite {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}
.fighter-tag {
    font-size: 0.62rem;
    font-weight: 800;
    color: #ddd6fe;
    background: rgba(9, 5, 23, 0.75);
    padding: 1px 6px;
    border-radius: 4px;
}
.flee-dust {
    display: none;
    position: absolute;
    left: -18px;
    top: 8px;
    font-size: 1.3rem;
}

/* Animacja ucieczki Dr. Divozy w popłochu */
.villain-side.villain-fleeing {
    animation: divozaFlee 1.15s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
.villain-side.villain-fleeing .flee-dust {
    display: block;
}

.comic-center-stage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.comic-callout-bubble {
    background: #ffffff;
    color: #1e1b4b;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 12px;
    border: 3px solid #1e1b4b;
    box-shadow: 4px 4px 0 #facc15;
    text-align: center;
    transform: rotate(-1.5deg);
}
.comic-callout-bubble.state-kapow {
    background: #fde047;
    color: #1e1b4b;
    border-color: #ef4444;
    box-shadow: 4px 4px 0 #10b981;
    animation: comicPop 0.45s cubic-bezier(0.18, 1.35, 0.4, 1);
}
.comic-callout-bubble.state-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #dc2626;
    box-shadow: 3px 3px 0 #1e1b4b;
}

/* Pasek narzędzi piaskownicy */
.sandbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #171033;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 6px;
    padding: 5px 9px;
}
.sandbox-url {
    font-family: var(--hero-mono);
    font-size: 0.68rem;
    color: #94a3b8;
}
.xray-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fde047;
    cursor: pointer;
}

/* Żywy bezpieczny podgląd dokumentu ucznia */
.live-html-preview {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    min-height: 150px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.live-html-preview header,
.live-html-preview nav,
.live-html-preview main,
.live-html-preview aside,
.live-html-preview footer,
.live-html-preview section,
.live-html-preview article,
.live-html-preview figure {
    border-radius: 5px;
    padding: 6px 8px;
    margin: 4px 0;
}
.live-html-preview h1 { font-size: 1.25rem; margin: 4px 0; color: #1e1b4b; }
.live-html-preview h2 { font-size: 1.05rem; margin: 4px 0; color: #312e81; }
.live-html-preview h3 { font-size: 0.92rem; margin: 4px 0; color: #4338ca; }
.live-html-preview h4 { font-size: 0.84rem; margin: 4px 0; color: #64748b; }
.live-html-preview ul,
.live-html-preview ol {
    padding-left: 20px;
    margin: 4px 0;
}
.live-html-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: 0.8rem;
}
.live-html-preview th,
.live-html-preview td {
    border: 1px solid #94a3b8;
    padding: 5px 8px;
    text-align: left;
}
.live-html-preview thead th {
    background: #ede9fe;
    color: #1e1b4b;
    font-weight: 800;
}
.live-html-preview form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.live-html-preview fieldset {
    border: 2px solid #8b5cf6;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.live-html-preview legend {
    font-weight: 800;
    color: #5b21b6;
    padding: 0 5px;
}
.live-html-preview label {
    font-weight: 700;
    font-size: 0.78rem;
    color: #1e293b;
}
.live-html-preview input:not([type="radio"]):not([type="checkbox"]),
.live-html-preview select {
    padding: 4px 7px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font-size: 0.8rem;
}
.live-html-preview button[type="submit"],
.live-html-preview button[type="button"] {
    align-self: flex-start;
    background: #6d28d9;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    font-weight: 700;
    cursor: pointer;
}
.live-html-preview .mock-img-card {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 10px;
    border: 2px dashed #64748b;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 0.76rem;
}
.live-html-preview .mock-img-alt-ok {
    color: #047857;
    font-weight: 700;
}
.live-html-preview .mock-img-alt-missing {
    color: #b91c1c;
    font-weight: 800;
}
.live-html-preview .mock-media-card {
    padding: 7px 10px;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    font-family: var(--hero-mono);
    font-size: 0.75rem;
}

/* Tryb Rentgena Tagów Semantycznych */
.live-html-preview.xray-active :is(header, nav, main, aside, footer, section, article, figure, figcaption, form, fieldset, table, thead, tbody) {
    outline: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.08);
    position: relative;
    padding-top: 18px;
}
.live-html-preview.xray-active :is(header, nav, main, aside, footer, section, article, figure, form, fieldset, table)::before {
    content: "<" attr(data-xray-tag) ">";
    position: absolute;
    top: 2px;
    left: 4px;
    font-family: var(--hero-mono);
    font-size: 0.62rem;
    font-weight: 800;
    background: #059669;
    color: #ffffff;
    padding: 0 5px;
    border-radius: 3px;
}
.live-html-preview.xray-active div {
    outline: 2px dashed #ef4444;
    background: rgba(239, 68, 68, 0.12);
    position: relative;
    padding: 18px 8px 6px;
    margin: 4px 0;
}
.live-html-preview.xray-active div::before {
    content: "☣️ <div> (DIVOZA)";
    position: absolute;
    top: 2px;
    left: 4px;
    font-family: var(--hero-mono);
    font-size: 0.62rem;
    font-weight: 800;
    background: #dc2626;
    color: #ffffff;
    padding: 0 5px;
    border-radius: 3px;
}

/* Karty Audytora WCAG 2.2 */
.wcag-audit-mount {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wcag-card {
    background: #130d2b;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 7px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wcag-card.pass { border-left: 4px solid #10b981; }
.wcag-card.warn { border-left: 4px solid #f59e0b; }
.wcag-card.fail { border-left: 4px solid #ef4444; background: rgba(239, 68, 68, 0.1); }
.wcag-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 800;
}
.wcag-card-detail {
    font-size: 0.71rem;
    color: #cbd5e1;
}

/* Porównywarka DOM (Diff) */
.dom-diff-mount {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.diff-section {
    background: #130d2b;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 7px;
    padding: 8px 10px;
}
.diff-title {
    font-size: 0.73rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.diff-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.diff-chip {
    font-family: var(--hero-mono);
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.diff-chip.ok { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.45); }
.diff-chip.missing { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.45); }
.diff-chip.divoza { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); }

/* Pasek stanu dolny */
.hero-statusbar {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    background: #130d2b;
    border-top: 1px solid var(--hero-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.69rem;
    color: #cbd5e1;
}
.hero-status-left,
.hero-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-status-pill {
    font-family: var(--hero-mono);
    font-size: 0.65rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Modale HeroOS
   ========================================================================== */
.hero-dialog {
    background: #140e2e !important;
    border: 1px solid var(--hero-border-strong) !important;
    padding: 0 !important;
    overflow: hidden;
}
.hero-dialog-wide {
    max-width: 820px !important;
    width: 92vw !important;
}
.hero-dialog-body {
    padding: 14px 16px;
    overflow-y: auto;
}
.cheatsheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cheat-card {
    background: #0b071a;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 7px;
    padding: 9px 11px;
}
.cheat-card h4 {
    font-size: 0.77rem;
    color: var(--hero-gold);
    margin-bottom: 6px;
}
.cheat-card pre {
    font-family: var(--hero-mono);
    font-size: 0.69rem;
    color: #e2e8f0;
    white-space: pre-wrap;
    margin: 0;
}
.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #fca5a5;
    padding: 7px 13px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   Animacje Komiksowe
   ========================================================================== */
@keyframes comicPop {
    0% { transform: scale(0.6) rotate(-6deg); opacity: 0.3; }
    65% { transform: scale(1.12) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(-1.5deg); opacity: 1; }
}

@keyframes villainHit {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    45% { transform: translateX(6px); }
    70% { transform: translateX(-4px); }
}

@keyframes miniVillainFlee {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    40% { transform: translateX(12px) rotate(14deg) scale(0.95); opacity: 0.9; }
    100% { transform: translateX(36px) scale(0.7); opacity: 0.45; }
}

@keyframes divozaFlee {
    0% { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
    25% { transform: translateX(-8px) rotate(-10deg) scale(1.06); opacity: 1; }
    100% { transform: translateX(140px) rotate(18deg) scale(0.45); opacity: 0; }
}

/* Responsywność poniżej 1024px */
@media (max-width: 1024px) {
    body.theme-semantichero {
        height: auto;
        overflow-y: auto;
    }
    body.theme-semantichero .game-container {
        overflow: visible;
    }
    body.theme-semantichero .game-workspace {
        grid-template-columns: 1fr !important;
    }
    .wcag-audit-mount,
    .cheatsheet-grid,
    .builder-grid {
        grid-template-columns: 1fr;
    }
}
