@font-face {
    font-family: "VGA-FONT";
    src: url("../assets/fonts/Px437_ACM_VGA_8x16.ttf") format("truetype");
    font-display: swap;
}

/* GLOBAL */
.secret-body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    font-family: "VGA-FONT";
    image-rendering: pixelated;
}

/* WRAPPER */
.secret-wrapper {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* VIDEO PLAYER */
#dos-player {
    width: calc(100vh * 0.44);
    margin-bottom: calc(100vh * 0.25);
}

.hidden {
    display: none !important;
}

.dos-frame {
    width: 100%;
    aspect-ratio: 981 / 1326;
    background: black;
    border: 2px solid #111;
    outline: 2px solid #333;
    display: flex;
    transform: translateX(-0.4vw);
}

#dos-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ preserves aspect ratio */
    background: black;   /* optional but recommended */
}

/* CONTROLS BAR */
.dos-controls {
    width: calc(100% + 6px);
    margin-left: -1px;
    background: #0d0d0d;
    box-sizing: border-box;

    border-left: 1px solid #222;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
    outline: 1px solid #333;

    padding: 4px 0;

    display: flex;
    flex-direction: row;
    align-items: center;

    transform: translateX(-0.4vw);
}

/* ---------------------------------------------------------
   BUTTONS (FIXED SIZE — DESKTOP)
--------------------------------------------------------- */
.retro-btn {
    background: #202020;
    color: #c8c8c8;

    border: 1px solid #444;
    outline: 1px solid #000;

    font-family: "VGA-FONT";
    cursor: pointer;

    /* 🔒 HARD SIZE LOCK */
    width: 34px;
    height: 25px;

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

    padding: 0;
    line-height: 1;
}

/* Play / Pause */
#btn-play {
    margin-left: 8px;
    margin-right: auto;
    font-size: 0.5rem;
}

/* Fullscreen */
#btn-full {
    margin-right: 8px;
    font-size: 0.4rem;
}

/* VOLUME SLIDER */
#dos-volume {
    width: 50px;
    height: 4px;
    background: #333;
    outline: 1px solid #000;
    border: 1px solid #444;
    appearance: none;
    margin-right: 10px;
}

#dos-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 4px;
    height: 4px;
    background: #888;
    border: 1px solid #444;
}

#dos-volume::-moz-range-thumb {
    width: 4px;
    height: 4px;
    background: #888;
    border: 1px solid #444;
}

/* LINKS */
.secret-number-links {
    position: absolute;
    bottom: calc(100vh * 0.04);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: calc(100vh * 0.014);
    align-items: center;
}

.secret-number-links a {
    font-size: calc(100vh * 0.022);
    color: red;
    cursor: pointer;
    letter-spacing: calc(100vh * 0.0025);
    text-decoration: none;
}

.secret-number-links a:hover,
.secret-number-links a.active {
    color: #777;
}

/* TIC TAC TOE */
#ttt-box {
    position: absolute;
    top: calc(100vh * 0.12);
    width: calc(100vh * 0.44);
    aspect-ratio: 1 / 1;
    display: none;
}

#ttt-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(3,1fr);
    border: 2px solid #111;
    outline: 1px solid #333;
}

.ttt-cell {
    border: 2px solid #111;
    outline: 1px solid #333;
    font-size: calc(100vh * 0.06);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#ttt-win-message {
    position: absolute;
    top: calc(100vh * 0.40);
    font-size: calc(100vh * 0.03);
    color: #555;
    display: none;
}

/* CLICKABLE USERNAME AFTER WIN */
#unlock-username {
    cursor: pointer;
    color: red;
    text-decoration: underline;
}
