/* =========================================================
   CONFIGURAÇÃO GERAL
   ========================================================= */

:root {
    --bg: #020812;
    --bg2: #071525;

    --panel: #061321;
    --panel-dark: #030c16;

    --cyan: #65c9ff;
    --blue: #123d61;
    --blue-light: #1b6594;

    --white: #edf6fb;
    --text: #c3d2dc;
    --muted: #718696;

    --border: #1b5278;
    --black: #00040a;

    --pixel: "Press Start 2P", monospace;
    --text-font: "Inter", Arial, sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

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


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


body {
    background: var(--bg);

    color: var(--white);

    font-family: var(--text-font);

    overflow-x: hidden;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}


/* =========================================================
   TELA
   ========================================================= */

.screen {
    width: 100%;
    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #0b2237 0%,
            #061524 45%,
            #020812 100%
        );
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .12;

    background-image:
        linear-gradient(
            rgba(101, 201, 255, .18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(101, 201, 255, .18) 1px,
            transparent 1px
        );

    background-size: 32px 32px;
}


/* =========================================================
   SCANLINES
   ========================================================= */

.scanlines {
    position: fixed;

    inset: 0;

    z-index: 50;

    pointer-events: none;

    opacity: .025;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 3px,
            #ffffff 4px
        );
}


/* =========================================================
   PAINEL PRINCIPAL
   ESTILO DA SEGUNDA IMAGEM
   ========================================================= */

.selection-panel {
    position: relative;

    z-index: 5;

    width: min(1400px, calc(100vw - 40px));
	
    background:
        linear-gradient(
            145deg,
            rgba(7, 21, 34, .98),
            rgba(3, 12, 22, .99)
        );

    border: 2px solid var(--border);

    box-shadow:
        8px 8px 0 var(--black),
        0 0 35px rgba(0, 0, 0, .55);

    overflow: hidden;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.panel-header {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;

    background: #061321;
    border-bottom: 1px solid var(--border);

    color: var(--muted);
    font-family: var(--pixel);

    font-size: 7px;
    letter-spacing: .6px;
}


.system-info {
    color: var(--cyan);
}


.status {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 7px;

    background: var(--cyan);

    box-shadow:
        0 0 7px var(--cyan);
}


.panel-code {
    color: var(--muted);
}


/* =========================================================
   TÍTULO
   ========================================================= */

.selection-title {
    text-align: center;

    padding:
        18px
        20px
        14px;
}


.small-title {
    display: block;
    margin-bottom: 11px;

    color: var(--cyan);

    font-family: var(--pixel);
    font-size: 8px;

    letter-spacing: 1.2px;
}


.selection-title h1 {
    margin-bottom: 10px;

    color: var(--white);

    font-family: var(--pixel);

    font-size: 24px;
    line-height: 1.5;

    text-shadow:
        2px 2px 0 var(--blue);
}


.selection-title p {
    max-width: 700px;

    margin: auto;

    color: var(--text);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   CARDS
   ========================================================= */

.profiles {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    padding:
        0
        18px
        14px;
}


/* =========================================================
   CARD
   ========================================================= */

.profile {
    min-width: 0;

    position: relative;

    display: flex;

    flex-direction: column;

    background:
        #061321;

    border: 1px solid var(--border);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


.profile:hover {
    transform: translateY(-3px);

    border-color: var(--cyan);

    box-shadow:
        4px 4px 0 var(--black);
}


/* =========================================================
   NÚMERO
   ========================================================= */

.profile-number {
    position: absolute;

    top: 8px;
    right: 8px;

    z-index: 5;

    padding: 7px 8px;

    background:
        rgba(2, 8, 18, .90);

    border: 1px solid var(--border);

    color: var(--cyan);

    font-family: var(--pixel);

    font-size: 7px;
}


/* =========================================================
   IMAGEM
   ========================================================= */

.image-box {
    width: 100%;

    height: 240px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 8px;

    background:
        #020912;

    border-bottom: 1px solid var(--border);

    overflow: hidden;
}


.image-box img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    object-position: center;

    image-rendering: pixelated;

    transition:
        transform .2s ease;
}


.profile:hover .image-box img {
    transform: scale(1.04);
}


/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.profile-info {
    padding: 10px;

    min-height: 128px;
}


.profile-type {
    display: block;

    margin-bottom: 9px;

    color: var(--cyan);

    font-family: var(--pixel);

    font-size: 8px;

    letter-spacing: .6px;
}


.profile-info h2 {
    margin-bottom: 9px;

    color: var(--white);

    font-family: var(--pixel);

    font-size: 12px;

    line-height: 1.7;
}


.profile-info p {
    min-height: 40px;

    margin-bottom: 10px;

    color: var(--text);

    font-size: 11px;

    line-height: 1.7;

    overflow: hidden;
}


/* =========================================================
   SELECIONAR
   ========================================================= */

.select {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-top: 8px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-family: var(--pixel);

    font-size: 7px;
}


.select::after {
    content: "▶";

    color: var(--cyan);
}


.profile:hover .select {
    color: var(--cyan);
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.panel-footer {
    min-height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    padding: 6px 10px;

    background:
        rgba(2, 8, 18, .45);

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-family: var(--pixel);

    font-size: 6px;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 15px;

    background:
        rgba(0, 5, 12, .90);

    backdrop-filter: blur(4px);

    opacity: 0;

    visibility: hidden;

    transition: .2s ease;
}


.modal.active {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   MODAL BOX
   ========================================================= */

.modal-box {
    width: min(650px, 100%);

    max-height: 90vh;

    overflow: auto;

    background:
        var(--panel);

    border: 2px solid var(--cyan);

    box-shadow:
        8px 8px 0 var(--black);

    transform: scale(.96);

    transition: .2s ease;
}


.modal.active .modal-box {
    transform: scale(1);
}


/* =========================================================
   CABEÇALHO MODAL
   ========================================================= */

.modal-header {
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    background: #061321;

    border-bottom: 1px solid var(--border);

    color: var(--cyan);

    font-family: var(--pixel);

    font-size: 6px;
}


.modal-header button {
    width: 25px;
    height: 25px;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--cyan);

    font-family: var(--pixel);

    font-size: 7px;

    cursor: pointer;
}


.modal-header button:hover {
    background: var(--blue);
}


/* =========================================================
   CONTEÚDO MODAL
   ========================================================= */

.modal-content {
    padding: 28px;
}


.modal-label {
    display: block;

    margin-bottom: 12px;

    color: var(--cyan);

    font-family: var(--pixel);

    font-size: 6px;
}


.modal-content h2 {
    margin-bottom: 18px;

    color: var(--white);

    font-family: var(--pixel);

    font-size: 11px;

    line-height: 1.7;
}


.modal-content p {
    margin-bottom: 20px;

    color: var(--text);

    font-size: 13px;

    line-height: 1.8;
}


.modal-items {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;
}


.modal-items div {
    padding: 15px 8px;

    text-align: center;

    background: #061321;

    border: 1px solid var(--border);

    color: var(--text);

    font-family: var(--pixel);

    font-size: 5px;
}


.modal-items div:hover {
    border-color: var(--cyan);

    color: var(--cyan);
}


/* =========================================================
   FULL HD
   1920 × 1080

   Mantém o painel PEQUENO e CENTRALIZADO,
   exatamente como na segunda imagem.
   ========================================================= */

@media (min-width: 1600px) and (min-height: 850px) {

    .selection-panel {
        width: 1400px;
    }

    .selection-title {
        padding:
            24px
            20px
            18px;
    }

    .selection-title h1 {
        font-size: 24px;
    }

    .selection-title p {
        font-size: 12px;
    }

    .profiles {
        gap: 10px;

        padding:
            0
            18px
            18px;
    }

    .image-box {
        height: 240px;
    }

    .profile-type {
        font-size: 8px;
    }

    .profile-info h2 {
        font-size: 12px;
    }

    .profile-info p {
        font-size: 11px;
    }

    .select {
        font-size: 7px;
    }
}


/* =========================================================
   NOTEBOOK
   ========================================================= */

@media (max-width: 1100px) and (min-width: 701px) {

    .screen {
        padding: 15px;
    }


    .selection-panel {
        width: min(940px, calc(100vw - 30px));
    }


    .selection-title h1 {
        font-size: 17px;
    }


    .image-box {
        height: 115px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 700px) {

    body {
        overflow-y: auto;
    }


    .screen {
        min-height: 100vh;

        height: auto;

        padding: 15px;

        align-items: flex-start;

        overflow: visible;
    }


    .selection-panel {
        width: 100%;

        max-width: 600px;

        margin: auto;
    }


    .panel-header {
        height: 38px;

        padding: 0 12px;

        font-size: 5px;
    }


    .selection-title {
        padding:
            22px
            15px
            18px;
    }


    .selection-title h1 {
        font-size: 17px;
    }


    .selection-title p {
        font-size: 10px;
    }


    .profiles {
        grid-template-columns: 1fr;

        max-width: 500px;

        margin: auto;

        gap: 12px;

        padding:
            0
            15px
            18px;
    }


    .image-box {
        height: 220px;
    }


    .profile-info {
        padding: 14px;

        min-height: 0;
    }


    .profile-type {
        font-size: 6px;
    }


    .profile-info h2 {
        font-size: 9px;
    }


    .profile-info p {
        font-size: 10px;

        min-height: 0;
    }


    .select {
        font-size: 6px;
    }


    .panel-footer {
        min-height: 34px;

        font-size: 4px;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 480px) {

    .screen {
        padding: 8px;
    }


    .selection-panel {
        width: 100%;

        border-width: 1px;

        box-shadow:
            5px 5px 0 var(--black);
    }


    .panel-header {
        height: 34px;

        padding: 0 9px;

        font-size: 4px;
    }


    .selection-title {
        padding:
            20px
            10px
            16px;
    }


    .small-title {
        font-size: 5px;

        margin-bottom: 9px;
    }


    .selection-title h1 {
        font-size: 14px;

        text-shadow:
            2px 2px 0 var(--blue);
    }


    .selection-title p {
        font-size: 9px;

        line-height: 1.6;
    }


    .profiles {
        gap: 10px;

        padding:
            0
            10px
            12px;
    }


    .image-box {
        height: 200px;

        padding: 8px;
    }


    .profile-info {
        padding: 12px;
    }


    .profile-type {
        font-size: 5px;
    }


    .profile-info h2 {
        font-size: 8px;
    }


    .profile-info p {
        font-size: 9px;

        line-height: 1.6;
    }


    .select {
        font-size: 5px;
    }


    .panel-footer {
        display: none;
    }


    .modal {
        padding: 8px;
    }


    .modal-box {
        max-height: 94vh;
    }


    .modal-content {
        padding: 20px;
    }


    .modal-content h2 {
        font-size: 9px;
    }


    .modal-content p {
        font-size: 11px;
    }


    .modal-items {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   CELULAR MUITO PEQUENO
   ========================================================= */

@media (max-width: 350px) {

    .selection-title h1 {
        font-size: 12px;
    }


    .selection-title p {
        font-size: 8px;
    }


    .image-box {
        height: 170px;
    }


    .profile-info h2 {
        font-size: 7px;
    }


    .profile-info p {
        font-size: 8px;
    }
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;

        transition: none !important;
    }
}