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

* {
    box-sizing: border-box;
}

html {
    background: #000000;
    scrollbar-gutter: stable;
    cursor:
        url("../assets/cursors/cursor3x.svg") 0 0,
        auto;
}

body {
    background: #000000;
    margin: 0;
    padding: 120px 24px;
}

.page {
    max-width: 888px;
    margin: 0 auto;
}

.pixel-text {
    font-family: "Pixel Sans";
    font-size: 39px;
    line-height: 51px;
    font-weight: normal;
    color: #fafafa;
    margin: 0;
}

.pixel-text.muted {
    color: #858585;
}

.pixel-text a,
a.pixel-text {
    color: #fafafa;
    text-decoration: underline;
    cursor:
        url("../assets/cursors/link3x.svg") 9 0,
        pointer;
}

/*  ── header ──  */

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

#site-title {
    cursor:
        url("../assets/cursors/link3x.svg") 9 0,
        pointer;
}

#site-title.inactive {
    color: #424242;
}

.footer {
    display: flex;
    margin-top: 24px;
    margin-left: 2px;
    color: #424242;
}

.tabs {
    display: flex;
    gap: 24px;
}

.tab {
    background: none;
    border: none;
    padding: 0;
    cursor:
        url("../assets/cursors/link3x.svg") 9 0,
        pointer;
    color: #424242;
    border-bottom: 3px solid #000;
}

.tab.active {
    color: #fafafa;
    border-bottom: 3px solid #fafafa;
}

/* ── panels ── */

.panel {
    display: none;
}

.panel.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── content / block sections ── */

.content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.block-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── info box ── */

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 20px 32px;
    border: 3px solid #262626;
    border-radius: 6px;
}

.info-box .pixel-text {
    font-size: 34px;
    line-height: 43px;
    color: #ffffff;
}

.info-box .pixel-text.muted {
    color: #858585;
}

/* ── tile grid ── */

.tile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tile {
    width: 63px;
    height: 93px;
    padding: 12px 0 6px 0;
    border-radius: 6px;
    box-shadow: inset 0 0 0 3px #262626;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor:
        url("../assets/cursors/link3x.svg") 9 0,
        pointer;
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.tile--wide {
    width: 138px;
}

.tile:hover {
    background-color: #fafafa;
    box-shadow: none;
}

.tile:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 2px;
}

.inter-glyph {
    font-family:
        "Inter", "Noto Sans Runic", "Noto Sans Symbols 2", "Noto Sans Symbols",
        "Noto Sans JP", "Noto Sans", sans-serif;

    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #858585;
    text-align: center;
    width: 100%;
}

.inter-glyph--pua {
    font-size: 12px;
    font-weight: 650;
    color: #4e4e4e;
}

.pixel-glyph-wrap {
    align-self: center;
    width: fit-content;
    padding-left: 3px; /* <- cancels out pixel tracking */
    text-align: right;
}

.tile:hover .inter-glyph,
.tile:hover .pixel-glyph-wrap .pixel-text {
    color: #000000;
}

/* ── input fields ── */

.field {
    display: block;
    width: 100%;
    min-height: 150px;
    padding: 20px 24px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 3px #262626;
    background: none;
    border: none;
    outline: none;
    resize: none;
    overflow-y: hidden;
}

textarea.field {
    cursor:
        url("../assets/cursors/text3x.svg") 10 16,
        text;
}

.field.pixel-text {
    color: #ffffff;
}

.field::placeholder {
    color: #424242;
    opacity: 1;
}

/* ── itch.io embed ── */

.itch-wrap {
    width: 100%;
    height: 200px;
    margin-bottom: 48px;
    background: #151515;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    cursor:
        url("../assets/cursors/cursor3x.svg") 0 0,
        auto;
}

.itch-wrap iframe {
    display: block;
    width: 550px;
    height: 165px;
    border: none;
    flex-shrink: 0;
}

/* ── cipher controls ── */

.cipher-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1px 14px 4px 16px;
    border-radius: 6px;
    background: #181818;
    border: none;
    cursor:
        url("../assets/cursors/cursor3x.svg") 0 0,
        auto;
}

.copy-btn.pixel-text {
    color: #000000;
}

.copy-btn.enabled {
    cursor:
        url("../assets/cursors/link3x.svg") 9 0,
        pointer;
    box-shadow: none;
    background: #fafafa;
}

.copy-btn.enabled.pixel-text {
    color: #000000;
}

/* ── "copied" toast ── */

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    background: #fafafa;
    color: #000000;
    font-family: "Pixel Sans";
    font-weight: 500;
    font-size: 39px;
    padding: 3px 16px 6px 18px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.toast.visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tile,
    .toast {
        transition: none;
    }
}

::selection {
    background-color: #fafafa;
    color: #000000;
}
::-moz-selection {
    background-color: #fafafa;
    color: #000000;
}
