:root {
    --navy-950: #07111f;
    --navy-900: #091a2d;
    --navy-800: #102a45;
    --navy-700: #173b5c;
    --ink: #102033;
    --paper: #efe2c6;
    --paper-dark: #d6bd93;
    --dust: #9e7659;
    --muted: #9bb2c4;
    --line: rgba(255, 255, 255, 0.16);
    --panel: rgba(12, 30, 51, 0.78);
    --panel-strong: rgba(13, 28, 45, 0.94);
    --green: #47d68d;
    --teal: #51c7d9;
    --yellow: #f0c65d;
    --red: #ff6b6b;
    --purple: #9c84ff;
    --white: #f8fbff;
    --shadow: 10px 12px 0 rgba(2, 8, 15, 0.28), 0 24px 70px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.24);
    --radius: 8px;
    --radius-small: 6px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--navy-950);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #091a2d 0%, #102a45 45%, #11141b 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(240, 198, 93, 0.2) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.13) 0 1px, transparent 1.5px);
    background-position: 0 0, 17px 29px;
    background-size: 43px 41px, 61px 67px;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    color: var(--ink);
    background: var(--yellow);
}

.skip-link,
.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;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    clip: auto;
    color: var(--ink);
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
}

.object-field {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.float-prop {
    position: absolute;
    opacity: 0.28;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
    animation: floatJunk 13s ease-in-out infinite;
}

.float-prop span {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
}

.float-arduino {
    width: 7.2rem;
    height: 4.35rem;
    border: 4px solid #031b18;
    border-radius: 0.65rem;
    background:
        linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.16) 10% 13%, transparent 13% 100%),
        #118a71;
}

.float-arduino::before,
.float-arduino::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    height: 0.35rem;
    border-radius: 0.35rem;
    background: repeating-linear-gradient(90deg, #07111f 0 0.22rem, transparent 0.22rem 0.46rem);
}

.float-arduino::before {
    top: 0.4rem;
}

.float-arduino::after {
    bottom: 0.4rem;
}

.float-gameboy {
    width: 5.2rem;
    height: 7.4rem;
    border: 4px solid #08101b;
    border-radius: 0.75rem 0.75rem 1.2rem 0.75rem;
    background: #d2d1c6;
}

.float-gameboy span {
    position: absolute;
    top: 0.9rem;
    left: 0.7rem;
    right: 0.7rem;
    height: 2.4rem;
    color: #9ff2b6;
    border: 3px solid #08101b;
    border-radius: 0.35rem;
    background: #20342c;
}

.float-gameboy::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    bottom: 1.35rem;
    width: 1.6rem;
    height: 1.6rem;
    background:
        linear-gradient(#08101b 0 0) center / 100% 0.34rem no-repeat,
        linear-gradient(90deg, #08101b 0 0) center / 0.34rem 100% no-repeat;
}

.float-gameboy::after {
    content: "";
    position: absolute;
    right: 0.9rem;
    bottom: 1.65rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 1rem 0 0 #6f73ff;
}

.float-cartridge {
    width: 6.1rem;
    height: 4.2rem;
    border: 4px solid #08101b;
    border-radius: 0.5rem;
    background: #343a46;
}

.float-cartridge span {
    position: absolute;
    inset: 0.85rem 0.6rem auto;
    height: 1.4rem;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid #08101b;
}

.float-floppy {
    width: 5.7rem;
    height: 5.7rem;
    border: 4px solid #08101b;
    border-radius: 0.45rem;
    background: #314966;
}

.float-floppy::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    right: 0.6rem;
    width: 1.6rem;
    height: 1.45rem;
    border: 2px solid #08101b;
    background: #d8dde4;
}

.float-floppy span {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.65rem;
    height: 1.45rem;
    color: var(--ink);
    border: 2px solid #08101b;
    background: var(--paper);
}

.float-wire {
    width: 8.5rem;
    height: 5.4rem;
    border: 0.55rem solid var(--red);
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
}

.prop-a {
    top: 13%;
    left: 7%;
    transform: rotate(-12deg);
}

.prop-b {
    top: 17%;
    right: 9%;
    transform: rotate(8deg);
    animation-delay: -3s;
}

.prop-c {
    top: 55%;
    left: 4%;
    transform: rotate(14deg);
    animation-delay: -7s;
}

.prop-d {
    top: 45%;
    right: 2%;
    transform: rotate(-30deg);
    animation-delay: -1s;
}

.prop-e {
    bottom: 7%;
    right: 15%;
    transform: rotate(-9deg);
    animation-delay: -5s;
}

.prop-f {
    bottom: 15%;
    left: 18%;
    transform: rotate(18deg);
    animation-delay: -8s;
}

.prop-g {
    bottom: 33%;
    right: 31%;
    transform: rotate(-16deg);
    animation-delay: -10s;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem max(1rem, 3vw);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(7, 17, 31, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.25rem 0.65rem 0.25rem 0.25rem;
    color: var(--white);
    font-weight: 950;
    text-decoration: none;
}

.brand-orb {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: 0.45rem;
    background: var(--yellow);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-links a {
    padding: 0.65rem 0.78rem;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 850;
    text-decoration: none;
    border-radius: 0.55rem;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
    display: block;
    width: 1.18rem;
    height: 0.13rem;
    border-radius: 999px;
    background: var(--white);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line {
    position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-line::before {
    top: -0.4rem;
}

.nav-toggle-line::after {
    top: 0.4rem;
}

.nav-shell.nav-open .nav-toggle-line {
    background: transparent;
}

.nav-shell.nav-open .nav-toggle-line::before {
    transform: translateY(0.4rem) rotate(45deg);
}

.nav-shell.nav-open .nav-toggle-line::after {
    transform: translateY(-0.4rem) rotate(-45deg);
}

.section-band {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 6rem 0;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 5rem);
    place-items: center;
    padding-top: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.78fr);
    align-items: center;
    gap: max(2rem, 5vw);
    width: 100%;
}

.hero-copy {
    animation: fadeUp 800ms ease both 180ms;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    max-width: 11ch;
    color: var(--white);
    font-size: 6rem;
    line-height: 0.94;
    letter-spacing: 0;
    text-wrap: balance;
    cursor: pointer;
    text-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, text-shadow 180ms ease;
}

.hero-title:hover,
.hero-title:focus-visible {
    transform: rotate(-1deg) scale(1.01);
    text-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3), 0 0 24px rgba(81, 199, 217, 0.18);
    outline: none;
}

.hero-subtitle {
    max-width: 39rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.24rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.8rem;
    padding: 0.78rem 1rem;
    border: 3px solid #08101b;
    border-radius: var(--radius);
    font-weight: 950;
    text-decoration: none;
    box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.3);
}

.button-primary {
    color: var(--ink);
    background: var(--green);
}

.button-soft {
    color: var(--paper);
    background: var(--navy-700);
}

.hero-photo-wrap {
    position: relative;
    display: grid;
    min-height: 31rem;
    place-items: center;
    animation: photoDrop 1100ms cubic-bezier(0.19, 1, 0.22, 1) both 120ms, gentleFloat 5.5s ease-in-out infinite 1.4s;
}

.hero-photo {
    width: min(100%, 24rem);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 7px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 15% 3% 4% 8%;
    z-index: -1;
    border: 4px solid rgba(0, 0, 0, 0.22);
    border-radius: var(--radius);
    background: repeating-linear-gradient(135deg, rgba(240, 198, 93, 0.28) 0 1rem, rgba(255, 107, 107, 0.18) 1rem 2rem);
    transform: rotate(-5deg);
}

.photo-badge {
    position: absolute;
    z-index: 2;
    padding: 0.6rem 0.75rem;
    color: var(--ink);
    font-weight: 950;
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--paper);
    box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.24);
}

.badge-top {
    top: 15%;
    right: 0;
    transform: rotate(4deg);
}

.badge-bottom {
    bottom: 13%;
    left: 0;
    transform: rotate(-3deg);
}

.scroll-hint {
    position: absolute;
    bottom: 1.3rem;
    left: 50%;
    width: 1.6rem;
    height: 2.6rem;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    transform: translateX(-50%);
}

.scroll-hint span {
    display: block;
    width: 0.34rem;
    height: 0.34rem;
    margin: 0.45rem auto;
    border-radius: 50%;
    background: var(--yellow);
    animation: scrollDot 1.6s ease-in-out infinite;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: 3.35rem;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.22);
}

.section-heading p:not(.eyebrow) {
    max-width: 44rem;
    color: var(--muted);
    line-height: 1.6;
}

.room-section {
    width: min(1320px, calc(100% - 1rem));
    padding-top: 4rem;
}

.room-heading {
    width: min(1180px, calc(100% - 1rem));
    margin-right: auto;
    margin-left: auto;
}

.room-scene {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border: 5px solid #08101b;
    border-radius: var(--radius);
    background: #2e2430;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.room-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0 7px, rgba(0, 0, 0, 0.05) 7px 8px),
        radial-gradient(circle at 19% 44%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.5px),
        radial-gradient(circle at 79% 30%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1.5px);
    background-size: auto, 27px 23px, 38px 31px;
    mix-blend-mode: soft-light;
}

.room-wall {
    position: absolute;
    inset: 0 0 34%;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, #243e5d 0%, #1a2e49 100%);
    background-size: 54px 100%, auto;
}

.room-floor {
    position: absolute;
    inset: 62% 0 0;
    z-index: 0;
    background:
        repeating-linear-gradient(95deg, #45311f 0 70px, #3a281b 70px 80px),
        #3d2a1d;
    border-top: 5px solid #08101b;
}

.room-desk {
    position: absolute;
    left: 15%;
    right: 10%;
    bottom: 19%;
    z-index: 2;
    height: 8.7rem;
    border: 5px solid #08101b;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
        repeating-linear-gradient(90deg, #8b5735 0 7rem, #77472b 7rem 7.7rem);
    box-shadow: 0 28px 0 rgba(0, 0, 0, 0.15);
}

.room-desk::before,
.room-desk::after {
    content: "";
    position: absolute;
    bottom: -12rem;
    width: 2rem;
    height: 12rem;
    border: 4px solid #08101b;
    background: #5a351f;
}

.room-desk::before {
    left: 8%;
}

.room-desk::after {
    right: 10%;
}

.room-shelf {
    position: absolute;
    top: 13%;
    right: 8%;
    z-index: 1;
    width: 23rem;
    height: 5rem;
    border-bottom: 5px solid #08101b;
}

.room-shelf span {
    position: absolute;
    bottom: 0;
    display: block;
    width: 3.4rem;
    border: 4px solid #08101b;
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--paper);
}

.room-shelf span:nth-child(1) {
    left: 1rem;
    height: 4.2rem;
    background: var(--red);
}

.room-shelf span:nth-child(2) {
    left: 5.1rem;
    height: 3.2rem;
    background: var(--teal);
}

.room-shelf span:nth-child(3) {
    left: 9.1rem;
    height: 4.8rem;
    background: var(--yellow);
}

.wall-poster {
    position: absolute;
    z-index: 1;
    display: block;
    padding: 0.75rem;
    color: var(--ink);
    border: 4px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--paper);
    box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.2);
    font-size: 0.82rem;
    font-weight: 900;
}

.poster-a {
    top: 10%;
    left: 10%;
    transform: rotate(-6deg);
}

.poster-b {
    top: 28%;
    left: 7%;
    transform: rotate(4deg);
}

.wall-crack {
    position: absolute;
    top: 19%;
    left: 43%;
    z-index: 1;
    width: 5rem;
    height: 8rem;
    border-left: 4px solid rgba(0, 0, 0, 0.35);
    transform: skewX(-18deg) rotate(8deg);
}

.wall-crack::before,
.wall-crack::after {
    content: "";
    position: absolute;
    width: 2.8rem;
    border-top: 4px solid rgba(0, 0, 0, 0.35);
}

.wall-crack::before {
    top: 2rem;
    left: -0.2rem;
    transform: rotate(-35deg);
}

.wall-crack::after {
    top: 4.2rem;
    left: -0.1rem;
    transform: rotate(34deg);
}

.wire {
    position: absolute;
    z-index: 3;
    width: 15rem;
    height: 8rem;
    border: 0.55rem solid;
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    pointer-events: none;
}

.wire-one {
    right: 22%;
    bottom: 22%;
    border-color: transparent var(--red) var(--red) transparent;
    transform: rotate(15deg);
}

.wire-two {
    left: 30%;
    bottom: 17%;
    border-color: transparent var(--teal) var(--teal) transparent;
    transform: rotate(-22deg);
}

.dust {
    position: absolute;
    z-index: 5;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(239, 226, 198, 0.55);
    box-shadow: 2rem 1rem 0 rgba(239, 226, 198, 0.25), 4rem -0.4rem 0 rgba(239, 226, 198, 0.3);
}

.dust-one {
    left: 14%;
    bottom: 24%;
}

.dust-two {
    left: 55%;
    bottom: 15%;
}

.dust-three {
    right: 17%;
    bottom: 33%;
}

.room-object {
    position: absolute;
    z-index: 10;
    border: 4px solid #08101b;
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.28);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.room-object:hover,
.room-object:focus-visible {
    transform: translateY(-5px) rotate(var(--hover-tilt, -1deg));
    box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.32);
    filter: brightness(1.06);
    outline: none;
}

.room-object.clicked {
    animation: objectPop 220ms ease;
}

.room-object.pulse-react,
.peel-note.pulse-react,
.message-card.pulse-react {
    animation: objectPop 360ms ease;
}

.flying-object {
    position: fixed;
    z-index: 140;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
    animation: driftAcross var(--duration, 5s) linear forwards;
}

.flying-object img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.55rem;
    object-fit: cover;
}

.flying-object.bomb img {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.24);
}

.flying-object.bomb::before,
.flying-object.bomb::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 0.8rem;
    height: 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    transform: translateX(-50%);
    filter: blur(3px);
    opacity: 0.7;
}

.flying-object.bomb::after {
    width: 0.55rem;
    height: 0.85rem;
    bottom: -1.1rem;
    opacity: 0.45;
}

.flying-object.block img {
    image-rendering: pixelated;
}

.flying-object.gif {
    width: 96px;
    height: 96px;
    border: 3px solid #08101b;
    border-radius: 1rem;
    background: var(--paper);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.flying-object.gif img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broken-word {
    position: fixed;
    z-index: 160;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #f4d68d);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
    font-weight: 950;
    transform-origin: left center;
    animation: tearWord 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.broken-word .bolt {
    display: inline-block;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c5d2df, #7c8491);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.broken-word .word-part {
    display: inline-block;
    transform-origin: center center;
}

.broken-word .word-part.dangling {
    animation: wobbleWord 0.7s ease-in-out infinite alternate;
}

.broken-word.settled {
    animation: settleWord 0.8s ease-out forwards;
}

.broken-word .thread {
    width: 0.16rem;
    height: 1.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #7c8491, #101827);
    transform-origin: top center;
    animation: swayThread 1.2s ease-in-out infinite alternate;
}

.object-label {
    position: absolute;
    z-index: 5;
    display: inline-grid;
    place-items: center;
    min-width: 3.4rem;
    padding: 0.28rem 0.4rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--yellow);
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1;
}

.obj-gameboy {
    --hover-tilt: 2deg;
    left: 12%;
    bottom: 29%;
    width: 9.5rem;
    height: 13.2rem;
    border-radius: 1rem 1rem 1.6rem 1rem;
    background: #c9c9bb;
    transform: rotate(-6deg);
}

.obj-gameboy .object-label {
    top: -1.15rem;
    left: 0.7rem;
}

.gb-screen {
    position: absolute;
    top: 1.35rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    height: 4.4rem;
    place-items: center;
    color: #a8ffbe;
    border: 4px solid #08101b;
    border-radius: var(--radius-small);
    background: #1e332c;
    font-size: 0.86rem;
    font-weight: 950;
}

.gb-pad {
    position: absolute;
    left: 1.1rem;
    bottom: 2.4rem;
    width: 2.7rem;
    height: 2.7rem;
    background:
        linear-gradient(#08101b 0 0) center / 100% 0.55rem no-repeat,
        linear-gradient(90deg, #08101b 0 0) center / 0.55rem 100% no-repeat;
}

.gb-buttons {
    position: absolute;
    right: 1.1rem;
    bottom: 3rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 1.5rem -0.3rem 0 var(--purple);
}

.obj-files {
    right: 11%;
    bottom: 27%;
    width: 12.4rem;
    height: 8.4rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: rotate(5deg);
}

.obj-files:hover,
.obj-files:focus-visible {
    box-shadow: none;
}

.obj-files .object-label {
    right: 0.5rem;
    top: 0.1rem;
}

.paper {
    position: absolute;
    display: block;
    width: 10.5rem;
    height: 6.5rem;
    border: 4px solid #08101b;
    border-radius: var(--radius-small);
    background:
        linear-gradient(180deg, transparent 0 1.1rem, rgba(16, 32, 51, 0.18) 1.1rem 1.3rem, transparent 1.3rem 2.15rem, rgba(16, 32, 51, 0.14) 2.15rem 2.35rem, transparent 2.35rem),
        var(--paper);
    box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.2);
}

.paper-one {
    right: 0;
    bottom: 0;
    transform: rotate(7deg);
}

.paper-two {
    right: 1rem;
    bottom: 0.8rem;
    background-color: #e6d3ad;
    transform: rotate(-5deg);
}

.paper-three {
    right: 2rem;
    bottom: 1.55rem;
    background-color: #f1e5cc;
    transform: rotate(2deg);
}

.obj-folder {
    left: 29%;
    bottom: 25%;
    width: 13rem;
    height: 7.2rem;
    background: #c7923c;
    transform: rotate(3deg);
}

.obj-folder .folder-tab {
    position: absolute;
    top: -1.35rem;
    left: 1rem;
    width: 5.4rem;
    height: 1.7rem;
    border: 4px solid #08101b;
    border-bottom: 0;
    border-radius: var(--radius-small) var(--radius-small) 0 0;
    background: #d9a34d;
}

.obj-folder .object-label {
    left: 1.2rem;
    bottom: 1rem;
    background: var(--paper);
}

.obj-monitor {
    right: 33%;
    bottom: 35%;
    width: 12.2rem;
    height: 9.6rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: rotate(-2deg);
}

.obj-monitor:hover,
.obj-monitor:focus-visible {
    box-shadow: none;
}

.monitor-screen {
    position: absolute;
    inset: 0 0 2.2rem;
    display: grid;
    place-items: center;
    color: #a8ffbe;
    border: 5px solid #08101b;
    border-radius: 1rem;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 5px),
        #16281f;
    box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.26);
    font-size: 1.4rem;
    font-weight: 950;
}

.monitor-base {
    position: absolute;
    left: 3.6rem;
    right: 3.6rem;
    bottom: 0;
    height: 2.6rem;
    border: 5px solid #08101b;
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #7c8491;
}

.obj-arduino {
    left: 45%;
    bottom: 20%;
    width: 12.7rem;
    height: 7rem;
    background: #0e8c71;
    transform: rotate(-8deg);
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(81, 199, 217, 0.2);
}

.obj-arduino.arduino-live {
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.28), 0 0 28px rgba(81, 199, 217, 0.55);
}

.obj-arduino.arduino-flash {
    filter: brightness(1.2) saturate(1.2);
    animation: arduinoGlow 220ms ease-in-out infinite alternate;
}

.board-title {
    position: absolute;
    left: 1rem;
    top: 2.3rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 950;
    letter-spacing: 0;
}

.board-chip {
    position: absolute;
    right: 2.2rem;
    top: 2.1rem;
    width: 3rem;
    height: 2.1rem;
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: #1b2330;
}

.pin-row {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    height: 0.45rem;
    border-radius: 0.45rem;
    background: repeating-linear-gradient(90deg, #07111f 0 0.28rem, transparent 0.28rem 0.55rem);
}

.pin-top {
    top: 0.62rem;
}

.pin-bottom {
    bottom: 0.62rem;
}

.obj-cube {
    right: 24%;
    bottom: 19%;
    width: 6.5rem;
    height: 6.5rem;
    background:
        linear-gradient(180deg, #5fb95a 0 38%, #8b5a36 38% 100%);
    transform: rotate(7deg);
}

.obj-cube .cube-top {
    position: absolute;
    inset: 0 0 auto;
    height: 2.4rem;
    background:
        linear-gradient(90deg, rgba(8, 16, 27, 0.14) 0 25%, transparent 25% 50%, rgba(8, 16, 27, 0.12) 50% 75%, transparent 75% 100%),
        #5fb95a;
}

.obj-cube .object-label {
    right: -1rem;
    bottom: -0.8rem;
    background: var(--green);
}

.obj-cassette {
    left: 63%;
    bottom: 14%;
    width: 10.8rem;
    height: 6.2rem;
    background: #343a46;
    transform: rotate(5deg);
}

.reel {
    position: absolute;
    top: 1.4rem;
    width: 2rem;
    height: 2rem;
    border: 4px solid #08101b;
    border-radius: 50%;
    background: var(--paper);
}

.reel-left {
    left: 1.2rem;
}

.reel-right {
    right: 1.2rem;
}

.tape-label {
    position: absolute;
    left: 3.4rem;
    right: 3.4rem;
    bottom: 0.7rem;
    display: grid;
    place-items: center;
    height: 1.2rem;
    color: var(--ink);
    border: 2px solid #08101b;
    background: var(--paper);
    font-size: 0.7rem;
    font-weight: 900;
}

.peel-zone {
    position: absolute;
    top: 27%;
    right: 19%;
    z-index: 12;
    width: 14rem;
    height: 9rem;
}

.peel-reveal {
    position: absolute;
    inset: 1rem 0.8rem 0.5rem 1rem;
    display: grid;
    place-items: center;
    color: var(--paper);
    border: 4px dashed rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.75);
    font-size: 1.15rem;
    font-weight: 950;
    text-align: center;
}

.peel-note {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 0.35rem;
    padding: 1rem;
    color: var(--ink);
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 34%),
        #f2d06d;
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.22);
    font-weight: 950;
    text-align: left;
    touch-action: none;
    transform: translate(var(--peel-x, 0), var(--peel-y, 0)) rotate(var(--peel-r, -3deg));
    transition: transform 180ms ease, opacity 180ms ease;
}

.peel-note small {
    font-weight: 850;
}

.peel-note.dragging {
    transition: none;
}

.peel-note.peeled {
    opacity: 0.12;
    pointer-events: none;
    transform: translate(14rem, -5rem) rotate(22deg);
}

.glass-card {
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 34%),
        var(--panel);
    box-shadow: var(--shadow-soft);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: 1rem;
}

.about-card,
.list-card,
.photo-slots {
    padding: 1.35rem;
}

.about-card {
    grid-row: span 2;
    background:
        linear-gradient(180deg, rgba(240, 198, 93, 0.13), transparent 35%),
        var(--panel-strong);
}

.about-card h3,
.list-card h3,
.photo-slots h3,
.chat-header h3,
.game-card h3,
.coming-soon h3 {
    margin: 0 0 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
}

.about-card p,
.about-card .bio-display,
.list-card li,
.game-card p,
.coming-soon p,
.chat-header p,
.minecraft-panel p,
.modal-card p {
    color: var(--muted);
    line-height: 1.6;
}

.bio-display {
    padding: 1rem;
    color: var(--paper);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: rgba(8, 16, 27, 0.72);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
    line-height: 1.7;
    white-space: pre-wrap;
}

.list-card ul {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.list-card li {
    padding: 0.72rem 0.82rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--paper);
    font-weight: 850;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.photo-slot {
    display: grid;
    min-height: 7.2rem;
    align-content: center;
    justify-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    color: var(--paper);
    border: 3px dashed rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.83rem;
    font-weight: 900;
    text-align: center;
    transition: transform 160ms ease, background 160ms ease;
}

.photo-slot:hover,
.photo-slot:focus-visible {
    transform: translateY(-3px) rotate(-1deg);
    background: rgba(255, 255, 255, 0.09);
}

.photo-slot span {
    width: 2rem;
    height: 2rem;
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--teal);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.social-card {
    position: relative;
    display: grid;
    min-height: 17rem;
    align-content: start;
    gap: 0.65rem;
    padding: 1.2rem;
    overflow: hidden;
    color: var(--white);
    text-decoration: none;
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
        var(--panel-strong);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.6rem;
    background: var(--accent);
}

.social-card:hover,
.social-card:focus-visible {
    transform: translateY(-7px) rotate(-1deg);
    box-shadow: var(--shadow);
    outline: none;
}

.card-icon,
.game-icon {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    place-items: center;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--accent, var(--yellow));
    box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.25);
}

.card-icon::before,
.game-icon::before {
    font-size: 0.78rem;
    font-weight: 950;
}

.icon-play::before {
    content: "PLAY";
}

.icon-scratch::before {
    content: "SCR";
}

.icon-spark::before {
    content: "NEW";
}

.icon-puzzle::before {
    content: "PUZ";
}

.icon-click::before {
    content: "CLK";
}

.icon-blocks::before {
    content: "BOX";
}

.icon-flask::before {
    content: "LAB";
}

.social-name {
    margin-top: 0.25rem;
    font-size: 1.55rem;
    font-weight: 950;
}

.social-handle {
    color: var(--yellow);
    font-weight: 850;
}

.social-desc {
    max-width: 18rem;
    color: var(--muted);
    line-height: 1.5;
}

.open-link {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    min-width: 3.2rem;
    height: 2rem;
    place-items: center;
    padding: 0 0.5rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--paper);
    font-size: 0.74rem;
    font-weight: 950;
}

.arcade-shell {
    padding: 1.25rem;
    border: 5px solid #08101b;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, #14142a, #102a45 58%, #1a1c28);
    box-shadow: var(--shadow);
}

.arcade-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--paper);
    font-weight: 900;
}

.status-light {
    width: 0.8rem;
    height: 0.8rem;
    border: 3px solid #08101b;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(71, 214, 141, 0.75);
    animation: pulse 1.4s ease-in-out infinite;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.game-card {
    display: grid;
    min-height: 19rem;
    padding: 1rem;
    color: var(--ink);
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.24);
    transition: transform 170ms ease, box-shadow 170ms ease;
}

.game-card:hover {
    transform: translateY(-7px);
    box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.28);
}

.game-card h3 {
    color: var(--ink);
}

.game-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.game-icon {
    --accent: var(--green);
    width: 2.8rem;
    height: 2.8rem;
}

.game-tag {
    padding: 0.34rem 0.55rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--yellow);
    font-size: 0.74rem;
    font-weight: 950;
}

.game-card p {
    margin: 0 0 1.1rem;
    color: #435166;
}

.mini-play {
    justify-self: start;
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.76rem;
    color: var(--white);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--navy-700);
    font-weight: 950;
    transition: transform 160ms ease, background 160ms ease;
}

.mini-play:hover,
.mini-play:focus-visible {
    transform: translateY(-2px);
    background: var(--navy-800);
}

.mini-play span {
    font-size: 0.72rem;
}

.game-card small {
    margin-top: 0.8rem;
    color: #59687a;
    font-weight: 850;
}

.coming-soon {
    position: relative;
    display: grid;
    min-height: 9rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.2rem;
    overflow: hidden;
    color: var(--white);
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.coming-soon p {
    margin: 0;
    color: var(--muted);
}

.arcade-dots {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    display: flex;
    gap: 0.45rem;
}

.arcade-dots span {
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid #08101b;
    border-radius: 50%;
    background: var(--yellow);
    animation: bounceDots 1.2s ease-in-out infinite;
}

.arcade-dots span:nth-child(2) {
    background: var(--red);
    animation-delay: 0.14s;
}

.arcade-dots span:nth-child(3) {
    background: var(--green);
    animation-delay: 0.28s;
}

.junk-drawer {
    position: relative;
    min-height: 30rem;
    overflow: hidden;
    border: 5px solid #08101b;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(95deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 17px),
        linear-gradient(135deg, #382b22, #17243b);
    box-shadow: var(--shadow);
}

.message-card {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(22rem, calc(100% - 2rem));
    min-height: 8.4rem;
    place-items: center;
    padding: 1.25rem;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 950;
    text-align: center;
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.26);
    transform: translate(-50%, -50%) rotate(-1deg);
}

.message-card.bump {
    animation: bump 360ms ease;
}

.junk-token {
    position: absolute;
    min-width: 4.5rem;
    min-height: 2.4rem;
    padding: 0.5rem 0.7rem;
    color: var(--ink);
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background: var(--yellow);
    box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.25);
    font-size: 0.82rem;
    font-weight: 950;
    animation: tokenFloat 5s ease-in-out infinite;
}

.junk-token:hover,
.junk-token:focus-visible,
.secret-star:hover,
.secret-star:focus-visible {
    outline: none;
    transform: translateY(-4px) rotate(2deg);
}

.token-a {
    top: 18%;
    left: 14%;
    background: var(--green);
}

.token-b {
    top: 24%;
    right: 14%;
    background: var(--paper);
    animation-delay: -1s;
}

.token-c {
    bottom: 17%;
    left: 18%;
    background: var(--teal);
    animation-delay: -2s;
}

.token-d {
    right: 19%;
    bottom: 18%;
    background: var(--red);
    animation-delay: -3s;
}

.secret-star {
    position: absolute;
    right: 8%;
    top: 47%;
    width: 3rem;
    height: 3rem;
    color: var(--ink);
    border: 4px solid #08101b;
    border-radius: var(--radius);
    background: var(--purple);
    box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.25);
    font-size: 0.72rem;
    font-weight: 950;
}

.chat-shell {
    display: grid;
    width: min(780px, 100%);
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
}

.ai-avatar {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--green);
    font-weight: 950;
    box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.24);
}

.chat-header h3,
.chat-header p {
    margin: 0;
}

.ai-avatar {
    animation: wobbleText 3.8s ease-in-out infinite;
}

.online-pill {
    margin-left: auto;
    padding: 0.42rem 0.62rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius-small);
    background: var(--green);
    font-size: 0.76rem;
    font-weight: 950;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 22rem;
    max-height: 28rem;
    overflow-y: auto;
    padding: 1rem;
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 5px),
        #121f2f;
}

.message {
    display: flex;
    max-width: 78%;
}

.message span {
    padding: 0.72rem 0.88rem;
    line-height: 1.45;
    border: 3px solid #08101b;
    border-radius: var(--radius);
    box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.22);
}

.ai-message span {
    color: var(--ink);
    background: var(--paper);
}

.user-message {
    align-self: flex-end;
}

.user-message span {
    color: var(--ink);
    background: var(--teal);
}

.typing {
    align-items: center;
    gap: 0.22rem;
    width: 4.1rem;
    padding: 0.8rem 0.9rem;
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
}

.typing i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--ink);
    animation: typingDot 900ms ease-in-out infinite;
}

.typing i:nth-child(2) {
    animation-delay: 130ms;
}

.typing i:nth-child(3) {
    animation-delay: 260ms;
}

.chat-form {
    display: flex;
    gap: 0.7rem;
}

.chat-form input {
    min-width: 0;
    flex: 1;
    padding: 0 1rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    outline: none;
    background: var(--paper);
}

.chat-form input:focus {
    box-shadow: 0 0 0 4px rgba(81, 199, 217, 0.25);
}

.minecraft-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem;
    overflow: hidden;
    border: 5px solid #08101b;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(45deg, rgba(71, 214, 141, 0.12) 0 1rem, rgba(240, 198, 93, 0.08) 1rem 2rem),
        var(--panel-strong);
    box-shadow: var(--shadow);
    position: relative;
}

.minecraft-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(81, 199, 217, 0.18), transparent 30%);
    pointer-events: none;
}

.minecraft-panel .minecraft-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.8rem;
    border: 3px solid #08101b;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.minecraft-panel h2 {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 0;
}

.minecraft-name {
    margin-bottom: 0;
}

.achievement-tray {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: grid;
    justify-items: end;
    gap: 0.5rem;
}

.achievement-button {
    padding: 0.68rem 0.82rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.24);
    font-weight: 950;
}

.achievement-list {
    display: none;
    width: min(18rem, calc(100vw - 2rem));
    max-height: 16rem;
    overflow: auto;
    padding: 0.7rem;
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.24);
}

.achievement-list.open {
    display: grid;
    gap: 0.5rem;
}

.achievement-item {
    padding: 0.6rem 0.68rem;
    color: var(--ink);
    border: 2px solid rgba(8, 16, 27, 0.2);
    border-radius: var(--radius-small);
    background: #f6ebd2;
    font-weight: 850;
}

.toast-stack {
    position: fixed;
    top: 5.8rem;
    right: 1rem;
    z-index: 160;
    display: grid;
    gap: 0.7rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    padding: 0.82rem 0.95rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.26);
    animation: toastIn 260ms ease both;
    font-weight: 850;
}

.loose-screw {
    position: fixed;
    left: -7rem;
    bottom: 18%;
    z-index: 80;
    width: 5.8rem;
    height: 2.2rem;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: #c7cbd1;
    box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    font-size: 0.72rem;
    font-weight: 950;
}

.loose-screw.show {
    opacity: 1;
    pointer-events: auto;
    animation: screwSkitter 8s linear forwards;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 17, 31, 0.62);
    backdrop-filter: blur(8px);
}

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

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    position: relative;
    width: min(34rem, 100%);
    padding: 1.6rem;
    color: var(--ink);
    border: 5px solid #08101b;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    animation: modalIn 220ms ease both;
}

.modal-card h2 {
    margin: 0.5rem 0 0;
}

.modal-card p {
    color: #455466;
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--red);
    font-weight: 950;
}

.modal-icon {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    place-items: center;
    color: var(--ink);
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: var(--green);
    font-weight: 950;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.copy-row code {
    flex: 1;
    min-width: 0;
    padding: 0.82rem 0.9rem;
    overflow-wrap: anywhere;
    border: 3px solid #08101b;
    border-radius: var(--radius);
    background: #f8efd7;
    font-weight: 950;
}

@keyframes wobbleText {
    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-1.4deg);
    }

    50% {
        transform: rotate(1.3deg);
    }

    75% {
        transform: rotate(-0.8deg);
    }
}

@keyframes driftAcross {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate3d(var(--x-end, 120vw), var(--y-end, 20vh), 0) rotate(var(--spin, 20deg)) scale(1);
        opacity: 0;
    }
}

@keyframes tearWord {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: translate3d(0, -16px, 0) rotate(-10deg);
    }

    50% {
        transform: translate3d(18px, 4px, 0) rotate(-18deg);
    }

    75% {
        transform: translate3d(42px, 18px, 0) rotate(12deg);
    }

    100% {
        transform: translate3d(64px, 28px, 0) rotate(18deg);
        opacity: 0.95;
    }
}

@keyframes wobbleWord {
    from {
        transform: rotate(-4deg);
    }

    to {
        transform: rotate(4deg);
    }
}

@keyframes settleWord {
    0% {
        transform: translate3d(64px, 28px, 0) rotate(18deg);
    }

    40% {
        transform: translate3d(60px, 22px, 0) rotate(8deg);
    }

    100% {
        transform: translate3d(58px, 24px, 0) rotate(10deg);
    }
}

@keyframes swayThread {
    from {
        transform: rotate(-10deg);
    }

    to {
        transform: rotate(10deg);
    }
}

@keyframes objectPop {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.04) rotate(2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes arduinoGlow {
    from {
        transform: rotate(-8deg) scale(1);
    }

    to {
        transform: rotate(-8deg) scale(1.03);
    }
}

@keyframes pulseLed {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes floatJunk {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -1rem;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(1.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes photoDrop {
    from {
        opacity: 0;
        transform: translateY(-42vh) rotate(-8deg) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes gentleFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.75rem);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(1rem);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

@keyframes bounceDots {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.5rem);
    }
}

@keyframes bump {
    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-1deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(1deg) scale(1.04);
    }
}

@keyframes tokenFloat {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -0.55rem;
    }
}

@keyframes typingDot {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-0.25rem);
        opacity: 1;
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes screwSkitter {
    0% {
        left: -7rem;
        transform: translateY(0) rotate(-3deg);
    }

    40% {
        transform: translateY(-0.75rem) rotate(4deg);
    }

    100% {
        left: calc(100vw + 7rem);
        transform: translateY(0) rotate(-3deg);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(0.8rem) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1080px) {
    .hero-title {
        font-size: 4.8rem;
    }

    .hero-grid,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-photo-wrap {
        min-height: 27rem;
        order: -1;
    }

    .social-grid,
    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-scene {
        min-height: 790px;
    }

    .room-desk {
        left: 5%;
        right: 5%;
    }

    .obj-monitor {
        right: 30%;
        bottom: 40%;
    }

    .obj-files {
        right: 5%;
        bottom: 27%;
    }

    .peel-zone {
        right: 8%;
        top: 25%;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 0.75rem;
    }

    .nav-shell {
        position: relative;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.6rem);
        right: 0;
        left: 0;
        display: none;
        padding: 0.55rem;
        border: 3px solid #08101b;
        border-radius: var(--radius);
        background: rgba(7, 17, 31, 0.96);
        box-shadow: var(--shadow-soft);
    }

    .nav-shell.nav-open .nav-links {
        display: grid;
    }

    .nav-links a {
        padding: 0.85rem;
    }

    .section-band {
        width: min(100% - 1rem, 1180px);
        padding: 4rem 0;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-title {
        max-width: none;
        font-size: 3.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .photo-badge {
        font-size: 0.76rem;
    }

    .section-heading h2 {
        font-size: 2.35rem;
    }

    .room-scene {
        min-height: 910px;
    }

    .room-shelf,
    .poster-b,
    .wall-crack,
    .wire-two {
        display: none;
    }

    .poster-a {
        left: 6%;
    }

    .room-desk {
        left: 3%;
        right: 3%;
        bottom: 20%;
    }

    .obj-gameboy {
        left: 8%;
        bottom: 42%;
        width: 8.1rem;
        height: 11.5rem;
    }

    .obj-monitor {
        right: 7%;
        bottom: 48%;
        width: 10rem;
        height: 8rem;
    }

    .obj-files {
        right: 6%;
        bottom: 26%;
        width: 10rem;
    }

    .obj-folder {
        left: 6%;
        bottom: 27%;
        width: 10.5rem;
    }

    .obj-arduino {
        left: 7%;
        bottom: 13%;
        width: 10.5rem;
    }

    .obj-cube {
        right: 9%;
        bottom: 15%;
    }

    .obj-cassette {
        left: 42%;
        bottom: 8%;
        width: 9rem;
    }

    .peel-zone {
        top: 20%;
        right: 5%;
        width: 12rem;
    }

    .social-grid,
    .game-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .social-card,
    .game-card {
        min-height: auto;
    }

    .junk-drawer {
        min-height: 31rem;
    }

    .chat-form {
        display: grid;
    }

    .chat-form input {
        min-height: 3rem;
    }

    .minecraft-panel,
    .copy-row {
        align-items: stretch;
        flex-direction: column;
    }

    .minecraft-panel h2 {
        font-size: 2.2rem;
    }

    .achievement-tray {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .toast-stack {
        top: auto;
        right: 0.5rem;
        bottom: 4.6rem;
        width: min(22rem, calc(100vw - 1rem));
    }

    .float-prop {
        opacity: 0.18;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
