/* =========================================================
   PILARES DA CRIAÇÃO — VOLUME IV
   ESTHERIUM
   css/style.css
   ========================================================= */

:root {
    --bg: #040812;
    --bg-deep: #01040a;
    --bg-soft: #07101f;

    --panel: rgba(8, 20, 38, 0.76);
    --panel-strong: rgba(6, 16, 31, 0.92);

    --blue: #1f7eff;
    --blue-bright: #4eb5ff;
    --blue-electric: #77d7ff;
    --blue-soft: rgba(78, 181, 255, 0.20);

    --white: #eef7ff;
    --text: #d8e4ef;
    --muted: rgba(216, 228, 239, 0.58);
    --faint: rgba(216, 228, 239, 0.30);

    --magenta: #ff2e88;
    --magenta-soft: rgba(255, 46, 136, 0.16);

    --red: #ff405f;
    --red-soft: rgba(255, 64, 95, 0.14);

    --line: rgba(110, 190, 255, 0.12);
    --line-strong: rgba(110, 190, 255, 0.28);

    --max: 1280px;
    --radius: 3px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color-scheme: dark;
}

html,
body {
    margin: 0;
    min-height: 100%;
    width: 100%;
}

body {
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(42, 117, 199, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 84% 16%,
            rgba(255, 46, 136, 0.06),
            transparent 22%
        ),
        linear-gradient(
            180deg,
            #07101e 0%,
            #040812 46%,
            #01040a 100%
        );

    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--blue-bright);
    color: #00101c;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   ESTRUTURA
   ========================================================= */

main {
    width: 100%;
}

main > section {
    position: relative;

    width: min(calc(100% - 40px), var(--max));

    margin: 0 auto;
    padding: 110px 0;
}

main > section + section {
    border-top: 1px solid var(--line);
}

.placeholder-imagem {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(17, 44, 81, 0.48),
            rgba(4, 11, 22, 0.90)
        );

    border: 1px solid rgba(91, 177, 255, 0.15);
}

.placeholder-imagem::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(90, 190, 255, 0.02) 55%,
            rgba(0, 0, 0, 0.24) 100%
        );
}

.placeholder-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   TOPO
   ========================================================= */

#topo {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    min-height: 64px;

    padding:
        0
        max(24px, calc((100vw - var(--max)) / 2));

    background:
        linear-gradient(
            to bottom,
            rgba(2, 8, 18, 0.97),
            rgba(4, 11, 22, 0.89)
        );

    border-bottom: 1px solid rgba(91, 177, 255, 0.11);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.marca-serie a {
    text-decoration: none;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.16em;
}

#menu-principal {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;
    align-items: center;

    gap: 20px;
}

#menu-principal a {
    position: relative;

    padding: 5px 0;

    text-decoration: none;

    color: var(--faint);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.15em;

    transition:
        color 0.18s ease;
}

#menu-principal a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--blue-bright),
            var(--magenta)
        );

    transition: right 0.18s ease;
}

#menu-principal a:hover {
    color: var(--white);
}

#menu-principal a:hover::after {
    right: 0;
}


/* =========================================================
   HERO
   ========================================================= */

#livro {
    min-height: calc(100vh - 64px);

    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(320px, 0.95fr)
        minmax(0, 0.85fr);

    gap: 52px;

    align-items: center;
}

#livro::before {
    content: "";

    position: absolute;

    width: 900px;
    height: 900px;

    top: 46%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(49, 132, 255, 0.12),
            rgba(34, 77, 156, 0.07) 35%,
            rgba(255, 46, 136, 0.035) 54%,
            transparent 74%
        );

    pointer-events: none;
}

.livro-identificacao,
.livro-apresentacao {
    position: relative;
    z-index: 2;
}

.livro-identificacao .serie,
.livro-identificacao .volume {
    margin: 0;

    color: var(--blue-bright);

    font-size: 8px;

    letter-spacing: 0.21em;
}

.livro-identificacao .volume {
    margin-top: 8px;

    color: var(--faint);
}

#titulo-estherium {
    margin: 20px 0 12px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(54px, 7.8vw, 108px);

    font-weight: 500;

    line-height: 0.90;

    letter-spacing: -0.045em;

    text-shadow:
        0 0 30px rgba(78, 181, 255, 0.14),
        0 0 42px rgba(255, 46, 136, 0.04);
}

.livro-identificacao .autor {
    margin: 0;

    color: var(--muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    letter-spacing: 0.13em;
}

.capa-principal {
    position: relative;
    z-index: 2;

    width: min(100%, 420px);

    margin: 0;

    justify-self: center;
}

.capa-principal .placeholder-imagem {
    aspect-ratio: 2 / 3;

    box-shadow:
        0 34px 88px rgba(0, 0, 0, 0.56),
        0 0 80px rgba(50, 122, 255, 0.10),
        0 0 50px rgba(255, 46, 136, 0.05);
}

.capa-principal figcaption {
    margin-top: 12px;

    color: var(--faint);

    font-size: 7px;

    letter-spacing: 0.15em;

    text-align: center;
    text-transform: uppercase;
}

.livro-apresentacao p {
    margin: 0 0 20px;

    color: var(--muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(17px, 1.7vw, 21px);

    line-height: 1.7;
}

.livro-apresentacao a {
    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 0 18px;

    border: 1px solid rgba(78, 181, 255, 0.30);

    background:
        linear-gradient(
            90deg,
            rgba(31, 126, 255, 0.08),
            rgba(255, 46, 136, 0.05)
        );

    color: var(--blue-electric);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.17em;

    text-decoration: none;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.livro-apresentacao a:hover {
    border-color: rgba(255, 46, 136, 0.62);

    background: rgba(255, 46, 136, 0.08);

    color: #fff;
}


/* =========================================================
   CABEÇALHOS
   ========================================================= */

section > header {
    max-width: 760px;
    margin-bottom: 46px;
}

section > header > p {
    margin: 0 0 7px;

    color: rgba(86, 168, 255, 0.70);

    font-size: 8px;

    letter-spacing: 0.19em;
}

section > header > h2 {
    margin: 0;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(34px, 4.8vw, 62px);

    font-weight: 500;

    line-height: 1.05;
}

section > header > h2 + p {
    margin-top: 14px;

    color: var(--muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    line-height: 1.75;

    letter-spacing: normal;
}


/* =========================================================
   TEXTO / DADOS
   ========================================================= */

.universo-texto {
    max-width: 720px;
}

.universo-texto p {
    margin: 0 0 18px;

    color: var(--muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;

    line-height: 1.8;
}

.universo-dados {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.universo-dados article {
    min-height: 88px;

    padding: 17px;

    border: 1px solid rgba(78, 181, 255, 0.11);

    background:
        linear-gradient(
            145deg,
            rgba(13, 34, 67, 0.60),
            rgba(5, 12, 26, 0.76)
        );
}

.universo-dados span {
    display: block;

    margin-bottom: 10px;

    color: var(--faint);

    font-size: 7px;

    letter-spacing: 0.17em;
}

.universo-dados strong {
    color: var(--blue-bright);

    font-size: 11px;

    letter-spacing: 0.10em;
}


/* =========================================================
   HISTÓRIA / MACHSEH / PONTE
   ========================================================= */

#historia,
#machseh,
#ponte-von-grah {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: 48px 68px;

    align-items: start;
}

#historia > header,
#machseh > header,
#ponte-von-grah > header {
    grid-column: 1 / -1;
}

.imagem-universo {
    grid-column: 1 / -1;

    margin: 18px 0 0;
}

.imagem-universo .placeholder-imagem {
    min-height: 400px;
}

.imagem-universo img {
    min-height: 400px;
}

.imagem-universo figcaption {
    margin-top: 10px;

    color: var(--faint);

    font-size: 7px;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================================================
   GALERIA / PERSONAGENS
   ========================================================= */

.galeria-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.personagens-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.galeria-grid figure {
    margin: 0;
}

.galeria-grid .placeholder-imagem {
    overflow: hidden;
}

.galeria-paisagem .placeholder-imagem {
    aspect-ratio: 3 / 2;
}

.galeria-paisagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personagens-retratos .placeholder-imagem {
    aspect-ratio: 5 / 7;
}

.personagens-retratos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.galeria-grid figcaption {
    padding-top: 10px;

    color: var(--faint);

    font-size: 7px;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   PONTE DE VON GRAH — DESTAQUE
   ========================================================= */

#ponte-von-grah {
    position: relative;
}

#ponte-von-grah::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 85vw;
    max-width: 1100px;
    height: 85vw;
    max-height: 1100px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(44, 113, 255, 0.08),
            rgba(255, 46, 136, 0.02) 52%,
            transparent 72%
        );

    pointer-events: none;
}


/* =========================================================
   EXPERIÊNCIA
   ========================================================= */

#experiencia {
    width: 100%;
    max-width: none;

    padding:
        115px
        max(20px, calc((100vw - var(--max)) / 2));

    background:
        linear-gradient(
            180deg,
            rgba(3, 8, 18, 0.10),
            rgba(4, 11, 22, 0.52),
            rgba(1, 4, 10, 0.88)
        );
}

#terminal-estherium {
    position: relative;

    max-width: 1180px;

    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(86, 165, 255, 0.20);

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(44, 112, 255, 0.08),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(6, 15, 30, 0.96),
            rgba(2, 6, 14, 0.99)
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.60),
        inset 0 0 70px rgba(83, 166, 255, 0.025);
}

.estherium-interface {
    position: relative;

    padding: 28px;
}

.estherium-moldura {
    position: relative;

    min-height: 640px;

    padding: 34px;

    border: 1px solid rgba(230, 238, 247, 0.18);

    background:
        linear-gradient(
            145deg,
            rgba(230, 236, 244, 0.08),
            rgba(10, 18, 30, 0.24)
        );

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.015),
        inset 0 0 45px rgba(0, 0, 0, 0.34);
}

.estherium-moldura::before,
.estherium-moldura::after {
    content: "";

    position: absolute;

    width: 72px;
    height: 72px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    pointer-events: none;
}

.estherium-moldura::before {
    top: 12px;
    left: 12px;

    border-right: 0;
    border-bottom: 0;
}

.estherium-moldura::after {
    right: 12px;
    bottom: 12px;

    border-left: 0;
    border-top: 0;
}


/* =========================================================
   SUPERFÍCIE TONERASE / ERIDIA
   ========================================================= */

#estherium-superficie {
    position: relative;

    min-height: 500px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f6f7f4 58%,
            #e6e8e5 100%
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.40);

    box-shadow:
        inset 0 0 30px rgba(30, 40, 50, 0.10),
        0 0 40px rgba(111, 191, 255, 0.05);
}

#estherium-canvas {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    touch-action: none;
}

#estherium-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    color: rgba(35, 42, 48, 0.38);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 10px;

    letter-spacing: 0.24em;

    text-transform: uppercase;
}


/* =========================================================
   CONTROLES HOLOGRÁFICOS
   ========================================================= */

.estherium-controle {
    position: absolute;

    bottom: 20px;

    width: 96px;
    height: 96px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.estherium-controle-x {
    left: 22px;
}

.estherium-controle-y {
    right: 22px;
}

.estherium-controle button {
    position: relative;

    width: 76px;
    height: 76px;

    border-radius: 50%;

    border:
        1px solid
        rgba(100, 198, 255, 0.42);

    background:
        radial-gradient(
            circle,
            rgba(90, 195, 255, 0.15),
            rgba(20, 80, 130, 0.06) 56%,
            transparent 72%
        );

    color: rgba(134, 217, 255, 0.78);

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 0 24px rgba(54, 156, 255, 0.08),
        inset 0 0 18px rgba(80, 190, 255, 0.05);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.estherium-controle button::before,
.estherium-controle button::after {
    content: "";

    position: absolute;

    inset: 8px;

    border-radius: 50%;

    border:
        1px solid
        rgba(105, 207, 255, 0.18);
}

.estherium-controle button::after {
    inset: 18px;

    border-color:
        rgba(255, 46, 136, 0.16);
}

.estherium-controle button:not(:disabled):hover {
    transform: scale(1.05);

    border-color:
        rgba(129, 222, 255, 0.72);

    box-shadow:
        0 0 34px rgba(56, 164, 255, 0.16),
        0 0 26px rgba(255, 46, 136, 0.04);
}

.estherium-controle button:disabled {
    opacity: 0.24;
    cursor: not-allowed;
}


/* =========================================================
   COMANDOS
   ========================================================= */

.estherium-comandos {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}

.estherium-comandos button {
    min-height: 38px;

    padding: 0 14px;

    border:
        1px solid
        rgba(88, 177, 255, 0.20);

    background:
        linear-gradient(
            90deg,
            rgba(30, 92, 175, 0.10),
            rgba(255, 46, 136, 0.03)
        );

    color:
        rgba(183, 225, 255, 0.54);

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 0.14em;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.estherium-comandos button:not(:disabled):hover {
    border-color:
        rgba(110, 204, 255, 0.64);

    background:
        linear-gradient(
            90deg,
            rgba(30, 118, 220, 0.20),
            rgba(255, 46, 136, 0.08)
        );

    color: var(--white);
}

.estherium-comandos button:disabled {
    cursor: not-allowed;
    opacity: 0.34;
}

#estherium-interromper:not(:disabled) {
    border-color:
        rgba(255, 64, 95, 0.34);

    color:
        rgba(255, 130, 150, 0.76);
}

#estherium-sair-mobile {
    display: none;
}


/* =========================================================
   ESTADOS DA EXPERIÊNCIA
   ========================================================= */

#terminal-estherium[data-estado="inativo"] {
    border-color:
        rgba(90, 160, 230, 0.16);
}

#terminal-estherium[data-estado="ativo"] {
    border-color:
        rgba(85, 183, 255, 0.42);

    box-shadow:
        0 0 50px rgba(36, 121, 255, 0.08),
        0 30px 90px rgba(0, 0, 0, 0.60);
}

#terminal-estherium[data-estado="instavel"] {
    border-color:
        rgba(255, 46, 136, 0.38);

    box-shadow:
        0 0 46px rgba(255, 46, 136, 0.07),
        0 30px 90px rgba(0, 0, 0, 0.64);
}

#terminal-estherium[data-estado="critico"] {
    border-color:
        rgba(255, 64, 95, 0.54);

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 46, 136, 0.08),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(20, 5, 18, 0.98),
            rgba(5, 3, 12, 0.99)
        );
}


/* =========================================================
   RECOMPENSA
   ========================================================= */

#recompensa-estherium {
    max-width: 900px;

    margin: 44px auto 0;

    padding: 30px;

    border:
        1px solid
        rgba(83, 174, 255, 0.14);

    background:
        linear-gradient(
            145deg,
            rgba(8, 24, 48, 0.64),
            rgba(6, 9, 21, 0.82)
        );
}

#recompensa-estherium[hidden] {
    display: none !important;
}

#recompensa-estherium p {
    margin: 0 0 8px;

    color: var(--muted);
}

#recompensa-estherium h3 {
    margin: 0 0 18px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    font-weight: 500;
}

#recompensa-estherium a {
    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 0 18px;

    border:
        1px solid
        rgba(78, 181, 255, 0.30);

    color: var(--blue-electric);

    text-decoration: none;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.16em;
}


/* =========================================================
   ARQUIVO
   ========================================================= */

#arquivo {
    padding-bottom: 130px;
}

.arquivo-livro {
    display: grid;

    grid-template-columns:
        minmax(140px, 220px)
        minmax(0, 1fr);

    gap: 34px;

    align-items: center;

    max-width: 720px;
}

.arquivo-livro figure {
    margin: 0;
}

.arquivo-livro .placeholder-imagem {
    aspect-ratio: 2 / 3;
}

.arquivo-livro p {
    margin: 0 0 7px;

    color: var(--faint);

    font-size: 8px;

    letter-spacing: 0.14em;
}

.arquivo-livro h3 {
    margin: 5px 0 16px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(36px, 5.4vw, 68px);

    font-weight: 500;

    line-height: 1;
}

.arquivo-navegacao {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 58px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(78, 181, 255, 0.08);
}

.arquivo-navegacao span,
.arquivo-navegacao a {
    color: var(--faint);

    font-size: 8px;

    letter-spacing: 0.14em;
}

.arquivo-navegacao a {
    color: var(--blue-bright);

    text-decoration: none;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

#rodape {
    padding:
        34px
        max(20px, calc((100vw - var(--max)) / 2));

    border-top:
        1px solid
        rgba(78, 181, 255, 0.08);

    background:
        rgba(2, 6, 14, 0.90);
}

#rodape nav {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 18px;
}

#rodape nav a {
    color: var(--faint);

    font-size: 7px;

    letter-spacing: 0.13em;

    text-decoration: none;
}

#rodape p {
    margin: 0;

    color:
        rgba(216, 228, 239, 0.28);

    font-size: 7px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    #topo {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;

        padding-top: 14px;
        padding-bottom: 14px;
    }

    #livro {
        min-height: auto;

        grid-template-columns:
            1fr
            minmax(280px, 420px);
    }

    .livro-apresentacao {
        grid-column: 1 / -1;

        max-width: 720px;
    }

    #historia,
    #machseh,
    #ponte-von-grah {
        grid-template-columns: 1fr;
    }

    #historia > header,
    #machseh > header,
    #ponte-von-grah > header,
    .imagem-universo {
        grid-column: auto;
    }

    .personagens-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .estherium-moldura {
        min-height: 560px;
    }

    #estherium-superficie {
        min-height: 430px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    main > section {
        width: calc(100% - 28px);

        padding: 76px 0;
    }

    #topo {
        position: relative;
    }

    #menu-principal {
        justify-content: flex-start;

        gap: 10px 14px;
    }

    #livro {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 32px;
    }

    .livro-identificacao {
        order: 1;
    }

    .capa-principal {
        order: 2;

        width: min(80vw, 360px);
    }

    .livro-apresentacao {
        order: 3;
    }

    #titulo-estherium {
        font-size: clamp(48px, 16vw, 82px);
    }

    .universo-dados {
        grid-template-columns: 1fr;
    }

    .imagem-universo .placeholder-imagem,
    .imagem-universo img {
        min-height: 260px;
    }

    .galeria-grid,
    .personagens-grid {
        grid-template-columns: 1fr;
    }

    .galeria-paisagem .placeholder-imagem {
        aspect-ratio: 3 / 2;
    }

    .personagens-retratos .placeholder-imagem {
        aspect-ratio: 5 / 7;
    }

    #experiencia {
        padding: 78px 14px;
    }

    .estherium-interface {
        padding: 12px;
    }

    .estherium-moldura {
        min-height: 520px;

        padding: 18px 14px 110px;
    }

    #estherium-superficie {
        min-height: 390px;
    }

    .estherium-controle {
        bottom: 14px;

        width: 82px;
        height: 82px;
    }

    .estherium-controle button {
        width: 66px;
        height: 66px;
    }

    .estherium-comandos {
        gap: 5px;
    }

    .estherium-comandos button {
        flex:
            1 1
            calc(50% - 5px);

        min-height: 40px;
    }

    .arquivo-livro {
        grid-template-columns:
            minmax(110px, 150px)
            minmax(0, 1fr);

        gap: 20px;
    }

    .arquivo-navegacao {
        align-items: flex-start;
        flex-direction: column;
    }


    /* =====================================================
       EXPERIÊNCIA EM TELA CHEIA NO CELULAR
       ===================================================== */

    body.estherium-mobile-ativo {
        overflow: hidden;

        overscroll-behavior: none;

        touch-action: none;
    }

    body.estherium-mobile-ativo #experiencia {
        position: fixed;
        inset: 0;

        z-index: 10000;

        width: 100vw;
        max-width: none;

        height: 100vh;
        height: 100dvh;

        margin: 0;
        padding: 0;

        background: var(--bg-deep);
    }

    body.estherium-mobile-ativo #experiencia > header,
    body.estherium-mobile-ativo #recompensa-estherium {
        display: none !important;
    }

    body.estherium-mobile-ativo #terminal-estherium {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        max-width: none;

        margin: 0;

        border: 0;

        box-shadow: none;
    }

    body.estherium-mobile-ativo .estherium-interface {
        display: flex;
        flex-direction: column;

        height: 100%;

        padding:
            calc(8px + env(safe-area-inset-top))
            calc(8px + env(safe-area-inset-right))
            calc(8px + env(safe-area-inset-bottom))
            calc(8px + env(safe-area-inset-left));
    }

    body.estherium-mobile-ativo .estherium-moldura {
        flex: 1 1 auto;

        min-height: 0;

        padding: 10px 10px 94px;
    }

    body.estherium-mobile-ativo #estherium-superficie {
        height: 100%;
        min-height: 0;
    }

    body.estherium-mobile-ativo .estherium-controle {
        bottom: 10px;
    }

    body.estherium-mobile-ativo .estherium-comandos {
        flex: 0 0 auto;

        margin-top: 8px;
    }

    body.estherium-mobile-ativo .estherium-comandos button {
        flex:
            1 1
            calc(33.333% - 5px);

        min-height: 38px;

        padding: 0 8px;

        font-size: 6px;
    }

    body.estherium-mobile-ativo #estherium-sair-mobile {
        position: absolute;

        top:
            calc(
                8px +
                env(safe-area-inset-top)
            );

        right:
            calc(
                8px +
                env(safe-area-inset-right)
            );

        z-index: 50;

        display: block;

        min-height: 32px;

        padding: 0 10px;

        border:
            1px solid
            rgba(118, 208, 255, 0.28);

        background:
            rgba(4, 12, 26, 0.88);

        color:
            rgba(224, 244, 255, 0.84);

        font-size: 7px;

        letter-spacing: 0.13em;
    }

}


/* =========================================================
   CELULAR PEQUENO
   ========================================================= */

@media (max-width: 430px) {

    #menu-principal {
        gap: 8px 11px;
    }

    #menu-principal a {
        font-size: 7px;
    }

    .arquivo-livro {
        grid-template-columns: 1fr;
    }

    .arquivo-livro figure {
        width: 170px;
    }

    .estherium-moldura {
        min-height: 470px;
    }

    #estherium-superficie {
        min-height: 340px;
    }

}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;
    }

}