@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Share+Tech+Mono&display=swap');

:root {
    --bg: #090a09;
    --green: #9cff75;
    --green-dim: #54794a;
    --amber: #e5b95c;
    --paper: #302d24;
    --paper-light: #464134;
    --red: #b84d3d;
    --metal: #171918;
    --metal-light: #383c38;
}

* {
    box-sizing: border-box;
}

html,
body {
  -webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 50% 35%, rgba(79, 83, 65, .22), transparent 40%),
        linear-gradient(125deg, #050605, #11120f 48%, #070807);
    color: #ddd7c7;
    font-family: "Share Tech Mono", monospace;
    overflow-x: hidden;
}

button {
    font: inherit;
}

.scene {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 4vw, 70px);
    display: grid;
    place-items: center;
}

.grain {
    position: fixed;
    inset: -50%;
    pointer-events: none;
    opacity: .09;
    background-image:
        repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px 4px);
    background-size: 7px 7px;
    mix-blend-mode: overlay;
    transform: rotate(7deg);
}

.desk-light {
    position: fixed;
    width: 90vw;
    height: 65vh;
    top: -15vh;
    left: 5vw;
    background: radial-gradient(ellipse, rgba(200, 185, 128, .11), transparent 65%);
    filter: blur(25px);
    pointer-events: none;
}

.dossier-stage {
    position: relative;
    width: min(1240px, 96vw);
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 75px);
    perspective: 1500px;
}

.folder {
    position: relative;
    width: min(700px, 58vw);
    aspect-ratio: 1.35 / 1;
    background:
        linear-gradient(135deg, rgba(255,255,255,.04), transparent 22%),
        linear-gradient(160deg, #3b382c, #27251e 60%, #1e1d18);
    border: 1px solid rgba(190, 175, 128, .25);
    border-radius: 5px 8px 3px 3px;
    box-shadow:
        0 35px 55px rgba(0,0,0,.7),
        inset 0 1px rgba(255,255,255,.08),
        inset 0 -12px 30px rgba(0,0,0,.2);
    transform: rotate(-2deg);
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s;
    overflow: visible;
}

.folder::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(210, 195, 143, .08);
    pointer-events: none;
}

.folder::after {
    content: "";
    position: absolute;
    width: 35%;
    height: 45px;
    top: -45px;
    left: 25px;
    background: #363329;
    border: 1px solid rgba(190, 175, 128, .2);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: -1;
}

.folder.is-unlocked {
    transform: rotate(0deg) translateY(-7px);
    filter: drop-shadow(0 0 22px rgba(156, 255, 117, .12));
}

.folder-tab {
    position: absolute;
    top: 0;
    left: 35px;
    right: 35px;
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #99927e;
}

.folder-stamp {
    position: absolute;
    top: 55px;
    left: 45px;
    border: 3px solid rgba(157, 43, 34, .62);
    color: rgba(157, 43, 34, .72);
    padding: 10px 15px 3px;
    font-family: "Special Elite", serif;
    font-size: clamp(17px, 2vw, 28px);
    letter-spacing: 4px;
    transform: rotate(-5deg);
    /* mix-blend-mode: multiply; */
}

.folder-stamp-small {
    top: auto;
    left: auto;
    right: 45px;
    bottom: 45px;
    font-size: 11px;
    letter-spacing: 2px;
    border-width: 2px;
    padding: 9px 15px 6px;
}

.paper-stack {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 22%;
    height: 32%;
    background: #bcb49a;
    opacity: .08;
    transform: rotate(.8deg);
    box-shadow: 0 7px 15px rgba(0,0,0,.25);
}

.paper-line {
    height: 1px;
    background: #201f1b;
    margin: 22px 25px;
    opacity: .8;
}

.folder-label {
    position: absolute;
    left: 11%;
    bottom: 8%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: "Special Elite", serif;
    color: #77705f;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.folder-label strong {
    font-size: 16px;
    letter-spacing: 3px;
}

.locks {
    position: absolute;
    inset: 24% 10% 22%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
}

.lock {
    position: relative;
    width: clamp(50px, 6vw, 74px);
    aspect-ratio: 1 / 1.15;
    filter: drop-shadow(4px 7px 5px rgba(0,0,0,.6));
    transition: transform .35s;
}

.lock:hover {
    transform: translateY(-2px);
}

.lock-body {
    position: absolute;
    inset: 25% 0 0;
}

.lock-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #4b4f4b, #111312 65%);
    border: 2px solid #5d625d;
    box-shadow:
        inset 2px 2px 4px rgba(255,255,255,.16),
        inset -5px -6px 9px rgba(0,0,0,.6);
    display: grid;
    place-items: center;
      z-index: 3;
}

.lock-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c08d3a;
    top: 10px;
    box-shadow: 0 0 5px rgba(224, 170, 71, .35);
}

.lock-number {
    font-size: 14px;
    color: #bbb9aa;
    margin-top: 15px;
}

.lock-shackle {
    position: absolute;
    z-index: 3;
    width: 48%;
    height: 46%;
    left: 26%;
    top: -46%;
    border: 7px solid #3f433f;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    box-shadow: inset 1px 1px 3px rgba(255,255,255,.2);
    transform-origin: 80% 100%;
    transition: transform .7s cubic-bezier(.3,1.7,.5,1);
}

.lock.is-open .lock-shackle {
    transform: rotate(38deg) translate(7px, -5px);
}

.lock.is-open .lock-dot {
    background: var(--green);
    box-shadow: 0 0 12px rgba(156,255,117,.75);
}

.lock.is-open .lock-face {
    border-color: #5f7c58;
}

.lock-shadow {
    position: absolute;
    width: 80%;
    height: 10px;
    bottom: -9px;
    left: 10%;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    filter: blur(4px);
}

.open-folder {
    position: absolute;
    right: 8%;
    bottom: 7%;
    padding: 9px 14px;
    border: 1px solid rgba(156,255,117,.25);
    background: rgba(10,20,10,.65);
    color: var(--green);
    cursor: pointer;
    letter-spacing: 1.5px;
    font-size: 10px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: .35s;
}

.folder.is-unlocked .open-folder {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.open-folder:hover {
    background: rgba(156,255,117,.1);
    box-shadow: 0 0 18px rgba(156,255,117,.08);
}

.open-folder-icon {
    margin-right: 7px;
}

.access-panel {
    width: min(300px, 31vw);
    min-width: 245px;
    padding: 18px;
    background:
        linear-gradient(145deg, #282b28, #111311 60%),
        #151715;
    border: 1px solid #454a45;
    border-radius: 8px;
    box-shadow:
        0 28px 45px rgba(0,0,0,.72),
        inset 1px 1px rgba(255,255,255,.08);
    transform: rotate(2deg);
    position: relative;
}

.access-panel::before,
.access-panel::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555a55;
    top: 10px;
    box-shadow: 0 0 3px #000;
}

.access-panel::before { left: 10px; }
.access-panel::after { right: 10px; }

.panel-top,
.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #767c76;
    font-size: 8px;
    letter-spacing: 1.4px;
}

.panel-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.screen-frame {
    margin: 17px 0;
    padding: 8px;
    background: #0b0d0b;
    border: 2px solid #343934;
    box-shadow: inset 0 0 15px #000;
}

.screen {
    min-height: 126px;
    padding: 12px;
    color: var(--green);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(156,255,117,.035) 0,
            rgba(156,255,117,.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        #091009;
    box-shadow: inset 0 0 20px rgba(156,255,117,.07);
    text-shadow: 0 0 7px rgba(156,255,117,.4);
    font-size: 10px;
}

.screen-header {
    font-size: 8px;
    opacity: .65;
    border-bottom: 1px solid rgba(156,255,117,.18);
    padding-bottom: 7px;
}

.screen-main {
    min-height: 34px;
    display: grid;
    place-items: center;
    text-align: center;
    margin-top: 12px;
}

.screen-code {
    text-align: center;
    font-size: 17px;
    letter-spacing: 4px;
    margin: 7px 0;
}

.screen-status {
    text-align: center;
    font-size: 8px;
    opacity: .65;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.key {
    min-height: 39px;
    color: #bbbdb6;
    background: linear-gradient(145deg, #363a36, #171a17);
    border: 1px solid #4a4f4a;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 0 #080908;
    transition: transform .08s, background .2s;
}

.key:hover {
    background: #3f453f;
}

.key:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #080908;
}

.key-clear {
    color: #d29178;
}

.key-enter {
    color: var(--green);
}

.panel-footer {
    margin-top: 14px;
}

.desk-note {
    display: none !important;
    position: absolute;
    bottom: 3%;
    left: 4%;
    padding: 13px 17px;
    width: 180px;
    background: #b4a85e;
    color: #332f1c;
    transform: rotate(-5deg);
    box-shadow: 5px 8px 12px rgba(0,0,0,.45);
    font-family: "Special Elite", serif;
    font-size: 9px;
}

.desk-note strong {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 11px 18px;
    background: rgba(8, 10, 8, .94);
    border: 1px solid rgba(156,255,117,.3);
    color: var(--green);
    font-size: 11px;
    letter-spacing: 1px;
    transition: .3s;
    z-index: 30;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.error {
    color: #e58e7f;
    border-color: rgba(229,142,127,.35);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
}

.modal.is-open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.84);
    backdrop-filter: blur(7px);
}

.invitation-window {
    position: relative;
    width: min(92vw, 820px);
    max-height: 94vh;
    padding: 22px;
    background: #24221c;
    border: 1px solid #655d4b;
    box-shadow: 0 30px 90px #000;
    animation: modalIn .55s cubic-bezier(.2,.8,.2,1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(35px) scale(.95) rotate(-1deg); }
    to { opacity: 1; transform: none; }
}

.modal-close {
    position: absolute;
    z-index: 3;
    top: 7px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #aaa28e;
    font-size: 28px;
    cursor: pointer;
}

.invitation-meta {
    display: flex;
    justify-content: space-between;
    color: #88816f;
    font-size: 8px;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.invitation-paper {
    position: relative;
    max-height: calc(94vh - 80px);
    overflow: auto;
    background: #000;
    box-shadow: 0 15px 30px rgba(0,0,0,.5);
}

.invitation-paper img {
    display: block;
    width: 100%;
    max-height: calc(94vh - 100px);
    object-fit: contain;
}

.image-missing-message {
    display: none;
    min-height: 400px;
    padding: 60px;
    place-items: center;
    text-align: center;
    color: #302e28;
    font-family: "Special Elite", serif;
}

.invitation-paper.image-missing img {
    display: none;
}

.invitation-paper.image-missing .image-missing-message {
    display: grid;
}

.post-it {
    display: none !important;
    position: absolute;
    right: -45px;
    top: 80px;
    width: 150px;
    padding: 17px 13px;
    background: #b6a958;
    color: #38341e;
    box-shadow: 7px 10px 18px rgba(0,0,0,.5);
    transform: rotate(5deg);
    font-family: "Special Elite", serif;
}

.post-it span,
.post-it strong,
.post-it small {
    display: block;
}

.post-it span {
    font-size: 8px;
    letter-spacing: 1px;
}

.post-it strong {
    margin: 9px 0;
    font-size: 16px;
}

.post-it small {
    font-size: 8px;
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 9px;
}

.participant-list strong {
    display: block;
    font-size: 12px;
    line-height: 1.15;
}

.post-it {
    width: 175px;
}

.post-it > span {
    font-size: 9px;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .scene {
        padding: 30px 15px 70px;
    }

    .dossier-stage {
        flex-direction: column;
        min-height: auto;
        padding-top: 30px;
    }

    .folder {
        width: min(700px, 94vw);
    }

    .access-panel {
        width: min(350px, 88vw);
        transform: rotate(0);
    }

    .desk-note {
        position: fixed;
        left: 12px;
        bottom: 10px;
        transform: rotate(-2deg) scale(.8);
        transform-origin: bottom left;
        z-index: 10;
    }

    .post-it {
        right: -10px;
        top: 50px;
        transform: rotate(4deg) scale(.8);
        transform-origin: top right;
    }
}

@media (max-width: 520px) {
    .post-it {
        width: 111px;
    }

    .folder {
        width: 96vw;
        aspect-ratio: 1 / .9;
    }

    .locks {
        inset: 23% 7% 24%;
    }

    .lock {
        width: 45px;
    }

    .folder-stamp {
        top: 42px;
        left: 30px;
        font-size: 15px;
    }

    .folder-stamp-small {
        top: initial;
        left: initial;
        right: 30px;
        bottom: 32px;
        font-size: 8px;
    }

    .folder-label {
        left: 8%;
        bottom: 7%;
        font-size: 7px;
    }

    .folder-label strong {
        font-size: 11px;
    }

    .open-folder {
        right: 7%;
        font-size: 8px;
        padding: 7px 9px;
    }
}
