:root {
    --epa-teal: #c5a035;
    --epa-green: #6b8f3d;
    --epa-navy: #2c331f;
    --epa-ink: #12150e;
    --epa-paper: #f4f1e8;
    --epa-muted: #c5c6b0;
    --epa-orange: #ce1126;
    --epa-maroon: #7a1f2b;
    --epa-gold: #fcd116;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

.oculto {
    display: none !important;
}

.epa-body {
    font-family: Outfit, system-ui, sans-serif;
    color: var(--epa-paper);
    background: #12150e;
    overflow: hidden;
}

.epa-app,
.epa-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.epa-canvas {
    display: block;
    z-index: 1;
    touch-action: none;
}

.epa-landing {
    position: fixed;
    z-index: 40;
    inset: 0;
    overflow: auto;
    padding: 1.25rem 1.25rem 2.5rem;
    background:
        linear-gradient(180deg, rgba(18, 21, 14, 0.88), rgba(18, 21, 14, 0.96)),
        radial-gradient(ellipse at top, rgba(197, 160, 53, 0.22), transparent 55%);
}

.epa-app.is-playing .epa-landing {
    display: none;
}

.epa-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--epa-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.epa-back:hover {
    color: #fff;
}

.epa-kicker {
    margin: 1.4rem 0 0.35rem;
    color: var(--epa-teal);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.epa-landing h1 {
    margin: 0;
    font-family: Oswald, Outfit, sans-serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.1;
}

.epa-lead {
    max-width: 40rem;
    color: var(--epa-muted);
    line-height: 1.55;
}

.epa-welcome {
    display: grid;
    grid-template-columns: minmax(16rem, 34rem) minmax(16rem, 22rem);
    gap: 1.1rem;
    align-items: start;
    max-width: 58rem;
    margin: 1rem 0 0.4rem;
}

.epa-welcome__visual {
    margin: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #000;
}

.epa-welcome__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.epa-welcome__card {
    padding: 1.1rem 1.15rem 1.25rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(10px);
}

.epa-welcome__face {
    width: 4.2rem;
    height: 4.2rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--epa-teal);
    margin-bottom: 0.55rem;
}

.epa-welcome__kicker {
    margin: 0 0 0.25rem;
    color: var(--epa-green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.epa-welcome__card h2 {
    margin: 0 0 0.45rem;
    font-family: Oswald, Outfit, sans-serif;
    font-size: 2rem;
}

.epa-welcome__text {
    margin: 0 0 0.85rem;
    color: var(--epa-muted);
    line-height: 1.55;
}

.epa-mode-label {
    margin: 0.35rem 0 0.55rem;
    color: #fff;
    font-family: Oswald, Outfit, sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
}

.epa-modes {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 0.75rem;
}

.epa-mode {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    cursor: pointer;
    color: #12150e;
    background: linear-gradient(135deg, var(--epa-teal), var(--epa-green));
    font: inherit;
}

.epa-mode--xr {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.epa-mode i {
    font-size: 1.45rem;
    width: 1.6rem;
    text-align: center;
}

.epa-mode span {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.epa-mode strong {
    font-size: 1.05rem;
}

.epa-mode em {
    font-style: normal;
    font-size: 0.82rem;
    opacity: 0.82;
    font-weight: 500;
}

.epa-mode:hover {
    filter: brightness(1.08);
}

.epa-mode:disabled {
    opacity: 0.5;
    cursor: wait;
}

.epa-brief {
    margin: 1.4rem 0;
    max-width: 26rem;
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.epa-brief__kicker {
    margin: 0 0 0.6rem;
    color: var(--epa-green);
    font-size: 0.8rem;
    font-weight: 600;
}

.epa-brief__steps {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--epa-muted);
    line-height: 1.55;
}

.epa-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.2rem;
    font: 600 1rem Outfit, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.epa-btn--primary {
    background: linear-gradient(135deg, var(--epa-teal), var(--epa-green));
    color: #12150e;
}

.epa-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.epa-xr-status {
    margin: 0 0 1rem;
    color: var(--epa-muted);
    font-size: 0.88rem;
}

.epa-xr-status.is-ok {
    color: #d4e8b0;
}

.epa-xr-status.is-no {
    color: #fcd34d;
}

.epa-tips {
    max-width: 42rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    color: var(--epa-muted);
    font-size: 0.92rem;
}

.epa-tips li {
    display: flex;
    gap: 0.55rem;
    margin: 0.45rem 0;
    line-height: 1.45;
}

.epa-tips i {
    color: var(--epa-teal);
    margin-top: 0.2rem;
}

.epa-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.epa-roster__card {
    margin: 0;
    width: 7.4rem;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.epa-roster__card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.epa-roster__card figcaption {
    padding: 0.4rem 0.5rem 0.55rem;
    font-size: 0.75rem;
}

.epa-brand {
    margin: 1.6rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
}

.epa-hud {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    background: linear-gradient(180deg, rgba(18, 21, 14, 0.78), transparent);
}

.epa-icon-btn {
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.epa-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.25rem 0.7rem 0.25rem 0.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
}

.epa-chip img {
    width: 2.3rem;
    height: 2.3rem;
    object-fit: cover;
    border-radius: 50%;
}

.epa-chip__kicker {
    margin: 0;
    font-size: 0.68rem;
    color: var(--epa-teal);
    text-transform: uppercase;
}

.epa-chip__name {
    margin: 0;
    font-weight: 700;
    font-size: 0.92rem;
}

.epa-alt {
    margin: 0 0 0 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.epa-check {
    position: fixed;
    z-index: 5;
    top: 4.4rem;
    right: 0.8rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    list-style: none;
    width: 11.5rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.78);
    font-size: 0.78rem;
}

.epa-check li {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin: 0.22rem 0;
    color: var(--epa-muted);
}

.epa-check li.is-on {
    color: #d4e8b0;
}

.epa-hint {
    position: fixed;
    z-index: 5;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: var(--epa-muted);
    font-size: 0.8rem;
    text-align: center;
    max-width: calc(100% - 1.5rem);
}

.epa-app.is-xr .epa-hint__desk,
.epa-app:not(.is-xr) .epa-hint__xr {
    display: none;
}

.epa-reticle {
    position: fixed;
    z-index: 5;
    inset: 0;
    pointer-events: none;
}

.epa-reticle__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.4rem;
    height: 2.4rem;
    margin: -1.2rem 0 0 -1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.epa-reticle.is-hot .epa-reticle__ring {
    border-color: #c5a035;
    box-shadow: 0 0 16px #c5a035;
}

.epa-reticle__cross {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.epa-look {
    position: fixed;
    z-index: 12;
    top: 4.6rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.45rem 1rem 0.5rem;
    border-radius: 1rem;
    background: rgba(44, 51, 31, 0.94);
    color: #ecfdf5;
    font: 600 0.92rem Outfit, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
    pointer-events: none;
    text-align: center;
}

.epa-look strong {
    font: 700 1.12rem Oswald, Outfit, sans-serif;
    color: #fde68a;
}

.epa-look span {
    font-size: 0.75rem;
    color: #d4e8b0;
}

.epa-info {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 4.2rem;
    transform: translateX(-50%);
    width: min(32rem, calc(100% - 1.5rem));
    display: grid;
    grid-template-columns: 7.2rem 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.epa-info__photo {
    width: 7.2rem;
    height: 7.2rem;
    object-fit: cover;
    border-radius: 0.7rem;
}

.epa-info__kicker {
    margin: 0 0 0.2rem;
    color: var(--epa-green);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.epa-info h3 {
    margin: 0;
    font-family: Oswald, Outfit, sans-serif;
}

.epa-info__sci {
    margin: 0.15rem 0 0.4rem;
    color: var(--epa-teal);
    font-size: 0.85rem;
    font-style: italic;
}

.epa-info__body p {
    margin: 0;
    color: var(--epa-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.epa-info__check {
    margin-top: 0.45rem;
    color: #fde68a;
    font-size: 0.82rem;
}

.epa-info__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.epa-controles,
.epa-quiz,
.epa-result {
    position: fixed;
    z-index: 25;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(34rem, calc(100% - 1.6rem));
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.epa-controles__kicker,
.epa-quiz__kicker {
    margin: 0 0 0.3rem;
    color: var(--epa-teal);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.epa-controles h2,
.epa-quiz h2 {
    margin: 0 0 0.7rem;
    font-family: Oswald, Outfit, sans-serif;
}

.epa-controles__list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--epa-muted);
    line-height: 1.5;
}

.epa-quiz__opts {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.epa-quiz-opt {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    padding: 0.65rem 0.8rem;
    background: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
    font: 600 0.92rem Outfit, sans-serif;
    text-align: left;
    cursor: pointer;
}

.epa-quiz-opt:hover,
.epa-quiz-opt:focus-visible {
    border-color: #c5a035;
    background: rgba(14, 165, 233, 0.22);
}

.epa-quiz-opt.is-ok {
    border-color: #6b8f3d;
    background: rgba(6, 95, 70, 0.85);
}

.epa-quiz-opt.is-bad {
    border-color: #f87171;
    background: rgba(127, 29, 29, 0.7);
}

.epa-quiz__why {
    margin: 0.55rem 0 0.7rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.4;
}

.epa-polaroid {
    text-align: left;
}

.epa-polaroid__stamp {
    margin: 0 0 0.5rem;
    color: var(--epa-green);
    font-weight: 700;
    font-family: Oswald, Outfit, sans-serif;
}

.epa-polaroid img {
    display: block;
    width: 100%;
    border-radius: 0.7rem;
}

.epa-polaroid figcaption {
    padding: 0.55rem 0.2rem 0.4rem;
}

.epa-polaroid figcaption em {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
}

.epa-result__score {
    color: var(--epa-muted);
    margin: 0 0 0.8rem;
}

.epa-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.epa-app.is-xr .epa-hud,
.epa-app.is-xr .epa-reticle,
.epa-app.is-xr .epa-hint,
.epa-app.is-xr .epa-look,
.epa-app.is-xr .epa-check,
.epa-app.is-xr .epa-info,
.epa-app.is-xr .epa-controles,
.epa-app.is-xr .epa-quiz,
.epa-app.is-xr .epa-result {
    display: none !important;
}

@media (max-width: 720px) {
    .epa-welcome {
        grid-template-columns: 1fr;
    }

    .epa-info {
        grid-template-columns: 1fr;
    }

    .epa-info__photo {
        width: 100%;
        height: 8rem;
    }

    .epa-check {
        display: none;
    }
}
