:root {
    --ink: #f8f1e4;
    --muted: #d6c4a8;
    --bg: #140e09;
    --card: #24180f;
    --line: rgba(248, 241, 228, 0.14);
    --amber: #f0a202;
    --teal: #7dd3c7;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

body.eam-body {
    font-family: Outfit, system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

button, a { font: inherit; color: inherit; }

.oculto { display: none !important; }

#eam-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

.eam-landing {
    position: fixed;
    inset: 0;
    z-index: 5;
    overflow: auto;
    padding: 1.25rem 1.25rem 3rem;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(240, 162, 2, 0.18), transparent 55%),
        var(--bg);
}

.eam-top, .eam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.eam-back {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}

.eam-kicker, .eam-card__kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    margin: 0.6rem 0 0.4rem;
}

.eam-lead, .eam-note { color: var(--muted); }

.eam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.eam-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem 1rem 1.1rem;
}

.eam-card ol, .eam-anclas { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.eam-card li + li { margin-top: 0.35rem; }

.eam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.eam-table th, .eam-table td {
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--line);
    padding: 0.55rem 0.45rem;
}

.eam-table thead th { color: var(--teal); font-size: 0.78rem; border-top: 0; }

.eam-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 0.85rem;
}

.eam-mode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: left;
    border-radius: 18px;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--card);
    cursor: pointer;
}

.eam-mode:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.eam-mode__kicker {
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eam-mode__title {
    font-size: 1.35rem;
    font-weight: 700;
}

.eam-mode__text {
    color: var(--muted);
    line-height: 1.4;
}

.eam-mode--virtual {
    background: #1c3a36;
    border-color: rgba(125, 211, 199, 0.45);
}

.eam-actions { margin-top: 0.5rem; }

.eam-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.15rem;
    background: var(--amber);
    color: #1a1208;
    font-weight: 700;
    cursor: pointer;
}

.eam-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.eam-btn--xr { background: var(--teal); }
.eam-btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.eam-status { min-height: 1.4rem; color: var(--teal); }

.eam-hud {
    position: fixed;
    z-index: 4;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(20, 14, 9, 0.88);
    border: 1px solid var(--line);
    pointer-events: none;
}

.eam-hud__clock { margin: 0; color: var(--amber); font-weight: 700; }
.eam-hud__who { margin: 0.2rem 0 0; color: var(--teal); font-size: 0.85rem; }
.eam-hud__line { margin: 0.25rem 0; font-size: 1.05rem; }
.eam-hud__pista, .eam-hud__aim { margin: 0.15rem 0 0; color: var(--muted); }
