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

        :root {
            --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
            --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
            --primary-color: #2563eb;
            --primary-dark: #1d4ed8;
            --dark-bg: #0f172a;
            --light-text: #f8fafc;
            --secondary-text: #cbd5e1;
            --muted-text: #64748b;
            --border-color: #1e293b;
            --surface: #131c31;
        }

        html, body {
            height: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
            background-color: var(--dark-bg);
            color: var(--light-text);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Lluvia Tetris de fondo */
        #bg-tetris {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        /* Resplandor sutil de fondo */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 50% 45% at 72% 35%, rgba(37, 99, 235, 0.13), transparent),
                radial-gradient(ellipse 40% 35% at 15% 85%, rgba(37, 99, 235, 0.07), transparent);
            pointer-events: none;
            z-index: 0;
        }

        .hero {
            position: relative;
            z-index: 1;
            min-height: 100dvh;
            max-width: 1200px;
            margin: 0 auto;
            padding: clamp(20px, 4vh, 48px) clamp(20px, 4vw, 48px);
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: clamp(32px, 6vw, 88px);
            align-items: center;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .content {
            max-width: 560px;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--muted-text);
            margin-bottom: 18px;
        }

        .eyebrow::before {
            content: '';
            width: 28px;
            height: 2px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .name {
            font-size: clamp(2.4rem, 5.2vw, 4rem);
            font-weight: 700;
            letter-spacing: -1.5px;
            line-height: 1.12;
            padding-bottom: 0.14em;
            margin-bottom: 6px;
            background: linear-gradient(110deg, var(--light-text) 20%, #b9cdf2 40%, #eef4ff 50%, #93a8c8 72%);
            background-size: 220% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: riseIn 0.55s 0.1s var(--ease-out-strong) both, nameSheen 7s 2.5s ease-in-out infinite;
        }

        .title {
            font-size: clamp(1.1rem, 2vw, 1.35rem);
            color: var(--light-text);
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .title-sub {
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            color: var(--secondary-text);
            font-weight: 400;
            margin-bottom: 6px;
        }

        .company {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 1.05rem;
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
            margin-bottom: 24px;
            transition: color 0.2s ease;
        }

        .company:hover {
            color: #5b8bf5;
        }

        .company svg {
            width: 14px;
            height: 14px;
            opacity: 0.7;
        }

        .typewriter {
            font-size: 1.05rem;
            color: var(--secondary-text);
            margin-bottom: 34px;
            min-height: 1.9em;
        }

        .tw-word {
            color: var(--primary-color);
            font-weight: 600;
        }

        .tw-caret {
            display: inline-block;
            width: 2px;
            height: 1.05em;
            background: var(--primary-color);
            margin-left: 3px;
            vertical-align: text-bottom;
            animation: blink 1s steps(1) infinite;
        }

        @keyframes blink {
            50% { opacity: 0; }
        }

        .cta-links {
            display: flex;
            gap: 38px;
            align-items: center;
            margin-bottom: 38px;
            flex-wrap: wrap;
        }

        .cta {
            position: relative;
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--light-text);
            text-decoration: none;
            padding: 2px 0 7px;
            display: inline-flex;
            gap: 9px;
            align-items: center;
        }

        .cta::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 100%;
            background: var(--primary-color);
            border-radius: 2px;
            transform: scaleX(0.35);
            transform-origin: left;
            transition: transform 0.35s ease;
        }

        .cta:hover::after,
        .cta:focus-visible::after {
            transform: scaleX(1);
        }

        .cta-arrow {
            color: var(--primary-color);
            transition: transform 0.3s ease;
        }

        .cta:hover .cta-arrow {
            transform: translateX(5px);
        }

        .cta-muted {
            color: var(--secondary-text);
            font-weight: 500;
        }

        .cta-muted::after {
            background: #475569;
            transform: scaleX(0);
        }

        .cta-muted:hover {
            color: var(--light-text);
        }

        .social-links {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .social-link {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--surface);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary-text);
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .social-link svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .social-link:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            transform: translateY(-4px);
        }

        .social-link-mc {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            border: none;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .social-link-mc:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .social-link-mc:hover:before {
            left: 100%;
        }

        .mc-badge {
            font-size: 1.05rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            font-family: 'Courier New', monospace;
        }

        .location {
            margin-top: 28px;
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 0.88rem;
            color: var(--muted-text);
        }

        .location svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        /* ── Foto ── */
        .image-section {
            position: relative;
        }

        .photo-frame {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            aspect-ratio: 3 / 4;
            height: min(76dvh, 660px);
            max-width: 100%;
            animation: haloBreathe 5s ease-in-out infinite;
        }

        @keyframes haloBreathe {
            0%, 100% {
                box-shadow:
                    0 25px 60px rgba(0, 0, 0, 0.55),
                    0 0 0 1px rgba(37, 99, 235, 0.22),
                    0 0 45px rgba(37, 99, 235, 0.10);
            }
            50% {
                box-shadow:
                    0 25px 60px rgba(0, 0, 0, 0.55),
                    0 0 0 1px rgba(37, 99, 235, 0.5),
                    0 0 110px rgba(37, 99, 235, 0.32);
            }
        }

        .photo-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .decorative-corner {
            position: absolute;
            width: 52px;
            height: 52px;
            border: 2px solid var(--primary-color);
            opacity: 0.35;
            pointer-events: none;
        }

        .corner-tl {
            top: 18px;
            left: 18px;
            border-right: none;
            border-bottom: none;
            border-top-left-radius: 6px;
        }

        .corner-br {
            bottom: 18px;
            right: 18px;
            border-left: none;
            border-top: none;
            border-bottom-right-radius: 6px;
        }

        /* ── Modal ── */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            inset: 0;
            background-color: rgba(2, 6, 18, 0.7);
            backdrop-filter: blur(4px);
            animation: fadeIn 0.25s ease-out;
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: var(--dark-bg);
            padding: 36px;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            max-width: 480px;
            width: 90%;
            max-height: 90dvh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(28px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .close-btn {
            float: right;
            font-size: 26px;
            line-height: 1;
            color: var(--secondary-text);
            cursor: pointer;
            border: none;
            background: none;
            transition: color 0.2s ease;
        }

        .close-btn:hover {
            color: var(--light-text);
        }

        .modal h2 {
            clear: both;
            margin-bottom: 22px;
            font-size: 1.6rem;
            font-weight: 700;
        }

        .info-group {
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .info-label {
            color: var(--muted-text);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 1.2px;
        }

        .info-value {
            color: var(--light-text);
            font-size: 0.98rem;
            font-weight: 500;
            overflow-wrap: anywhere;
        }

        .info-value a {
            color: var(--light-text);
            text-decoration: none;
        }

        .info-value a:hover {
            color: var(--primary-color);
        }

        .copy-btn {
            background-color: var(--border-color);
            border: none;
            color: var(--primary-color);
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.82rem;
            font-weight: 600;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .copy-btn:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .modal-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 28px;
        }

        .modal-btn {
            padding: 13px 16px;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .modal-btn svg {
            width: 17px;
            height: 17px;
            fill: currentColor;
        }

        .modal-btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .modal-btn-primary:hover {
            background-color: var(--primary-dark);
        }

        .modal-btn-secondary {
            background-color: var(--border-color);
            color: var(--light-text);
        }

        .modal-btn-secondary:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* ── Toast ── */
        .toast {
            position: fixed;
            bottom: 32px;
            left: 50%;
            transform: translate(-50%, 80px);
            background: var(--surface);
            border: 1px solid var(--primary-color);
            color: var(--light-text);
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 0.92rem;
            font-weight: 500;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            z-index: 2000;
            pointer-events: none;
        }

        .toast.show {
            transform: translate(-50%, 0);
            opacity: 1;
        }

        /* ── Responsive ── */
        @media (max-width: 820px) {
            .hero {
                grid-template-columns: 1fr;
                gap: 18px;
                padding: clamp(12px, 2vh, 24px) 24px;
                text-align: center;
                align-content: center;
            }

            .image-section {
                order: -1;
            }

            .photo-frame {
                height: min(33dvh, 320px);
                margin: 0 auto;
            }

            .content {
                margin: 0 auto;
            }

            .eyebrow {
                justify-content: center;
                margin-bottom: 8px;
            }

            .eyebrow::before {
                display: none;
            }

            .name {
                margin-bottom: 8px;
            }

            .company {
                margin-bottom: 14px;
            }

            .typewriter {
                font-size: 0.95rem;
                margin-bottom: 18px;
            }

            .cta-links {
                justify-content: center;
                margin-bottom: 20px;
                gap: 28px;
            }

            .cta {
                font-size: 0.98rem;
            }

            .social-links {
                justify-content: center;
            }

            .location {
                justify-content: center;
                margin-top: 14px;
            }

            .modal-buttons {
                grid-template-columns: 1fr;
            }
        }

        /* Pantallas bajas: ocultar lo accesorio para no scrollear */
        @media (max-width: 820px) and (max-height: 700px) {
            .eyebrow, .location {
                display: none;
            }

            .photo-frame {
                height: min(32dvh, 300px);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ── FX de página ── */
        #spotlight {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.6s ease;
            background: radial-gradient(620px circle at var(--mx, 50%) var(--my, -20%), rgba(59, 110, 240, 0.09), transparent 65%);
        }

        @keyframes riseIn {
            from { opacity: 0; transform: translateY(14px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes frameIn {
            from { opacity: 0; transform: translateY(20px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        @keyframes nameSheen {
            0%, 100% { background-position: 0% 50%; }
            50%      { background-position: 100% 50%; }
        }

        .content > * {
            opacity: 0;
            animation: riseIn 0.55s var(--ease-out-strong) both;
        }
        .eyebrow      { animation-delay: 0.05s; }
        .title        { animation-delay: 0.15s; }
        .title-sub    { animation-delay: 0.2s; }
        .company      { animation-delay: 0.25s; }
        .typewriter   { animation-delay: 0.32s; }
        .cta-links    { animation-delay: 0.4s; }
        .social-links { animation-delay: 0.46s; }
        .location     { animation-delay: 0.52s; }

        .image-section {
            opacity: 0;
            animation: frameIn 0.7s 0.2s var(--ease-out-strong) both;
        }

        .photo-frame {
            will-change: transform;
        }

        .photo-scan {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 9%;
            pointer-events: none;
            z-index: 2;
            mix-blend-mode: screen;
            opacity: 0;
            background: linear-gradient(to bottom, transparent, rgba(64, 132, 255, 0.10) 40%, rgba(140, 190, 255, 0.34) 50%, rgba(64, 132, 255, 0.10) 60%, transparent);
            animation: photoScan 7s var(--ease-in-out-strong) 3s infinite;
        }

        @keyframes photoScan {
            0%        { transform: translateY(-120%); opacity: 0; }
            6%        { opacity: 1; }
            42%       { opacity: 1; }
            48%, 100% { transform: translateY(1220%); opacity: 0; }
        }

        /* Feedback al presionar */
        .cta { transition: transform 0.15s var(--ease-out-strong); }
        .cta:active { transform: scale(0.96); }
        .social-link:active { transform: translateY(-1px) scale(0.94); }
        .modal-btn:active, .copy-btn:active { transform: scale(0.96); }

        /* ── Tetris Styles ── */
        #tetris-wrapper {
            display: none;
            position: absolute;
            inset: 0;
            background: #000;
            border-radius: 16px;
            overflow: hidden;
            z-index: 5;
            flex-direction: column;
        }
        #tetris-wrapper.active {
            display: flex;
            animation: tetrisFadeIn 0.6s ease-out;
        }
        @keyframes tetrisFadeIn {
            from { opacity: 0; transform: scale(0.9) rotateY(90deg); }
            to { opacity: 1; transform: scale(1) rotateY(0deg); }
        }
        @keyframes tetrisFadeOut {
            from { opacity: 1; transform: scale(1); }
            to { opacity: 0; transform: scale(0.9) rotateY(90deg); }
        }
        .tetris-fade-out {
            animation: tetrisFadeOut 0.5s ease-in forwards !important;
        }
        .photo-frame.photo-hidden img {
            animation: photoFadeOut 0.4s ease-in forwards;
        }
        @keyframes photoFadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        #tetris-play-area {
            flex: 1;
            display: flex;
            flex-direction: row;
            align-items: stretch;
            overflow: hidden;
            position: relative;
        }
        #tetris-board-col {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            position: relative;
            padding: 3px 0 4px 0;
        }
        #tetris-board { display: block; border: 1px solid #1a1a2e; }
        #t-stage { position: relative; line-height: 0; }
        #t-crt {
            position: absolute;
            inset: 1px;
            pointer-events: none;
            z-index: 3;
            background:
                repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
                radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 12, 0.4) 100%);
        }
        #t-flash {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 4;
            background: #fff;
            opacity: 0;
        }
        /* ── Side panel (right of board) ── */
        #tetris-side {
            width: 80px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 8px 5px;
            gap: 9px;
            background: rgba(5,5,20,0.95);
            border-left: 1px solid #1a1a2e;
            font-family: 'Courier New', monospace;
            flex-shrink: 0;
        }
        .ts-box {
            text-align: center;
        }
        .ts-label {
            font-size: 8px;
            font-weight: 700;
            color: #555;
            letter-spacing: 2px;
            margin-bottom: 3px;
        }
        .ts-val {
            font-size: 13px;
            font-weight: 700;
        }
        #ts-score-val { color: #fff; }
        #ts-level-val { color: #0f0; }
        #ts-level-val.lvl-pop { animation: lvlPop 0.6s ease-out; }
        @keyframes lvlPop {
            0%   { transform: scale(1); }
            35%  { transform: scale(1.7); color: #fff; text-shadow: 0 0 10px #4ade80; }
            100% { transform: scale(1); }
        }
        #ts-lines-val { color: #ff0; }
        #ts-mini, #sk-mini { display: flex; gap: 5px; justify-content: center; }
        .ts-mini-btn {
            font-family: 'Courier New', monospace;
            width: 27px;
            height: 22px;
            background: #101024;
            color: #888;
            border: 1px solid #2a2a44;
            border-radius: 5px;
            font-size: 11px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            transition: background 0.1s, transform 0.1s;
        }
        .ts-mini-btn:active { background: #2563eb; color: #fff; transform: scale(0.92); }
        .ts-mini-btn.off { color: #f43b3b; border-color: #552222; }
        #ts-best-val { color: #FFD700; }
        #ts-hold-next {
            margin-top: auto;
            margin-bottom: 8px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        #ts-hold-next .ts-label { margin-bottom: 4px; }
        #t-hold, #t-next {
            display: block;
            margin: 0 auto;
            background: #08081a;
            border-radius: 4px;
            width: 64px;
            height: 64px;
        }
        #ts-hold-box { cursor: pointer; }
        #ts-hold-box.used #t-hold { opacity: 0.45; }
        /* Panel compacto para pantallas bajas */
        #tetris-wrapper.ts-compact #tetris-side { gap: 5px; padding: 6px 3px; }
        #tetris-wrapper.ts-compact .ts-label { font-size: 7px; letter-spacing: 1px; margin-bottom: 1px; }
        #tetris-wrapper.ts-compact .ts-val { font-size: 11px; }
        #tetris-wrapper.ts-compact #ts-best-box { display: none; }
        #tetris-wrapper.ts-compact #ts-hold-next { flex-direction: row; justify-content: center; gap: 4px; margin-bottom: 4px; }
        #tetris-wrapper.ts-compact #t-hold, #tetris-wrapper.ts-compact #t-next { width: 34px; height: 34px; }
        /* ── Controls ── */
        #tetris-controls {
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 5px 8px 4px;
            width: 100%;
            background: rgba(5,5,20,0.95);
            border-top: 1px solid #1a1a2e;
            flex-shrink: 0;
            position: relative;
        }
        .tc-row { display: flex; gap: 4px; justify-content: center; }
        .tc-btn {
            font-family: 'Courier New', monospace;
            font-size: 14px;
            font-weight: 700;
            width: 48px; height: 36px;
            background: #1a1a2e;
            color: #aaa;
            border: 1px solid #333;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            transition: background 0.1s, transform 0.1s;
        }
        .tc-btn:active { background: #2563eb; color: #fff; transform: scale(0.94); }
        .tc-btn.wide { width: 104px; font-size: 11px; letter-spacing: 2px; }
        .tc-btn.half { width: 74px; font-size: 11px; letter-spacing: 2px; }
        .tc-keys {
            font-family: 'Courier New', monospace;
            font-size: 7px;
            color: #333;
            position: absolute;
            bottom: 3px;
            right: 6px;
        }
        /* ── Overlays ── */
        .tetris-overlay {
            position: absolute;
            inset: 0;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            z-index: 10;
            background: rgba(0,0,0,0.88);
        }
        .tetris-overlay.show { display: flex; }
        .tetris-overlay .to-title {
            font-family: 'Courier New', monospace;
            font-size: 28px;
            font-weight: 700;
            color: #F00;
            text-shadow: 2px 2px 0 #900;
            letter-spacing: 3px;
        }
        .tetris-overlay .to-score {
            font-family: 'Courier New', monospace;
            font-size: 12px;
            color: #ccc;
        }
        .tetris-overlay .to-title.to-blue {
            color: #4a8cff;
            text-shadow: 2px 2px 0 #123a8a;
        }
        #t-count .to-title { font-size: 24px; }
        .tetris-overlay .to-score.to-record {
            color: #FFD700;
            animation: blink 0.45s steps(1) infinite;
        }
        .social-link-mc.mc-active {
            box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
            transform: translateY(-4px);
        }

        /* ── Ski Styles ── */
        #ski-wrapper {
            display: none;
            position: absolute;
            inset: 0;
            background: #06121f;
            border-radius: 16px;
            overflow: hidden;
            z-index: 5;
            flex-direction: column;
        }
        #ski-wrapper.active {
            display: flex;
            animation: tetrisFadeIn 0.6s ease-out;
        }
        #ski-play-area {
            flex: 1;
            display: flex;
            flex-direction: row;
            align-items: stretch;
            overflow: hidden;
            position: relative;
        }
        #ski-board-col {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            position: relative;
            padding: 3px 0 4px 0;
        }
        #ski-stage { position: relative; line-height: 0; }
        #ski-board { display: block; border: 1px solid #8a8a8a; background: #fff; }
        #s-crt { display: none; }
        #ski-side {
            width: 80px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 8px 5px;
            gap: 9px;
            background: rgba(5, 10, 20, 0.95);
            border-left: 1px solid #1a2a3e;
            font-family: 'Courier New', monospace;
            flex-shrink: 0;
        }
        #sk-dist-val { color: #fff; }
        #sk-best-val { color: #FFD700; }
        #sk-speed-val { color: #4ade80; }
        #ski-controls {
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 5px 8px 4px;
            width: 100%;
            background: rgba(5, 10, 20, 0.95);
            border-top: 1px solid #1a2a3e;
            flex-shrink: 0;
            position: relative;
        }
        #sk-credit {
            margin-top: auto;
            text-align: center;
            font-size: 7px;
            letter-spacing: 0.5px;
            line-height: 1.6;
            color: #66748c;
            text-decoration: none;
            padding-bottom: 2px;
        }
        #sk-credit:hover { color: #9fb4d8; }
        #s-go-credit { font-size: 9px; color: #8a97ad; margin-top: 6px; }
        #ski-wrapper.ts-compact #ski-side { gap: 5px; padding: 6px 3px; }
        #ski-wrapper.ts-compact .ts-label { font-size: 7px; letter-spacing: 1px; margin-bottom: 1px; }
        #ski-wrapper.ts-compact .ts-val { font-size: 11px; }
        #ski-wrapper.ts-compact #sk-best-box { display: none; }
        /* ── Chrome estilo Windows 95 (arte propio) ── */
        .w95-wrapper {
            display: none;
            position: absolute;
            inset: 0;
            background: #008080;
            border-radius: 16px;
            overflow: hidden;
            z-index: 5;
            flex-direction: column;
            font-family: 'Tahoma', 'Segoe UI', sans-serif;
        }
        .w95-wrapper.active {
            display: flex;
            animation: tetrisFadeIn 0.6s ease-out;
        }
        .w95-titlebar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 20px;
            padding: 0 3px 0 5px;
            background: linear-gradient(90deg, #000082 0%, #1084d0 100%);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            flex-shrink: 0;
            letter-spacing: 0.2px;
        }
        .w95-title { display: flex; align-items: center; gap: 5px; }
        .w95-tbtns { display: flex; gap: 2px; }
        .w95-tbtn {
            width: 15px; height: 14px;
            background: #c0c0c0;
            border: 1px solid;
            border-color: #fff #404040 #404040 #fff;
            color: #000;
            font-size: 9px;
            font-weight: 700;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            font-family: 'Courier New', monospace;
        }
        .w95-tbtn:active { border-color: #404040 #fff #fff #404040; }
        .w95-body {
            flex: 1;
            background: #c0c0c0;
            border: 2px solid;
            border-color: #dfdfdf #404040 #404040 #dfdfdf;
            margin: 2px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .w95-inset {
            border: 2px solid;
            border-color: #808080 #fff #fff #808080;
            background: #c0c0c0;
        }
        .w95-btn {
            background: #c0c0c0;
            border: 2px solid;
            border-color: #fff #404040 #404040 #fff;
            font-family: 'Tahoma', sans-serif;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 10px;
            cursor: pointer;
            color: #000;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        .w95-btn:active { border-color: #404040 #fff #fff #404040; }
        .w95-led {
            background: #000;
            color: #f00;
            font-family: 'Courier New', monospace;
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 1px;
            padding: 1px 4px;
            line-height: 1;
            text-shadow: 0 0 3px rgba(255,0,0,0.6);
        }

        /* ── Buscaminas ── */
        #mines-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 6px;
            gap: 6px;
            min-height: 0;
        }
        #mines-status {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4px 6px;
        }
        #mines-face {
            width: 30px; height: 30px;
            background: #c0c0c0;
            border: 2px solid;
            border-color: #fff #404040 #404040 #fff;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        #mines-face:active { border-color: #404040 #fff #fff #404040; }
        #mines-fieldwrap {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
            min-height: 0;
            position: relative;
        }
        #mines-canvas { display: block; touch-action: none; }

        /* ── Solitario ── */
        #sol-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 6px;
            flex-shrink: 0;
        }
        #sol-info { font-size: 11px; color: #000; font-weight: 700; }
        #sol-stage { flex: 1; position: relative; min-height: 0; background: #087f3f; overflow: hidden; }
        #sol-canvas { display: block; touch-action: none; }
        .w95-credit {
            font-size: 8px;
            color: rgba(0,0,0,0.55);
            padding: 0 6px 3px;
            text-align: center;
            flex-shrink: 0;
        }
