:root {
    color-scheme: dark;
    --accent: #41ff78;
    --warm: #d09a55;
    --wall: #2d3024;
    --ambient: #f2d7a2;
    --lamp: #f1c36f;
    --dim: 56%;
    --lamp-glow: 0.72;
    --wall-pattern: 0.7;
    --ink: #f4ecd7;
    --muted: #b4aa91;
    --deep: #090805;
    --wood: #5f3d25;
    --line: rgba(255, 245, 220, 0.14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow: hidden;
    background: var(--deep);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

#ambient-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.room-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 58% 58%, rgba(65, 255, 120, 0.08), transparent 27%),
        radial-gradient(circle at 23% 72%, color-mix(in srgb, var(--warm), transparent 78%), transparent 26%),
        linear-gradient(180deg, rgba(255, 248, 210, 0.03), rgba(0, 0, 0, calc((100 - var(--dim)) / 118)));
}

.room-stage {
    position: relative;
    min-height: 100vh;
    width: 100%;
    perspective: 1200px;
    isolation: isolate;
}

.ceiling-line {
    position: absolute;
    inset: 0 0 auto;
    height: 24vh;
    transform-origin: top;
    transform: rotateX(-64deg);
    background:
        linear-gradient(180deg, rgba(255, 240, 190, 0.08), transparent 42%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 45%, rgba(0, 0, 0, 0.36));
}

.left-wall,
.right-wall {
    position: absolute;
    top: 0;
    bottom: 19vh;
    width: 18vw;
    background:
        linear-gradient(180deg, rgba(255, 238, 190, 0.04), rgba(0, 0, 0, 0.2)),
        color-mix(in srgb, var(--wall), #000 18%);
}

.left-wall {
    left: 0;
    transform-origin: left center;
    transform: rotateY(58deg);
}

.right-wall {
    right: 0;
    transform-origin: right center;
    transform: rotateY(-58deg);
}

.back-wall {
    position: absolute;
    inset: 0 8vw 19vh;
    overflow: hidden;
    border-inline: 1px solid rgba(255, 240, 200, 0.09);
    background:
        linear-gradient(130deg, rgba(255, 250, 220, 0.06), transparent 28%),
        linear-gradient(180deg, color-mix(in srgb, var(--wall), #fff 4%), color-mix(in srgb, var(--wall), #000 22%));
    box-shadow: inset 0 -90px 130px rgba(0, 0, 0, 0.44), inset 0 28px 90px rgba(255, 240, 200, 0.03);
}

.wall-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 242, 200, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 242, 200, 0.024) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 86%);
}

.floor {
    position: absolute;
    left: -8vw;
    right: -8vw;
    bottom: -9vh;
    height: 34vh;
    transform-origin: bottom center;
    transform: rotateX(66deg);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.38)),
        linear-gradient(180deg, #332315, #170e08 66%, #080604);
}

.floor-lines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 7vw, rgba(255, 235, 180, 0.045) 7vw calc(7vw + 1px)),
        repeating-linear-gradient(0deg, transparent 0 48px, rgba(255, 235, 180, 0.035) 48px 49px);
}

.portrait-frame,
.motion-frame,
.announcement-board,
.floating-ui,
.desk-scene,
.main-monitor,
.marzog-robot,
.lamp,
.pc-tower,
.desk-surface,
.plant {
    position: absolute;
}

.portrait-frame {
    left: clamp(24px, 7vw, 96px);
    top: clamp(48px, 8vh, 84px);
    width: clamp(145px, 17vw, 246px);
    aspect-ratio: 0.78;
    padding: 12px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 245, 210, 0.28), rgba(255, 245, 210, 0.04) 34%, rgba(0, 0, 0, 0.28)),
        linear-gradient(140deg, #18130d, #89623b 39%, #211810 66%, #d0ad68);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.52), inset 0 0 0 2px rgba(0, 0, 0, 0.24);
    transform: rotateY(-6deg) rotateZ(0.4deg);
    animation: frame-breathe 8s ease-in-out infinite;
}

.portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    filter: grayscale(1) contrast(1.1) brightness(0.9);
}

.frame-light {
    position: absolute;
    inset: -30px -20px auto;
    height: 44%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--warm), transparent 50%), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.frame-caption {
    display: none;
}

.frame-caption strong,
.frame-caption span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frame-caption strong {
    font-size: 0.84rem;
}

.frame-caption span {
    color: var(--muted);
    font-size: 0.72rem;
}

.motion-frame {
    left: 50%;
    top: clamp(42px, 7vh, 76px);
    width: clamp(235px, 30vw, 430px);
    min-height: 150px;
    transform: translateX(-50%) rotateX(2deg);
    padding: 12px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 245, 210, 0.16), transparent 35%, rgba(0, 0, 0, 0.34)), #171710;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 240, 200, 0.12);
}

.gallery-screen {
    min-height: 126px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 240, 200, 0.12);
    background:
        linear-gradient(115deg, rgba(65, 255, 120, 0.16), transparent 45%),
        linear-gradient(245deg, color-mix(in srgb, var(--warm), transparent 80%), transparent 48%),
        #10110b;
}

.gallery-slide {
    min-height: 126px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px;
    opacity: 0;
    transform: translateY(12px);
}

.gallery-slide.is-active {
    animation: slide-in 620ms ease both;
}

.slide-kicker,
.board-top,
.terminal-head,
.terminal-composer,
.admin-login form > span,
.control-head span {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

.slide-kicker {
    color: var(--accent);
    font-size: 0.72rem;
}

.gallery-slide strong {
    font-size: clamp(1.05rem, 2.1vw, 1.6rem);
    line-height: 1.2;
}

.gallery-slide p {
    margin: 0;
    color: #ded5bd;
    line-height: 1.65;
    font-size: 0.92rem;
}

.gallery-rail {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.gallery-rail span {
    height: 4px;
    flex: 1;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 240, 200, 0.13);
}

.gallery-rail span::after {
    content: "";
    display: block;
    width: 42%;
    height: 100%;
    background: var(--accent);
    transform: translateX(120%);
    animation: rail-scan 2.8s ease-in-out infinite;
}

.gallery-rail span:nth-child(2)::after {
    animation-delay: 0.4s;
    background: var(--warm);
}

.gallery-rail span:nth-child(3)::after {
    animation-delay: 0.8s;
}

.announcement-board {
    right: clamp(24px, 6vw, 86px);
    top: clamp(92px, 14vh, 150px);
    width: clamp(180px, 21vw, 300px);
    padding: 14px;
    border-radius: var(--radius);
    background:
        linear-gradient(150deg, rgba(255, 245, 210, 0.14), transparent 26%),
        linear-gradient(180deg, #2b2116, #15100b);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 240, 200, 0.12);
    transform: rotateY(7deg) rotateZ(-0.8deg);
}

.board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #efd096;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.board-top i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

#announcement-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

#announcement-list li {
    min-height: 36px;
    padding: 9px 10px;
    border-radius: 6px;
    color: #fff2cc;
    background: rgba(255, 240, 200, 0.075);
    border: 1px solid rgba(255, 240, 200, 0.1);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.screen-clock {
    left: clamp(24px, 4vw, 58px);
    bottom: clamp(136px, 21vh, 210px);
    display: grid;
    gap: 2px;
    min-width: 98px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 240, 200, 0.12);
    border-radius: var(--radius);
    background: rgba(9, 8, 5, 0.58);
    backdrop-filter: blur(16px);
}

.screen-clock span {
    font-size: 1.15rem;
    font-weight: 900;
}

.screen-clock small {
    color: var(--muted);
}

.desk-scene {
    left: 50%;
    bottom: clamp(18px, 4vh, 46px);
    width: min(1120px, 92vw);
    height: min(56vh, 530px);
    transform: translateX(-50%);
    z-index: 3;
}

.desk-surface {
    left: 50%;
    bottom: 0;
    width: min(1040px, 100%);
    height: clamp(116px, 20vh, 168px);
    transform: translateX(-50%) rotateX(4deg);
    border-radius: 8px 8px 24px 24px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.36)),
        linear-gradient(180deg, color-mix(in srgb, var(--wood), var(--warm) 18%), #2b190e 74%, #140c07);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 240, 200, 0.18);
}

.desk-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        repeating-linear-gradient(93deg, rgba(255, 238, 190, 0.045) 0 1px, transparent 1px 42px),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.main-monitor {
    left: 48%;
    bottom: clamp(112px, 18vh, 158px);
    width: min(520px, 50vw);
    transform: translateX(-50%);
}

.monitor-bezel {
    padding: 22px 24px 30px;
    border-radius: 28px 28px 18px 18px;
    background:
        linear-gradient(135deg, rgba(255, 240, 190, 0.2), transparent 26%, rgba(0, 0, 0, 0.46)),
        linear-gradient(180deg, #c1ad83, #766047 58%, #403124);
    border: 1px solid rgba(255, 235, 190, 0.18);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.62), inset 0 0 0 2px rgba(35, 26, 18, 0.48);
}

.monitor-glass {
    position: relative;
    min-height: min(46vh, 320px);
    overflow: hidden;
    border-radius: 42% / 10%;
    background:
        radial-gradient(ellipse at center, rgba(65, 255, 120, 0.13), transparent 62%),
        linear-gradient(180deg, #071008, #020402);
    border: 10px solid #17130d;
    box-shadow: inset 0 0 34px rgba(65, 255, 120, 0.11), inset 0 0 80px rgba(0, 0, 0, 0.88);
}

.monitor-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.42) 100%),
        repeating-linear-gradient(0deg, rgba(65, 255, 120, 0.06) 0 1px, transparent 1px 4px);
    mix-blend-mode: screen;
}

.crt-glow {
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent), transparent 86%), transparent 72%);
    filter: blur(12px);
    pointer-events: none;
}

.screen-off {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    color: #425641;
    background: #020302;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

body[data-pc="off"] .monitor-glass {
    cursor: default;
}

body[data-pc="off"] .screen-off {
    opacity: 0.97;
}

body[data-pc="off"] .terminal-output,
body[data-pc="off"] .terminal-composer,
body[data-pc="off"] .terminal-head,
body[data-pc="off"] .crt-glow {
    opacity: 0;
}

.terminal-head {
    position: relative;
    z-index: 2;
    height: 38px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 0 16px;
    color: var(--accent);
    text-shadow: 0 0 10px color-mix(in srgb, var(--accent), transparent 35%);
    border-bottom: 1px solid rgba(65, 255, 120, 0.18);
    font-size: 0.76rem;
}

#engine-status {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

#engine-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}

#engine-status.error i {
    background: #ff6b49;
    box-shadow: 0 0 14px #ff6b49;
}

.terminal-output {
    position: relative;
    z-index: 2;
    height: 212px;
    overflow-y: auto;
    padding: 14px 18px;
    scrollbar-width: thin;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    color: var(--accent);
    text-shadow: 0 0 9px color-mix(in srgb, var(--accent), transparent 42%);
    direction: ltr;
}

.message {
    margin: 0 0 8px;
}

.message::before {
    content: ">";
    margin-right: 8px;
    color: color-mix(in srgb, var(--accent), #fff 20%);
}

.message.user::before {
    content: "USER>";
}

.message.marzog::before {
    content: "MARZOQ>";
}

.bubble {
    display: inline;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.bubble p {
    display: inline;
    margin: 0;
}

.typing .bubble::after {
    content: "_";
    animation: blink 0.8s steps(2, end) infinite;
}

.terminal-composer {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto 1fr 58px;
    gap: 8px;
    align-items: center;
    padding: 9px 14px 14px;
    border-top: 1px solid rgba(65, 255, 120, 0.16);
    color: var(--accent);
    direction: ltr;
}

.terminal-composer textarea {
    min-width: 0;
    width: 100%;
    min-height: 34px;
    max-height: 90px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--accent);
    direction: rtl;
    line-height: 1.45;
    text-shadow: 0 0 9px color-mix(in srgb, var(--accent), transparent 42%);
}

.terminal-composer textarea::placeholder {
    color: color-mix(in srgb, var(--accent), transparent 44%);
}

.send-button {
    min-height: 32px;
    border: 1px solid rgba(65, 255, 120, 0.28);
    border-radius: 4px;
    background: rgba(65, 255, 120, 0.08);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

.monitor-stand {
    width: 88px;
    height: 62px;
    margin: -2px auto 0;
    background: linear-gradient(180deg, #7d684d, #34271b);
    clip-path: polygon(32% 0, 68% 0, 78% 100%, 22% 100%);
}

.monitor-foot {
    width: 214px;
    height: 24px;
    margin: -2px auto 0;
    border-radius: 50% 50% 8px 8px;
    background: linear-gradient(180deg, #8c7556, #3c2d1f);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.marzog-robot {
    right: clamp(46px, 11vw, 168px);
    bottom: clamp(150px, 25vh, 222px);
    width: 170px;
    height: 258px;
    scale: 1;
    transform-style: preserve-3d;
    animation: robot-float 4.8s ease-in-out infinite;
    z-index: 4;
}

.robot-aura {
    position: absolute;
    inset: 4px -36px auto;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 72%), transparent 66%);
    filter: blur(12px);
    opacity: 0.76;
}

.robot-head {
    position: absolute;
    left: 22px;
    top: 12px;
    width: 126px;
    height: 112px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(180deg, #c9c0a7, #746b59);
    border: 2px solid rgba(255, 245, 210, 0.22);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.38), inset 0 -16px 26px rgba(0, 0, 0, 0.2);
}

.antenna {
    position: absolute;
    left: 50%;
    top: -28px;
    width: 4px;
    height: 28px;
    background: #d7c8a8;
    transform: translateX(-50%);
}

.antenna::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

.robot-eye {
    position: absolute;
    top: 36px;
    width: 26px;
    height: 18px;
    border-radius: 99px;
    background: #081108;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.38), 0 0 18px rgba(65, 255, 120, 0.28);
}

.robot-eye::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: robot-blink 5.6s ease-in-out infinite;
}

.robot-eye.left {
    left: 27px;
}

.robot-eye.right {
    right: 27px;
}

.robot-mouth {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 26px;
    height: 20px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 5px;
    background: #120f0a;
}

.robot-mouth span {
    width: 6px;
    height: 7px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

body[data-speaking="on"] .robot-mouth span {
    animation: talk-bars 360ms ease-in-out infinite;
}

body[data-speaking="on"] .robot-mouth span:nth-child(2) {
    animation-delay: 90ms;
}

body[data-speaking="on"] .robot-mouth span:nth-child(3) {
    animation-delay: 150ms;
}

body[data-speaking="on"] .robot-mouth span:nth-child(4) {
    animation-delay: 40ms;
}

.robot-cheek {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--warm);
    opacity: 0.65;
    box-shadow: 0 0 18px var(--warm);
}

.robot-neck {
    position: absolute;
    left: 75px;
    top: 120px;
    width: 20px;
    height: 24px;
    border-radius: 5px;
    background: linear-gradient(180deg, #a79b84, #4c4337);
}

.robot-body {
    position: absolute;
    left: 38px;
    top: 138px;
    width: 94px;
    height: 86px;
    border-radius: 20px 20px 16px 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(180deg, #9b9079, #4b4235);
    box-shadow: 0 24px 34px rgba(0, 0, 0, 0.34);
}

.robot-body i {
    position: absolute;
    left: 18px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

.robot-body b {
    position: absolute;
    right: 17px;
    top: 25px;
    width: 34px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 240, 200, 0.36);
}

.marzog-robot p {
    position: absolute;
    left: 50%;
    top: -56px;
    width: 230px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 8px;
    transform: translateX(-50%);
    color: #f5ecd1;
    background: rgba(14, 11, 7, 0.7);
    border: 1px solid rgba(255, 240, 200, 0.13);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    line-height: 1.55;
    font-size: 0.84rem;
}

.lamp {
    left: clamp(12px, 7vw, 118px);
    bottom: clamp(106px, 17vh, 160px);
    width: 130px;
    height: 220px;
    cursor: pointer;
}

.lamp-shade {
    position: absolute;
    left: 18px;
    top: 12px;
    width: 92px;
    height: 58px;
    border-radius: 40px 40px 8px 8px;
    background: linear-gradient(180deg, #f1d8a6, #8b5f2f);
    transform: rotate(-9deg);
}

.lamp-neck {
    position: absolute;
    left: 62px;
    top: 66px;
    width: 12px;
    height: 104px;
    border-radius: 99px;
    background: linear-gradient(90deg, #d1d6d8, #4c5559);
    transform: rotate(8deg);
}

.lamp-base {
    position: absolute;
    left: 31px;
    bottom: 0;
    width: 86px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5d6467, #15191b);
}

.lamp-glow {
    position: absolute;
    left: -56px;
    top: 30px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--warm), transparent 48%), transparent 66%);
    filter: blur(8px);
    opacity: 0.88;
    transition: opacity 220ms ease;
    pointer-events: none;
}

body[data-lamp="off"] .lamp-glow {
    opacity: 0.06;
}

body[data-lamp="off"] .lamp-shade {
    filter: brightness(0.48);
}

.pc-tower {
    right: clamp(0px, 7vw, 112px);
    bottom: clamp(22px, 5vh, 46px);
    width: 96px;
    height: 178px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 245, 210, 0.16), transparent 34%),
        linear-gradient(180deg, #bca67b, #67513a 62%, #332518);
    border: 1px solid rgba(255, 235, 190, 0.18);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.48);
    cursor: pointer;
    z-index: 5;
}

.pc-tower span {
    position: absolute;
    inset: 14px 16px auto;
    height: 68px;
    border-radius: 5px;
    border: 1px solid rgba(37, 27, 18, 0.45);
    background:
        linear-gradient(90deg, transparent, rgba(65, 255, 120, 0.18), transparent),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 9px);
}

.pc-tower b {
    position: absolute;
    left: 18px;
    bottom: 56px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

.pc-tower i {
    position: absolute;
    inset-inline: 14px;
    bottom: 22px;
    height: 5px;
    border-radius: 99px;
    background: var(--warm);
    box-shadow: 0 0 16px var(--warm);
}

body[data-pc="off"] .pc-tower b,
body[data-pc="off"] .pc-tower i {
    opacity: 0.16;
    box-shadow: none;
}

.keyboard {
    position: absolute;
    left: 48%;
    bottom: 30px;
    width: clamp(230px, 28vw, 350px);
    height: 48px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    transform: translateX(-50%) perspective(400px) rotateX(17deg);
    border-radius: 8px;
    background: linear-gradient(180deg, #97835f, #3a2b1d);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
}

.keyboard span {
    min-width: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #d8c7a3, #66533b);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.mouse {
    position: absolute;
    left: calc(48% + min(220px, 22vw));
    bottom: 38px;
    width: 58px;
    height: 36px;
    border-radius: 42px 42px 28px 28px;
    background: linear-gradient(180deg, #c6b187, #54412e);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32);
}

.notebook {
    position: absolute;
    right: clamp(120px, 20vw, 250px);
    bottom: 34px;
    width: 124px;
    height: 78px;
    border-radius: 7px;
    padding: 12px;
    background: linear-gradient(135deg, #f1d0ad, #8d5d38);
    color: #20140e;
    transform: rotate(5deg);
}

.notebook::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 4px;
    background: rgba(0, 0, 0, 0.22);
}

.notebook span,
.notebook b {
    display: block;
}

.notebook span {
    font-size: 0.78rem;
}

.notebook b {
    margin-top: 6px;
    font-size: 1.15rem;
}

.coffee {
    position: absolute;
    left: clamp(92px, 18vw, 220px);
    bottom: 28px;
    width: 62px;
    height: 48px;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, #fbf2df, #a99174);
}

.coffee::before {
    content: "";
    position: absolute;
    inset: 7px 8px auto;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #4d2a18, #1b0e08);
}

.coffee::after {
    content: "";
    position: absolute;
    right: -17px;
    top: 16px;
    width: 23px;
    height: 18px;
    border: 5px solid #c7b295;
    border-left: 0;
    border-radius: 0 20px 20px 0;
}

.coffee span {
    position: absolute;
    left: 22px;
    top: -30px;
    width: 8px;
    height: 28px;
    border-radius: 99px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    filter: blur(3px);
    animation: steam 3s ease-in-out infinite;
}

.candles {
    position: absolute;
    left: clamp(20px, 6vw, 84px);
    bottom: 28px;
    display: flex;
    align-items: end;
    gap: 8px;
    cursor: pointer;
}

.candles span {
    position: relative;
    width: 20px;
    height: 42px;
    border-radius: 5px 5px 3px 3px;
    background: linear-gradient(180deg, #f8e4c2, #a5774f);
}

.candles span:nth-child(2) {
    height: 55px;
}

.candles span:nth-child(3) {
    height: 36px;
}

.candles span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -18px;
    width: 12px;
    height: 20px;
    border-radius: 80% 20% 80% 20%;
    transform: translateX(-50%) rotate(45deg);
    background: radial-gradient(circle at 50% 70%, #fff7c7 0 18%, #ffd266 42%, #d85f39 70%, transparent 72%);
    animation: flame 1.55s ease-in-out infinite;
}

body[data-candles="off"] .candles span::before {
    opacity: 0;
}

.cable-run {
    position: absolute;
    right: 78px;
    bottom: 112px;
    width: 210px;
    height: 54px;
    border-bottom: 3px solid rgba(20, 16, 10, 0.86);
    border-right: 3px solid rgba(20, 16, 10, 0.86);
    border-radius: 0 0 42px 0;
}

.wall-plug {
    position: absolute;
    right: 274px;
    bottom: 122px;
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: #d5d0c3;
}

.wall-plug span {
    position: absolute;
    top: 11px;
    width: 5px;
    height: 10px;
    border-radius: 99px;
    background: #2b2d2f;
}

.wall-plug span:first-child {
    left: 14px;
}

.wall-plug span:last-child {
    right: 14px;
}

.plant {
    right: clamp(8px, 3vw, 34px);
    bottom: clamp(98px, 17vh, 150px);
    width: 94px;
    height: 132px;
}

.plant span {
    position: absolute;
    bottom: 48px;
    left: 42px;
    width: 28px;
    height: 70px;
    border-radius: 99px 99px 4px 99px;
    background: linear-gradient(135deg, #668e4c, #22331c);
    transform-origin: bottom;
}

.plant span:nth-child(1) {
    transform: rotate(-42deg);
}

.plant span:nth-child(2) {
    height: 86px;
    transform: rotate(3deg);
}

.plant span:nth-child(3) {
    transform: rotate(38deg);
}

.plant b {
    position: absolute;
    left: 22px;
    bottom: 0;
    width: 54px;
    height: 54px;
    border-radius: 9px 9px 18px 18px;
    background: linear-gradient(180deg, #9b6541, #392116);
}

.admin-login {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(4, 3, 2, 0.72);
    backdrop-filter: blur(18px);
}

.admin-login form {
    width: min(360px, 100%);
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(16, 13, 8, 0.92);
    border: 1px solid rgba(255, 240, 200, 0.14);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.admin-login h1 {
    margin: 0;
    font-size: 1.4rem;
}

.admin-login form > span {
    color: var(--accent);
    font-size: 0.78rem;
}

.admin-login label,
.control-section label {
    display: grid;
    gap: 7px;
}

.admin-login input,
.control-section input[type="text"] {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 240, 200, 0.13);
    outline: none;
    padding: 0 10px;
    color: var(--ink);
    background: rgba(255, 240, 200, 0.08);
}

.admin-login button,
.control-panel button,
.control-launch {
    min-height: 40px;
    border: 1px solid rgba(255, 240, 200, 0.13);
    color: var(--ink);
    border-radius: 8px;
    background: rgba(255, 240, 200, 0.08);
}

.login-error {
    margin: 0;
    color: #ffad86;
}

.control-launch {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
    min-width: 58px;
    padding: 8px 12px;
    background: rgba(14, 11, 7, 0.7);
    backdrop-filter: blur(14px);
}

.control-panel {
    position: fixed;
    z-index: 30;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(390px, calc(100vw - 28px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 240, 200, 0.08), transparent 34%),
        rgba(12, 9, 5, 0.9);
    border: 1px solid rgba(255, 240, 200, 0.14);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(22px) saturate(1.25);
    transform: translateX(calc(100% + 24px));
    transition: transform 260ms ease;
    overflow-y: auto;
}

.control-panel.is-open {
    transform: translateX(0);
}

.control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.control-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.control-head span {
    color: var(--accent);
    font-size: 0.74rem;
}

.control-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-head-actions a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.86rem;
}

.control-head button {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.switch-row {
    min-height: 54px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 240, 200, 0.1);
    background: rgba(255, 240, 200, 0.055);
}

.switch-row input {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 99px;
    background: rgba(255, 240, 200, 0.14);
    border: 1px solid rgba(255, 240, 200, 0.16);
    position: relative;
}

.switch-row input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1e7c8;
    transition: transform 160ms ease;
}

.switch-row input:checked {
    background: color-mix(in srgb, var(--accent), transparent 48%);
}

.switch-row input:checked::after {
    transform: translateX(18px);
}

.control-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 240, 200, 0.1);
    background: rgba(255, 240, 200, 0.052);
}

.control-section input[type="color"] {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: transparent;
}

.control-section input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.control-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body[data-gallery-auto="off"] .gallery-rail span::after,
body[data-gallery-auto="off"] .portrait-frame {
    animation-play-state: paused;
}

body[data-tour="on"] .marzog-robot {
    animation: robot-tour 8s ease-in-out infinite;
}

@keyframes frame-breathe {
    0%,
    100% { transform: rotateY(-6deg) rotateZ(0.4deg) translateY(0); }
    50% { transform: rotateY(-3deg) rotateZ(-0.2deg) translateY(-5px); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes rail-scan {
    0% { transform: translateX(120%); }
    55% { transform: translateX(-20%); }
    100% { transform: translateX(-130%); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes robot-float {
    0%,
    100% {
        translate: 0 0;
        rotate: -1deg;
    }
    50% {
        translate: 0 -10px;
        rotate: 1deg;
    }
}

@keyframes robot-tour {
    0%,
    100% {
        translate: 0 0;
        rotate: -1deg;
    }
    35% {
        translate: -120px -18px;
        rotate: 3deg;
    }
    70% {
        translate: 54px -8px;
        rotate: -4deg;
    }
}

@keyframes robot-blink {
    0%,
    92%,
    100% { transform: scaleY(1); }
    95% { transform: scaleY(0.12); }
}

@keyframes talk-bars {
    0%,
    100% { height: 6px; }
    50% { height: 16px; }
}

@keyframes steam {
    0%,
    100% { opacity: 0; transform: translateY(8px) translateX(0) scaleY(0.72); }
    35% { opacity: 0.8; }
    70% { opacity: 0; transform: translateY(-20px) translateX(-10px) scaleY(1.2); }
}

@keyframes flame {
    0%,
    100% { transform: translateX(-50%) rotate(40deg) scale(0.92); }
    50% { transform: translateX(-50%) rotate(50deg) scale(1.12); }
}

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

@media (max-width: 980px) {
    body {
        overflow-y: auto;
    }

    .room-shell,
    .room-stage {
        min-height: 1120px;
    }

    .back-wall {
        inset: 0 0 24vh;
    }

    .portrait-frame {
        left: 18px;
        top: 74px;
        width: 140px;
    }

    .motion-frame {
        top: 70px;
        left: auto;
        right: 18px;
        width: calc(100vw - 190px);
        min-width: 182px;
        transform: none;
    }

    .announcement-board {
        top: 280px;
        right: 18px;
        width: min(330px, calc(100vw - 36px));
        transform: none;
    }

    .screen-clock {
        display: none;
    }

    .desk-scene {
        width: calc(100vw - 20px);
        height: 650px;
        bottom: 28px;
    }

    .main-monitor {
        width: min(560px, 92vw);
        left: 50%;
        bottom: 174px;
    }

    .monitor-glass {
        min-height: 350px;
    }

    .terminal-output {
        height: 238px;
    }

    .marzog-robot {
        right: 18px;
        bottom: 470px;
        scale: 0.78;
        transform-origin: bottom right;
    }

    .lamp {
        left: 2px;
        bottom: 102px;
        transform: scale(0.82);
        transform-origin: bottom left;
    }

    .pc-tower {
        right: 18px;
        bottom: 4px;
        width: 76px;
        height: 142px;
    }

    .plant {
        display: none;
    }
}

/* Composition pass: photo+clock left, two displays right, integrated controls. */
.screen-clock {
    left: clamp(24px, 7vw, 96px);
    top: clamp(318px, 45vh, 390px);
    right: auto;
}

.motion-frame {
    left: auto;
    right: clamp(24px, 13vw, 190px);
    top: clamp(48px, 8vh, 82px);
    transform: none;
}

.announcement-board {
    right: clamp(24px, 13vw, 190px);
    top: clamp(190px, 28vh, 250px);
}

.main-monitor .power-switch {
    position: absolute;
    left: auto;
    right: 34px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    z-index: 12;
}

.desk-scene > .power-switch {
    display: none;
}

.lamp {
    width: 122px;
    height: 210px;
}

.lamp-neck {
    height: 120px;
    top: 58px;
    transform: rotate(5deg);
    box-shadow: -8px 0 0 rgba(255, 229, 176, 0.08);
}

.lamp-base {
    left: 24px;
    bottom: 0;
    width: 92px;
    height: 30px;
}

.lamp-base::before {
    content: "";
    position: absolute;
    left: 32px;
    bottom: 18px;
    width: 26px;
    height: 24px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #7e7d72, #2f312c);
}

.lamp-shade {
    top: 4px;
}

@media (max-width: 980px) {
    .portrait-frame {
        left: 18px;
        top: 54px;
        width: 116px;
    }

    .screen-clock {
        left: 18px;
        right: auto;
        top: 216px;
        min-width: 112px;
    }

    .motion-frame {
        top: 58px;
        right: 18px;
        width: 218px;
    }

    .announcement-board {
        top: 184px;
        right: 18px;
        left: auto;
        width: 218px;
        min-height: 95px;
        max-height: 105px;
    }

    .desk-scene {
        bottom: 2svh;
    }

    .lamp {
        left: 4px;
        bottom: 84px;
        scale: 0.46;
        transform-origin: bottom left;
    }

    .main-monitor .power-switch {
        right: 24px;
        bottom: 14px;
        width: 34px;
        height: 34px;
        scale: 1;
    }

    .main-monitor .power-switch span {
        top: 7px;
        height: 11px;
        width: 3px;
    }

    .main-monitor .power-switch b {
        inset: 8px;
        border-width: 3px;
    }
}

/* Private control surface and live room tuning. Keep at the very end. */
.room-shell {
    background:
        radial-gradient(circle at 58% 58%, color-mix(in srgb, var(--accent), transparent 92%), transparent 27%),
        radial-gradient(circle at 23% 72%, color-mix(in srgb, var(--ambient), transparent 76%), transparent 26%),
        linear-gradient(180deg, color-mix(in srgb, var(--ambient), transparent 97%), rgba(0, 0, 0, calc((100 - var(--dim)) / 118)));
}

.wall-grid {
    opacity: var(--wall-pattern);
}

.back-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: calc(var(--wall-pattern) * 0.38);
    background:
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 226, 170, 0.08) 28px 30px),
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 226, 170, 0.06) 28px 30px);
    mix-blend-mode: overlay;
}

.lamp-shade {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--lamp), #fff 24%), color-mix(in srgb, var(--lamp), #2b170a 42%));
}

body[data-lamp="on"] .lamp-glow {
    opacity: calc(var(--lamp-glow) * 0.9);
    background: radial-gradient(circle, color-mix(in srgb, var(--lamp), transparent 45%), transparent 66%);
}

body[data-lamp="off"] .lamp-glow {
    opacity: calc(var(--lamp-glow) * 0.06);
}

.gallery-screen,
.monitor-glass,
.robot-screen,
.clock-face {
    box-shadow:
        inset 0 0 24px color-mix(in srgb, var(--accent), transparent 90%),
        inset 0 0 42px rgba(0, 0, 0, 0.72);
}

.control-section h3 {
    margin: 0;
    color: color-mix(in srgb, var(--accent), #fff 22%);
    font-size: 0.92rem;
    line-height: 1.35;
}

.control-section textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid rgba(255, 240, 200, 0.13);
    outline: none;
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 240, 200, 0.08);
    line-height: 1.55;
}

.control-section textarea:focus,
.control-section input:focus {
    border-color: color-mix(in srgb, var(--accent), transparent 45%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 86%);
}

.control-section label > span {
    color: color-mix(in srgb, var(--ink), transparent 12%);
    font-size: 0.86rem;
}

@media (max-width: 640px) {
    .room-shell,
    .room-stage {
        min-height: 1180px;
    }

    .control-launch {
        top: 10px;
        right: 10px;
    }

    .portrait-frame {
        width: 132px;
        top: 68px;
    }

    .motion-frame {
        top: 64px;
        right: 12px;
        width: calc(100vw - 166px);
    }

    .gallery-slide {
        padding: 12px;
    }

    .gallery-slide p {
        display: none;
    }

    .announcement-board {
        top: 254px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .desk-scene {
        height: 730px;
        bottom: 16px;
    }

    .main-monitor {
        bottom: 190px;
    }

    .monitor-bezel {
        padding: 16px 16px 24px;
    }

    .monitor-glass {
        min-height: 386px;
        border-width: 8px;
    }

    .terminal-head {
        height: 34px;
        padding-inline: 10px;
        font-size: 0.64rem;
    }

    .terminal-output {
        height: 250px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .terminal-composer {
        grid-template-columns: 1fr 54px;
        padding-inline: 10px;
    }

    .terminal-composer span {
        grid-column: 1 / -1;
    }

    .marzog-robot {
        right: 4px;
        bottom: 548px;
        scale: 0.58;
    }

    .marzog-robot p {
        width: 210px;
    }

    .lamp {
        bottom: 90px;
        transform: scale(0.7);
    }

    .notebook {
        right: 98px;
        width: 108px;
    }

    .coffee {
        left: 92px;
    }

    .keyboard {
        width: min(320px, 74vw);
        bottom: 48px;
    }

    .mouse {
        display: none;
    }

    .candles {
        left: 16px;
    }

    .wall-plug,
    .cable-run {
        display: none;
    }

    .control-grid,
    .control-actions {
        grid-template-columns: 1fr;
    }
}

/* Quiet classic-room revision */
html,
body,
.room-shell,
.room-stage {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
}

.back-wall {
    inset: 0 7vw 23vh;
}

.motion-frame {
    width: clamp(230px, 28vw, 390px);
    min-height: 120px;
}

.gallery-screen,
.gallery-slide {
    min-height: 96px;
}

.gallery-slide {
    padding: 14px;
}

.gallery-slide:empty::after,
.gallery-slide strong:empty::after {
    content: "";
}

.announcement-board {
    min-height: 166px;
}

#announcement-list:empty {
    min-height: 104px;
    display: block;
}

.screen-clock {
    top: clamp(250px, 32vh, 330px);
    bottom: auto;
    display: grid;
    min-width: 122px;
    border-color: rgba(65, 255, 120, 0.28);
    background: #080c07;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    text-shadow: 0 0 10px var(--accent);
}

.screen-clock small {
    display: none;
}

.desk-scene {
    height: min(48vh, 430px);
    bottom: clamp(10px, 2.4vh, 26px);
}

.desk-surface {
    height: clamp(105px, 17vh, 138px);
    border-radius: 10px 10px 30px 30px;
    transform: translateX(-50%) perspective(900px) rotateX(5deg);
}

.desk-surface::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -22px;
    height: 28px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, #2a170d, #0b0704);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.42);
}

.main-monitor {
    left: 45%;
    bottom: clamp(96px, 16vh, 132px);
    width: min(390px, 39vw);
}

.monitor-bezel {
    position: relative;
    height: clamp(315px, 42vh, 400px);
    padding: 28px 30px 92px;
    border-radius: 28px 28px 16px 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(180deg, #d6c49a, #9d845f 58%, #5c462f);
}

.monitor-bezel::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 44px;
    width: 58%;
    height: 11px;
    border-radius: 99px;
    transform: translateX(-50%);
    background: #3a2a1c;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55);
}

.monitor-bezel::after {
    content: "";
    position: absolute;
    right: 38px;
    bottom: 22px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #eee1b9, #756144 70%);
    box-shadow: inset 0 -4px 7px rgba(0, 0, 0, 0.34);
}

.monitor-glass {
    min-height: 0;
    height: clamp(190px, 26vh, 238px);
    border-radius: 13px;
    border-width: 9px;
}

.monitor-stand,
.monitor-foot {
    display: none;
}

.terminal-head {
    height: 28px;
    padding-inline: 10px;
    font-size: 0.62rem;
}

.terminal-output {
    height: calc(100% - 72px);
    padding: 10px 13px;
    font-size: 0.75rem;
}

.terminal-composer {
    grid-template-columns: auto 1fr 36px;
    padding: 5px 10px 8px;
    font-size: 0.72rem;
}

.terminal-composer textarea {
    min-height: 26px;
}

.send-button {
    min-height: 26px;
    padding: 0;
}

.power-switch {
    position: absolute;
    right: clamp(105px, 17vw, 238px);
    bottom: clamp(32px, 5vh, 48px);
    z-index: 8;
    width: 64px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(180deg, #e2d3aa, #806545);
    border: 1px solid rgba(52, 37, 23, 0.45);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.power-switch span {
    position: absolute;
    left: 13px;
    top: 12px;
    width: 13px;
    height: 18px;
    border-radius: 99px;
    background: #2b2117;
}

.power-switch b {
    position: absolute;
    right: 12px;
    top: 15px;
    width: 23px;
    height: 12px;
    border-radius: 99px;
    background: rgba(65, 255, 120, 0.25);
    box-shadow: 0 0 14px var(--accent);
}

body[data-pc="on"] .power-switch b {
    background: var(--accent);
}

.marzog-robot {
    right: clamp(215px, 31vw, 360px);
    bottom: clamp(94px, 15.5vh, 130px);
    width: 118px;
    height: 138px;
    scale: 1;
    animation: robot-desk-drive 7s ease-in-out infinite;
}

.robot-aura,
.antenna,
.robot-eye,
.robot-mouth,
.robot-cheek,
.marzog-robot p {
    display: none;
}

.robot-head {
    left: 12px;
    top: 0;
    width: 94px;
    height: 58px;
    border-radius: 10px;
    background: linear-gradient(180deg, #c7bea7, #786c58);
}

.robot-screen {
    position: absolute;
    inset: 9px 10px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #050705;
    border: 2px solid #17110d;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-weight: 900;
    font-size: 1.12rem;
    text-shadow: 0 0 10px var(--accent);
}

.robot-neck {
    left: 51px;
    top: 58px;
    width: 16px;
    height: 16px;
}

.robot-body {
    left: 22px;
    top: 72px;
    width: 74px;
    height: 42px;
    border-radius: 12px;
}

.robot-body i {
    left: 13px;
    top: 14px;
    width: 10px;
    height: 10px;
}

.robot-body b {
    right: 12px;
    top: 16px;
    width: 30px;
    height: 6px;
}

.robot-wheels {
    position: absolute;
    left: 29px;
    top: 114px;
    display: flex;
    gap: 24px;
}

.robot-wheels span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #cbbf9e, #332719 70%);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.34);
}

body[data-speaking="on"] .robot-screen {
    animation: screen-talk 420ms steps(2, end) infinite;
}

.desk-plant {
    position: absolute;
    right: clamp(22px, 5vw, 70px);
    bottom: 30px;
    width: 74px;
    height: 94px;
}

.desk-plant span {
    position: absolute;
    bottom: 34px;
    left: 32px;
    width: 22px;
    height: 48px;
    border-radius: 99px 99px 4px 99px;
    background: linear-gradient(135deg, #77985d, #26381d);
    transform-origin: bottom;
}

.desk-plant span:nth-child(1) { transform: rotate(-38deg); }
.desk-plant span:nth-child(2) { height: 62px; transform: rotate(1deg); }
.desk-plant span:nth-child(3) { transform: rotate(36deg); }

.desk-plant b {
    position: absolute;
    left: 18px;
    bottom: 0;
    width: 42px;
    height: 38px;
    border-radius: 8px 8px 14px 14px;
    background: linear-gradient(180deg, #b8825a, #432719);
}

.book-stack {
    position: absolute;
    right: clamp(170px, 24vw, 310px);
    bottom: 32px;
    width: 110px;
    height: 54px;
}

.book-stack span {
    position: absolute;
    right: 0;
    width: 108px;
    height: 14px;
    border-radius: 4px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.22);
}

.book-stack span:nth-child(1) {
    bottom: 0;
    background: linear-gradient(90deg, #35513f, #b9a67d);
}

.book-stack span:nth-child(2) {
    bottom: 14px;
    width: 92px;
    background: linear-gradient(90deg, #6e4935, #d1b47d);
}

.book-stack span:nth-child(3) {
    bottom: 28px;
    width: 102px;
    background: linear-gradient(90deg, #303949, #c5b693);
}

.coffee {
    left: clamp(70px, 13vw, 170px);
    bottom: 30px;
    width: 68px;
    height: 38px;
    border-radius: 0 0 30px 30px;
    background: linear-gradient(180deg, #fff0ce, #d1b189 56%, #806247);
}

.coffee::before {
    inset: 5px 7px auto;
    height: 17px;
    background: radial-gradient(circle, #5a2d17 0 35%, #1b0d07 70%);
}

.coffee::after {
    right: -19px;
    top: 11px;
    width: 26px;
    height: 20px;
    border-width: 5px;
}

.notebook {
    right: clamp(85px, 14vw, 185px);
    bottom: 24px;
    width: 82px;
    height: 56px;
    opacity: 0.94;
}

.keyboard,
.mouse,
.pc-tower,
.plant {
    display: none;
}

@keyframes robot-desk-drive {
    0%,
    100% {
        translate: 0 0;
        rotate: -1deg;
    }
    40% {
        translate: -36px 0;
        rotate: 1deg;
    }
    72% {
        translate: 28px 0;
        rotate: -2deg;
    }
}

@keyframes screen-talk {
    50% {
        filter: brightness(1.5);
    }
}

@media (max-width: 980px) {
    body {
        overflow: hidden;
    }

    .room-shell,
    .room-stage {
        height: 100svh;
        min-height: 100svh;
    }

    .back-wall {
        inset: 0 0 26vh;
    }

    .portrait-frame {
        left: 14px;
        top: 58px;
        width: 118px;
    }

    .motion-frame {
        top: 60px;
        right: 14px;
        width: calc(100vw - 160px);
        min-height: 110px;
    }

    .announcement-board {
        top: 236px;
        left: 14px;
        right: 14px;
        width: auto;
        min-height: 118px;
    }

    .desk-scene {
        height: 390px;
        bottom: 8px;
    }

    .main-monitor {
        width: min(330px, 86vw);
        left: 45%;
        bottom: 116px;
    }

    .monitor-bezel {
        height: 298px;
        padding: 20px 22px 78px;
    }

    .monitor-glass {
        height: 182px;
    }

    .terminal-output {
        height: calc(100% - 66px);
        font-size: 0.64rem;
    }

    .marzog-robot {
        right: 28px;
        bottom: 128px;
        scale: 0.76;
    }

    .desk-surface {
        height: 104px;
    }

    .lamp {
        bottom: 82px;
        scale: 0.62;
        transform: none;
    }

    .candles {
        scale: 0.82;
        transform-origin: bottom left;
    }

    .coffee {
        left: 72px;
    }

    .book-stack {
        right: 138px;
        scale: 0.82;
        transform-origin: bottom right;
    }

    .desk-plant {
        right: 18px;
        scale: 0.78;
        transform-origin: bottom right;
    }

    .power-switch {
        right: 104px;
        bottom: 34px;
        scale: 0.86;
    }

    .screen-clock {
        display: grid;
        top: 184px;
        left: auto;
        right: 18px;
        min-width: 96px;
        padding: 8px 10px;
    }
}

/* Final fixed-identity layout: no touch monitor, no mobile zoom. */
.monitor-glass,
body[data-pc="off"] .monitor-glass {
    cursor: default;
}

.power-switch {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffb0a0, #5f0d0a 68%, #2c0806);
    border: 3px solid #2a1610;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.34), 0 0 18px rgba(210, 30, 24, 0.35);
}

.power-switch span {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 4px;
    height: 17px;
    border-radius: 99px;
    transform: translateX(-50%);
    background: #ffe0d6;
}

.power-switch b {
    position: absolute;
    inset: 13px;
    width: auto;
    height: auto;
    border: 4px solid #ffe0d6;
    border-top-color: transparent;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

body[data-pc="on"] .power-switch {
    background: radial-gradient(circle at 35% 30%, #c5ffd0, #16833b 68%, #0b351d);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.34), 0 0 20px rgba(65, 255, 120, 0.45);
}

body[data-pc="on"] .power-switch span,
body[data-pc="on"] .power-switch b {
    background-color: #eaffed;
    border-color: #eaffed;
    border-top-color: transparent;
}

.screen-clock {
    border-radius: 4px;
    border: 3px solid #15120b;
    box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.65), 0 12px 26px rgba(0, 0, 0, 0.34);
}

.screen-clock::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 6px;
    background: linear-gradient(180deg, #433423, #120d08);
}

@media (max-width: 980px) {
    .room-stage {
        perspective: 980px;
    }

    .back-wall {
        inset: 0 3vw 25vh;
        transform: translateZ(-40px);
        border-inline-color: rgba(255, 240, 200, 0.12);
    }

    .left-wall,
    .right-wall {
        width: 22vw;
        bottom: 25vh;
        opacity: 0.9;
    }

    .floor {
        height: 28vh;
        bottom: -8vh;
    }

    .desk-scene {
        left: 50%;
        bottom: 2svh;
        width: 94vw;
        height: 42svh;
    }

    .desk-surface {
        width: 94vw;
        height: 92px;
        bottom: 0;
        transform: translateX(-50%) perspective(760px) rotateX(8deg);
    }

    .main-monitor {
        left: 43%;
        bottom: 88px;
        width: 255px;
        transform: translateX(-50%);
    }

    .monitor-bezel {
        height: 245px;
        padding: 18px 18px 66px;
        border-radius: 22px 22px 14px 14px;
    }

    .monitor-glass {
        height: 146px;
        border-radius: 10px;
        border-width: 7px;
    }

    .monitor-bezel::before {
        bottom: 35px;
        height: 9px;
    }

    .monitor-bezel::after {
        right: 26px;
        bottom: 15px;
        width: 18px;
        height: 18px;
    }

    .terminal-head {
        height: 24px;
        font-size: 0.54rem;
    }

    .terminal-output {
        height: calc(100% - 58px);
        padding: 8px 10px;
        font-size: 0.56rem;
    }

    .terminal-composer {
        grid-template-columns: auto 1fr 28px;
        gap: 5px;
        padding: 4px 8px 6px;
        font-size: 0.56rem;
    }

    .send-button {
        min-height: 22px;
    }

    .marzog-robot {
        right: 62px;
        bottom: 90px;
        scale: 0.62;
        animation: robot-desk-drive-mobile 7s ease-in-out infinite;
    }

    .power-switch {
        right: 86px;
        bottom: 22px;
        width: 44px;
        height: 44px;
        scale: 1;
    }

    .power-switch span {
        top: 9px;
        height: 14px;
    }

    .power-switch b {
        inset: 11px;
        border-width: 3px;
    }

    .lamp {
        left: 2px;
        bottom: 68px;
        scale: 0.52;
    }

    .candles {
        left: 12px;
        bottom: 19px;
        scale: 0.72;
    }

    .coffee {
        left: 82px;
        bottom: 26px;
        scale: 0.82;
    }

    .book-stack {
        right: 150px;
        bottom: 25px;
        scale: 0.72;
    }

    .desk-plant {
        right: 14px;
        bottom: 22px;
        scale: 0.68;
    }

    .notebook {
        display: none;
    }

    .portrait-frame {
        left: 16px;
        top: 58px;
        width: 112px;
    }

    .motion-frame {
        top: 62px;
        right: 16px;
        width: 214px;
        min-width: 0;
        min-height: 92px;
        padding: 10px;
    }

    .gallery-screen,
    .gallery-slide {
        min-height: 78px;
    }

    .announcement-board {
        top: 218px;
        left: 16px;
        right: 16px;
        min-height: 104px;
    }

    .screen-clock {
        top: 166px;
        right: 22px;
        min-width: 88px;
        padding: 7px 8px;
        font-size: 0.9rem;
    }
}

@keyframes robot-desk-drive-mobile {
    0%,
    100% {
        translate: 0 0;
        rotate: -1deg;
    }
    45% {
        translate: -18px 0;
        rotate: 1deg;
    }
    76% {
        translate: 16px 0;
        rotate: -2deg;
    }
}

/* Detail pass: seventies wall, ornate frame, LED board, cubic computer. */
.back-wall {
    background:
        radial-gradient(circle at 24px 24px, rgba(219, 170, 92, 0.11) 0 7px, transparent 8px 100%),
        radial-gradient(circle at 66px 66px, rgba(65, 255, 120, 0.055) 0 5px, transparent 6px 100%),
        linear-gradient(45deg, transparent 0 48%, rgba(255, 230, 170, 0.035) 49% 51%, transparent 52%),
        linear-gradient(135deg, transparent 0 48%, rgba(255, 230, 170, 0.028) 49% 51%, transparent 52%),
        linear-gradient(180deg, color-mix(in srgb, var(--wall), #fff 4%), color-mix(in srgb, var(--wall), #000 24%));
    background-size: 90px 90px, 90px 90px, 52px 52px, 52px 52px, auto;
}

.portrait-frame {
    padding: 16px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 16px 16px, #f0d48a 0 4px, transparent 5px),
        radial-gradient(circle at calc(100% - 16px) 16px, #f0d48a 0 4px, transparent 5px),
        radial-gradient(circle at 16px calc(100% - 16px), #f0d48a 0 4px, transparent 5px),
        radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #f0d48a 0 4px, transparent 5px),
        repeating-linear-gradient(45deg, rgba(255, 224, 142, 0.35) 0 5px, rgba(58, 37, 17, 0.35) 5px 10px),
        linear-gradient(135deg, #2a1b0d, #b98b45 34%, #3c2713 62%, #e3be69);
    box-shadow:
        0 30px 62px rgba(0, 0, 0, 0.58),
        inset 0 0 0 3px rgba(255, 238, 174, 0.2),
        inset 0 0 0 8px rgba(35, 20, 8, 0.38);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 7px;
    border: 2px solid rgba(255, 236, 170, 0.24);
    pointer-events: none;
}

.announcement-board {
    width: clamp(230px, 28vw, 390px);
    min-height: 118px;
    max-height: 150px;
    padding: 12px;
    background:
        linear-gradient(180deg, #21160e, #0c0906);
}

.announcement-board::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 6px;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(65, 255, 120, 0.04) 0 1px, transparent 1px 5px),
        radial-gradient(circle at 12px 12px, rgba(65, 255, 120, 0.12), transparent 22px);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.76);
}

.board-top {
    position: relative;
    z-index: 2;
    min-height: 10px;
    margin-bottom: 7px;
}

#announcement-list {
    position: relative;
    z-index: 2;
    max-height: 92px;
    overflow: hidden;
}

#announcement-list:empty {
    min-height: 78px;
}

#announcement-list li {
    min-height: 28px;
    padding: 5px 8px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    text-shadow: 0 0 9px var(--accent);
    background: rgba(4, 10, 5, 0.45);
    border-color: rgba(65, 255, 120, 0.15);
}

.screen-clock {
    min-width: 128px;
    background:
        repeating-linear-gradient(0deg, rgba(65, 255, 120, 0.08) 0 1px, transparent 1px 5px),
        #020402;
    border-color: #282017;
}

.screen-clock span {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    color: var(--accent);
}

.main-monitor {
    filter: drop-shadow(22px 18px 0 rgba(36, 25, 14, 0.58));
}

.main-monitor::before {
    content: "";
    position: absolute;
    right: -28px;
    top: 26px;
    width: 42px;
    height: calc(100% - 34px);
    border-radius: 0 18px 16px 0;
    background: linear-gradient(90deg, #7f6848, #3b2a1b);
    transform: skewY(8deg);
    box-shadow: inset 8px 0 18px rgba(255, 235, 185, 0.08), 18px 18px 32px rgba(0, 0, 0, 0.28);
    z-index: -1;
}

.monitor-bezel {
    box-shadow:
        inset 10px 0 18px rgba(255, 245, 210, 0.1),
        inset -16px 0 22px rgba(52, 34, 18, 0.28),
        0 30px 65px rgba(0, 0, 0, 0.45);
}

.monitor-bezel::after {
    display: none;
}

.power-switch {
    right: auto;
    left: calc(45% + 116px);
    bottom: clamp(144px, 23vh, 178px);
    width: 42px;
    height: 42px;
    z-index: 9;
}

.power-switch span {
    top: 9px;
    height: 14px;
}

.power-switch b {
    inset: 10px;
    border-width: 3px;
}

.coffee {
    width: 74px;
    height: 42px;
    border-radius: 0 0 34px 34px;
    box-shadow: 0 5px 0 #6b4e36, 0 14px 20px rgba(0, 0, 0, 0.24);
}

.coffee::after {
    right: -22px;
    top: 10px;
    width: 28px;
    height: 22px;
    border: 6px solid #ead9b8;
    border-left: 0;
    border-radius: 0 24px 24px 0;
    box-shadow: 4px 5px 8px rgba(0, 0, 0, 0.16);
}

.coffee::before {
    box-shadow: inset 0 0 0 2px rgba(255, 240, 210, 0.2);
}

@media (max-width: 980px) {
    .back-wall {
        background-size: 76px 76px, 76px 76px, 44px 44px, 44px 44px, auto;
    }

    .portrait-frame {
        width: 114px;
        padding: 12px;
    }

    .motion-frame,
    .announcement-board {
        width: 214px;
        right: 16px;
        left: auto;
    }

    .announcement-board {
        top: 220px;
        min-height: 92px;
        max-height: 102px;
    }

    #announcement-list:empty {
        min-height: 56px;
    }

    .screen-clock {
        top: 170px;
        right: 28px;
        min-width: 86px;
    }

    .main-monitor {
        filter: drop-shadow(13px 12px 0 rgba(36, 25, 14, 0.54));
    }

    .main-monitor::before {
        right: -18px;
        top: 22px;
        width: 29px;
        height: calc(100% - 30px);
    }

    .power-switch {
        left: calc(43% + 35px);
        right: auto;
        bottom: 122px;
        width: 34px;
        height: 34px;
        scale: 1;
    }

    .power-switch span {
        top: 7px;
        height: 11px;
        width: 3px;
    }

    .power-switch b {
        inset: 8px;
        border-width: 3px;
    }

    .coffee {
        left: 76px;
        width: 62px;
        height: 36px;
    }

    .coffee::after {
        right: -18px;
        top: 9px;
        width: 22px;
        height: 18px;
        border-width: 5px;
    }
}

/* Final composition lock. Keep this at the end. */
.screen-clock {
    left: clamp(24px, 7vw, 96px);
    top: clamp(318px, 45vh, 390px);
    right: auto;
}

.motion-frame {
    left: auto;
    right: clamp(24px, 13vw, 190px);
    top: clamp(48px, 8vh, 82px);
    transform: none;
}

.announcement-board {
    right: clamp(24px, 13vw, 190px);
    top: clamp(190px, 28vh, 250px);
}

.main-monitor .power-switch {
    position: absolute;
    left: auto;
    right: 34px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    z-index: 12;
    scale: 1;
}

.desk-scene > .power-switch {
    display: none;
}

.lamp {
    width: 122px;
    height: 210px;
}

.lamp-shade {
    top: 4px;
}

.lamp-neck {
    top: 58px;
    height: 120px;
    transform: rotate(5deg);
}

.lamp-base {
    left: 24px;
    bottom: 0;
    width: 92px;
    height: 30px;
}

.lamp-base::before {
    content: "";
    position: absolute;
    left: 32px;
    bottom: 18px;
    width: 26px;
    height: 24px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #7e7d72, #2f312c);
}

@media (max-width: 980px) {
    .portrait-frame {
        left: 18px;
        top: 54px;
        width: 116px;
    }

    .screen-clock {
        left: 18px;
        right: auto;
        top: 186px;
        min-width: 112px;
    }

    .motion-frame {
        top: 58px;
        right: 18px;
        left: auto;
        width: 218px;
    }

    .announcement-board {
        top: 184px;
        right: 18px;
        left: auto;
        width: 218px;
        min-height: 95px;
        max-height: 105px;
    }

    .lamp {
        left: 16px;
        bottom: 90px;
        scale: 0.5;
        transform-origin: bottom left;
    }

    .main-monitor .power-switch {
        right: 24px;
        bottom: 14px;
        width: 34px;
        height: 34px;
        scale: 1;
    }

    .main-monitor .power-switch span {
        top: 7px;
        height: 11px;
        width: 3px;
    }

    .main-monitor .power-switch b {
        inset: 8px;
        border-width: 3px;
    }
}

/* True seven-segment clock and final object alignment. */
.screen-clock {
    width: auto;
    min-width: 156px;
    min-height: 62px;
    padding: 10px 12px;
    place-items: center;
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, #17120b, #050403);
    border: 4px solid #2b2115;
    box-shadow:
        inset 0 2px 2px rgba(255, 235, 190, 0.08),
        inset 0 -10px 20px rgba(0, 0, 0, 0.7),
        0 16px 32px rgba(0, 0, 0, 0.4);
}

.screen-clock::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -6px;
    height: 7px;
    border-radius: 0 0 8px 8px;
    background: #120d08;
}

.clock-face {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
    padding: 5px 7px;
    border-radius: 5px;
    background:
        repeating-linear-gradient(0deg, rgba(65, 255, 120, 0.04) 0 1px, transparent 1px 4px),
        #020402;
    box-shadow: inset 0 0 22px rgba(65, 255, 120, 0.08), inset 0 0 38px rgba(0, 0, 0, 0.8);
}

.seg-digit {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 36px;
}

.seg {
    position: absolute;
    display: block;
    opacity: 0.12;
    background: var(--accent);
    box-shadow: none;
}

.seg.is-on {
    opacity: 1;
    box-shadow: 0 0 9px var(--accent), 0 0 18px rgba(65, 255, 120, 0.38);
}

.seg-a,
.seg-d,
.seg-g {
    left: 4px;
    width: 12px;
    height: 4px;
    clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.seg-a { top: 1px; }
.seg-g { top: 16px; }
.seg-d { bottom: 1px; }

.seg-b,
.seg-c,
.seg-e,
.seg-f {
    width: 4px;
    height: 13px;
    clip-path: polygon(50% 0, 100% 12%, 100% 88%, 50% 100%, 0 88%, 0 12%);
}

.seg-b { right: 1px; top: 4px; }
.seg-c { right: 1px; bottom: 4px; }
.seg-f { left: 1px; top: 4px; }
.seg-e { left: 1px; bottom: 4px; }

.seg-colon {
    width: 6px;
    height: 36px;
    display: inline-grid;
    align-content: center;
    gap: 8px;
}

.seg-colon i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent), 0 0 18px rgba(65, 255, 120, 0.38);
}

@media (max-width: 980px) {
    .screen-clock {
        min-width: 116px;
        min-height: 50px;
        padding: 7px 8px;
        top: 164px;
        right: 20px;
    }

    .clock-face {
        gap: 3px;
        padding: 4px 5px;
    }

    .seg-digit {
        width: 15px;
        height: 28px;
    }

    .seg-a,
    .seg-d,
    .seg-g {
        left: 3px;
        width: 9px;
        height: 3px;
    }

    .seg-g { top: 13px; }

    .seg-b,
    .seg-c,
    .seg-e,
    .seg-f {
        width: 3px;
        height: 10px;
    }

    .seg-b,
    .seg-f { top: 3px; }

    .seg-c,
    .seg-e { bottom: 3px; }

    .seg-colon {
        width: 5px;
        height: 28px;
        gap: 6px;
    }

    .seg-colon i {
        width: 4px;
        height: 4px;
    }

    .lamp {
        left: 12px;
        bottom: 112px;
        scale: 0.48;
        z-index: 5;
    }

    .lamp-glow {
        opacity: 0.58;
    }

    .desk-surface {
        height: 96px;
    }

    .candles {
        left: 12px;
        bottom: 20px;
        scale: 0.66;
    }

    .coffee {
        left: 76px;
        bottom: 27px;
        scale: 0.78;
    }

    .book-stack {
        right: 144px;
        bottom: 24px;
        scale: 0.68;
    }

    .desk-plant {
        right: 15px;
        bottom: 22px;
        scale: 0.66;
    }
}

/* Final composition lock. Keep below all clock/object rules. */
.screen-clock {
    left: clamp(24px, 7vw, 96px);
    top: clamp(318px, 45vh, 390px);
    right: auto;
}

.motion-frame {
    left: auto;
    right: clamp(24px, 13vw, 190px);
    top: clamp(48px, 8vh, 82px);
    transform: none;
}

.announcement-board {
    right: clamp(24px, 13vw, 190px);
    top: clamp(190px, 28vh, 250px);
}

.main-monitor .power-switch {
    position: absolute;
    left: auto;
    right: 34px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    z-index: 12;
    scale: 1;
}

.desk-scene > .power-switch {
    display: none;
}

.lamp {
    width: 122px;
    height: 210px;
}

.lamp-shade {
    top: 4px;
}

.lamp-neck {
    top: 58px;
    height: 120px;
    transform: rotate(5deg);
}

.lamp-base {
    left: 24px;
    bottom: 0;
    width: 92px;
    height: 30px;
}

.lamp-base::before {
    content: "";
    position: absolute;
    left: 32px;
    bottom: 18px;
    width: 26px;
    height: 24px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #7e7d72, #2f312c);
}

@media (max-width: 980px) {
    .portrait-frame {
        left: 18px;
        top: 54px;
        width: 116px;
    }

    .screen-clock {
        left: 18px;
        right: auto;
        top: 216px;
        min-width: 112px;
    }

    .motion-frame {
        top: 58px;
        right: 18px;
        left: auto;
        width: 218px;
    }

    .announcement-board {
        top: 184px;
        right: 18px;
        left: auto;
        width: 218px;
        min-height: 95px;
        max-height: 105px;
    }

    .lamp {
        left: 16px;
        bottom: 90px;
        scale: 0.5;
        transform-origin: bottom left;
    }

    .main-monitor .power-switch {
        right: 24px;
        bottom: 14px;
        width: 34px;
        height: 34px;
        scale: 1;
    }

    .main-monitor .power-switch span {
        top: 7px;
        height: 11px;
        width: 3px;
    }

    .main-monitor .power-switch b {
        inset: 8px;
        border-width: 3px;
    }
}
