body {
    height: 100vh;
    height: 100dvh;
    background:
        radial-gradient(circle at 50% -16%, rgba(139, 73, 41, 0.24), transparent 34%),
        radial-gradient(circle at 12% 72%, rgba(216, 205, 162, 0.08), transparent 24%),
        linear-gradient(135deg, #100b08, #18100c 46%, #090706);
    color: var(--desk-text);
    overflow: hidden;
}

.hell-death-overlay {
    position: fixed;
    inset: 0;
    z-index: 40000;
    display: none;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    isolation: isolate;
}

.hell-death-overlay.is-active {
    display: block;
}

.hell-eyelid {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 56vh;
    background: #000;
    opacity: 1;
    mix-blend-mode: normal;
    will-change: transform;
}

.hell-eyelid-top {
    top: 0;
    border-bottom-left-radius: 50% 7%;
    border-bottom-right-radius: 50% 7%;
    transform: translateY(-102%);
}

.hell-eyelid-bottom {
    bottom: 0;
    border-top-left-radius: 50% 7%;
    border-top-right-radius: 50% 7%;
    transform: translateY(102%);
}

.hell-death-overlay.is-active .hell-eyelid-top {
    animation: hell-eyelid-top-close 2450ms cubic-bezier(0.74, 0.02, 0.18, 1) forwards;
}

.hell-death-overlay.is-active .hell-eyelid-bottom {
    animation: hell-eyelid-bottom-close 2450ms cubic-bezier(0.74, 0.02, 0.18, 1) forwards;
}

.hell-death-overlay.is-opening .hell-eyelid-top {
    animation: hell-eyelid-top-open 120ms cubic-bezier(0.2, 0.9, 0.12, 1) forwards;
}

.hell-death-overlay.is-opening .hell-eyelid-bottom {
    animation: hell-eyelid-bottom-open 120ms cubic-bezier(0.2, 0.9, 0.12, 1) forwards;
}

@keyframes hell-eyelid-top-close {
    0% {
        transform: translateY(-102%);
    }

    22% {
        transform: translateY(0);
    }

    34%,
    48% {
        transform: translateY(-102%);
    }

    82%,
    100% {
        transform: translateY(0);
    }
}

@keyframes hell-eyelid-bottom-close {
    0% {
        transform: translateY(102%);
    }

    22% {
        transform: translateY(0);
    }

    34%,
    48% {
        transform: translateY(102%);
    }

    82%,
    100% {
        transform: translateY(0);
    }
}

@keyframes hell-eyelid-top-open {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-102%);
    }
}

@keyframes hell-eyelid-bottom-open {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(102%);
    }
}

body.personal-light-mode {
    --desk-text: #e7ece7;
    --desk-text-soft: #bdc9c7;
    --desk-muted: #879b9b;
    --desk-line: rgba(216, 205, 162, 0.14);
    --desk-lamp-soft: rgba(216, 205, 162, 0.08);
    background:
        radial-gradient(circle at 50% -16%, rgba(139, 73, 41, 0.24), transparent 34%),
        radial-gradient(circle at 12% 72%, rgba(216, 205, 162, 0.08), transparent 24%),
        linear-gradient(135deg, #100b08, #18100c 46%, #090706);
    color: var(--desk-text);
}

button {
    font: inherit;
}

.hell-page-shell {
    width: min(1500px, 96vw);
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    padding: 10px 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
}

.hell-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border: 1px solid rgba(216, 205, 162, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(8, 7, 6, 0.58);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hell-top-nav .page-label {
    margin-right: clamp(72px, 8vw, 96px);
    max-width: calc(100% - 160px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-link,
.page-label {
    color: rgba(231, 236, 231, 0.72);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hell-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

.hell-stage,
.hell-bag-panel {
    border: 1px solid rgba(216, 205, 162, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(216, 205, 162, 0.04), transparent 36%),
        rgba(11, 8, 6, 0.76);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36);
}

.hell-stage {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    padding: clamp(10px, 1.4vw, 18px);
}

.hell-stage-head,
.hell-panel-head,
.hell-book-head,
.hell-page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hell-stage-head {
    margin-bottom: 7px;
}

.hell-kicker,
.hell-panel-head span,
.hell-floor-id,
.hell-bag-meta {
    color: rgba(189, 201, 199, 0.58);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: var(--desk-text);
    letter-spacing: 0;
}

h1 {
    font-size: clamp(1.25rem, 2.4vw, 2.05rem);
}

.hell-floor-id {
    max-width: 190px;
    text-align: right;
    overflow-wrap: anywhere;
}

.hell-shelf-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    min-height: 0;
    height: 100%;
    align-items: stretch;
}

.hell-flick {
    position: relative;
    min-height: 0;
    border: 1px solid rgba(216, 205, 162, 0.16);
    border-radius: 8px;
    background: rgba(8, 7, 6, 0.58);
    color: var(--desk-text-soft);
    cursor: pointer;
}

.hell-flick:hover,
.hell-flick:focus-visible {
    border-color: rgba(216, 205, 162, 0.42);
    background: rgba(216, 205, 162, 0.06);
    outline: none;
}

.hell-flick span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.hell-flick-left span {
    transform: translate(-32%, -50%) rotate(-45deg);
}

.hell-flick-right span {
    transform: translate(-68%, -50%) rotate(135deg);
}

.hell-shelf {
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    border: 8px solid #3b2417;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 225, 174, 0.04), transparent 20%, rgba(0, 0, 0, 0.18) 100%),
        #25160f;
    box-shadow:
        inset 0 0 0 1px rgba(255, 225, 174, 0.08),
        inset 0 22px 34px rgba(0, 0, 0, 0.18),
        0 22px 34px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.hell-aisle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr) minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    transform-origin: center center;
    will-change: transform, opacity;
}

.hell-aisle.is-shifting-left {
    animation: hell-shift-left 280ms ease-out;
}

.hell-aisle.is-shifting-right {
    animation: hell-shift-right 280ms ease-out;
}

.hell-aisle.is-shifting-straight {
    animation: hell-shift-straight 320ms ease-out;
}

@keyframes hell-shift-left {
    0% {
        opacity: 0.72;
        transform: translateX(3.2%);
    }

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

@keyframes hell-shift-right {
    0% {
        opacity: 0.72;
        transform: translateX(-3.2%);
    }

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

@keyframes hell-shift-straight {
    0% {
        opacity: 0.7;
        transform: scale(0.96) translateY(-1.8%);
    }

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

@keyframes hell-panel-flicker {
    0%,
    72%,
    77%,
    81%,
    85%,
    100% {
        filter: brightness(1);
        opacity: var(--lamp-opacity);
    }

    74%,
    82% {
        filter: brightness(0.46);
        opacity: 0.38;
    }

    75%,
    83% {
        filter: brightness(1.32);
        opacity: 1;
    }
}

.hell-shelf-row {
    display: flex;
    justify-content: stretch;
    align-items: end;
    gap: 0;
    min-width: 0;
    border-bottom: 8px solid #4a2b19;
    padding: 5px 5px 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 230, 184, 0.025) 0 16px, transparent 16px 34px);
}

.hell-shelf-row:last-child {
    border-bottom: 0;
}

.hell-book-spine {
    position: relative;
    align-self: end;
    flex: var(--book-flex, 1) 1 0;
    width: auto;
    min-width: 0;
    height: min(var(--book-height, 46px), 88%);
    border: 1px solid rgba(255, 244, 211, 0.14);
    border-radius: 1px 1px 0 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent 20%, rgba(0, 0, 0, 0.18) 100%),
        var(--book-color);
    box-shadow:
        inset 3px 0 0 rgba(255, 255, 255, 0.08),
        inset -3px 0 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    overflow: hidden;
    transform: rotate(var(--book-lean, 0deg));
    transition: transform 140ms ease, outline-color 140ms ease;
}

.hell-book-spine::before,
.hell-book-spine::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    height: 1px;
    background: rgba(255, 233, 186, 0.32);
}

.hell-book-spine::before {
    top: 9px;
}

.hell-book-spine::after {
    bottom: 11px;
}

.hell-book-spine:hover,
.hell-book-spine:focus-visible {
    transform: translateY(-3px) rotate(var(--book-lean, 0deg));
    outline: 1px solid rgba(216, 205, 162, 0.58);
    outline-offset: 2px;
}

.hell-hallway {
    --hell-vp-x: 50%;
    --hell-vp-y: 38%;
    position: relative;
    display: grid;
    place-items: end center;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 4px;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(216, 205, 162, 0.16), transparent 16%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.72)),
        linear-gradient(180deg, #080604 0%, #120d09 44%, #21140d 72%, #080604 100%);
    color: rgba(231, 236, 231, 0.68);
    cursor: pointer;
    overflow: hidden;
    margin-inline: 0;
    perspective: none;
}

.hell-hallway::before,
.hell-hallway::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hell-hallway::before {
    background:
        linear-gradient(180deg, rgba(155, 139, 108, 0.3) 0 34%, rgba(62, 51, 39, 0.14) 40%, transparent 44%),
        repeating-linear-gradient(180deg, transparent 0 6.2%, rgba(225, 214, 185, 0.085) 6.2% 6.6%),
        radial-gradient(ellipse at var(--hell-vp-x) var(--hell-vp-y), rgba(216, 205, 162, 0.09), transparent 18%);
    clip-path: polygon(0 0, 100% 0, 50.9% var(--hell-vp-y), 49.1% var(--hell-vp-y));
    opacity: 0.88;
    z-index: 1;
}

.hell-ceiling-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hell-ceiling-lines line {
    stroke: rgba(235, 225, 194, 0.16);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.hell-hallway::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 17%, transparent 83%, rgba(0, 0, 0, 0.5)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 32%, transparent 78%, rgba(0, 0, 0, 0.46));
    z-index: 40;
}

.hell-depth {
    position: absolute;
    left: var(--depth-left);
    top: var(--depth-top);
    
    width: var(--depth-width);
    height: var(--depth-height);
    z-index: var(--depth-layer);
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    border: var(--depth-edge) solid #3b2417;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 225, 174, 0.04), transparent 20%, rgba(0, 0, 0, 0.18) 100%),
        #25160f;
    box-shadow:
        inset 0 0 0 1px rgba(255, 225, 174, 0.08),
        inset 0 22px 34px rgba(0, 0, 0, 0.18),
        0 22px 34px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    transform: none;
    transform-origin: var(--depth-origin, bottom center);
    opacity: var(--depth-opacity);
}

.hell-depth::before,
.hell-depth::after {
    content: "";
    display: none;
    position: absolute;
    pointer-events: none;
}

.hell-depth::before {
    z-index: 2;
    inset: 0;
    background:
        repeating-linear-gradient(180deg,
            transparent 0 calc(12.5% - 7px),
            #4a2b19 calc(12.5% - 7px) 12.5%),
        linear-gradient(90deg, rgba(255, 230, 184, 0.025) 0 16px, transparent 16px 34px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 177, 0.06),
        inset 0 12px 18px rgba(0, 0, 0, 0.28);
}

.hell-depth::after {
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.26));
}

.hell-depth-row {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: stretch;
    align-items: end;
    gap: 0;
    width: 100%;
    min-width: 100%;
    margin-left: 0;
    border-bottom: var(--depth-edge) solid #4a2b19;
    padding: calc(5px * var(--depth-book-scale)) calc(5px * var(--depth-book-scale)) 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 230, 184, 0.025) 0 16px, transparent 16px 34px);
}

.hell-depth-row:last-child {
    border-bottom: 0;
}

.hell-depth-book {
    position: relative;
    align-self: end;
    flex: var(--book-flex, 1) 1 0;
    width: auto;
    min-width: 0;
    height: calc(var(--book-height, 46px) * var(--depth-book-scale, 1));
    max-height: 88%;
    border: 1px solid rgba(255, 244, 211, 0.14);
    border-radius: 1px 1px 0 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent 20%, rgba(0, 0, 0, 0.18) 100%),
        var(--book-color);
    box-shadow:
        inset 2px 0 0 rgba(255, 255, 255, 0.07),
        inset -2px 0 0 rgba(0, 0, 0, 0.12),
        0 2px 0 rgba(0, 0, 0, 0.18);
    transform: rotate(var(--book-lean, 0deg));
    transform-origin: bottom center;
}

.hell-depth-book::before,
.hell-depth-book::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    height: 1px;
    background: rgba(255, 233, 186, 0.32);
}

.hell-depth-book::before {
    top: 9px;
}

.hell-depth-book::after {
    bottom: 11px;
}

.hell-depth-1 {
    --depth-left: -24.0000%;
    --depth-top: 4.0000%;
    --depth-width: 52.0000%;
    --depth-height: 92.0000%;
    --depth-book-scale: 1.0000;
    --depth-edge: 8.00px;
    --depth-opacity: 0.960;
    --depth-layer: 90;
}

.hell-depth-2 {
    --depth-left: 72.0000%;
    --depth-top: 4.0000%;
    --depth-width: 52.0000%;
    --depth-height: 92.0000%;
    --depth-book-scale: 1.0000;
    --depth-edge: 8.00px;
    --depth-opacity: 0.960;
    --depth-layer: 90;
}

.hell-depth-3 {
    --depth-left: -6.9800%;
    --depth-top: 11.8200%;
    --depth-width: 40.0400%;
    --depth-height: 70.8400%;
    --depth-book-scale: 0.7700;
    --depth-edge: 6.16px;
    --depth-opacity: 0.915;
    --depth-layer: 85;
}

.hell-depth-4 {
    --depth-left: 66.9400%;
    --depth-top: 11.8200%;
    --depth-width: 40.0400%;
    --depth-height: 70.8400%;
    --depth-book-scale: 0.7700;
    --depth-edge: 6.16px;
    --depth-opacity: 0.915;
    --depth-layer: 85;
}

.hell-depth-5 {
    --depth-left: 6.1254%;
    --depth-top: 17.8414%;
    --depth-width: 30.8308%;
    --depth-height: 54.5468%;
    --depth-book-scale: 0.5929;
    --depth-edge: 4.74px;
    --depth-opacity: 0.870;
    --depth-layer: 80;
}

.hell-depth-6 {
    --depth-left: 63.0438%;
    --depth-top: 17.8414%;
    --depth-width: 30.8308%;
    --depth-height: 54.5468%;
    --depth-book-scale: 0.5929;
    --depth-edge: 4.74px;
    --depth-opacity: 0.870;
    --depth-layer: 80;
}

.hell-depth-7 {
    --depth-left: 16.2166%;
    --depth-top: 22.4779%;
    --depth-width: 23.7397%;
    --depth-height: 42.0010%;
    --depth-book-scale: 0.4565;
    --depth-edge: 3.65px;
    --depth-opacity: 0.825;
    --depth-layer: 75;
}

.hell-depth-8 {
    --depth-left: 60.0437%;
    --depth-top: 22.4779%;
    --depth-width: 23.7397%;
    --depth-height: 42.0010%;
    --depth-book-scale: 0.4565;
    --depth-edge: 3.65px;
    --depth-opacity: 0.825;
    --depth-layer: 75;
}

.hell-depth-9 {
    --depth-left: 23.9867%;
    --depth-top: 26.0480%;
    --depth-width: 18.2796%;
    --depth-height: 32.3408%;
    --depth-book-scale: 0.3515;
    --depth-edge: 2.81px;
    --depth-opacity: 0.780;
    --depth-layer: 70;
}

.hell-depth-10 {
    --depth-left: 57.7337%;
    --depth-top: 26.0480%;
    --depth-width: 18.2796%;
    --depth-height: 32.3408%;
    --depth-book-scale: 0.3515;
    --depth-edge: 2.81px;
    --depth-opacity: 0.780;
    --depth-layer: 70;
}

.hell-depth-11 {
    --depth-left: 29.9698%;
    --depth-top: 28.7969%;
    --depth-width: 14.0753%;
    --depth-height: 24.9024%;
    --depth-book-scale: 0.2707;
    --depth-edge: 2.17px;
    --depth-opacity: 0.735;
    --depth-layer: 65;
}

.hell-depth-12 {
    --depth-left: 55.9549%;
    --depth-top: 28.7969%;
    --depth-width: 14.0753%;
    --depth-height: 24.9024%;
    --depth-book-scale: 0.2707;
    --depth-edge: 2.17px;
    --depth-opacity: 0.735;
    --depth-layer: 65;
}

.hell-depth-13 {
    --depth-left: 34.5767%;
    --depth-top: 30.9136%;
    --depth-width: 10.8380%;
    --depth-height: 19.1749%;
    --depth-book-scale: 0.2084;
    --depth-edge: 1.67px;
    --depth-opacity: 0.690;
    --depth-layer: 60;
}

.hell-depth-14 {
    --depth-left: 54.5853%;
    --depth-top: 30.9136%;
    --depth-width: 10.8380%;
    --depth-height: 19.1749%;
    --depth-book-scale: 0.2084;
    --depth-edge: 1.67px;
    --depth-opacity: 0.690;
    --depth-layer: 60;
}

.hell-depth-15 {
    --depth-left: 38.1241%;
    --depth-top: 32.5435%;
    --depth-width: 8.3452%;
    --depth-height: 14.7646%;
    --depth-book-scale: 0.1605;
    --depth-edge: 1.28px;
    --depth-opacity: 0.645;
    --depth-layer: 55;
}

.hell-depth-16 {
    --depth-left: 53.5307%;
    --depth-top: 32.5435%;
    --depth-width: 8.3452%;
    --depth-height: 14.7646%;
    --depth-book-scale: 0.1605;
    --depth-edge: 1.28px;
    --depth-opacity: 0.645;
    --depth-layer: 55;
}

.hell-depth-17 {
    --depth-left: 40.8556%;
    --depth-top: 33.7985%;
    --depth-width: 6.4258%;
    --depth-height: 11.3688%;
    --depth-book-scale: 0.1236;
    --depth-edge: 0.99px;
    --depth-opacity: 0.600;
    --depth-layer: 50;
}

.hell-depth-18 {
    --depth-left: 52.7186%;
    --depth-top: 33.7985%;
    --depth-width: 6.4258%;
    --depth-height: 11.3688%;
    --depth-book-scale: 0.1236;
    --depth-edge: 0.99px;
    --depth-opacity: 0.600;
    --depth-layer: 50;
}

.hell-depth-19 {
    --depth-left: 42.9588%;
    --depth-top: 34.7648%;
    --depth-width: 4.9479%;
    --depth-height: 8.7540%;
    --depth-book-scale: 0.0952;
    --depth-edge: 0.76px;
    --depth-opacity: 0.555;
    --depth-layer: 45;
}

.hell-depth-20 {
    --depth-left: 52.0933%;
    --depth-top: 34.7648%;
    --depth-width: 4.9479%;
    --depth-height: 8.7540%;
    --depth-book-scale: 0.0952;
    --depth-edge: 0.76px;
    --depth-opacity: 0.555;
    --depth-layer: 45;
}

.hell-depth-21 {
    --depth-left: 44.5783%;
    --depth-top: 35.5089%;
    --depth-width: 3.8099%;
    --depth-height: 6.7405%;
    --depth-book-scale: 0.0733;
    --depth-edge: 0.59px;
    --depth-opacity: 0.510;
    --depth-layer: 40;
}

.hell-depth-22 {
    --depth-left: 51.6119%;
    --depth-top: 35.5089%;
    --depth-width: 3.8099%;
    --depth-height: 6.7405%;
    --depth-book-scale: 0.0733;
    --depth-edge: 0.59px;
    --depth-opacity: 0.510;
    --depth-layer: 40;
}

.hell-depth-23 {
    --depth-left: 45.8253%;
    --depth-top: 36.0819%;
    --depth-width: 2.9336%;
    --depth-height: 5.1902%;
    --depth-book-scale: 0.0564;
    --depth-edge: 0.45px;
    --depth-opacity: 0.465;
    --depth-layer: 35;
}

.hell-depth-24 {
    --depth-left: 51.2411%;
    --depth-top: 36.0819%;
    --depth-width: 2.9336%;
    --depth-height: 5.1902%;
    --depth-book-scale: 0.0564;
    --depth-edge: 0.45px;
    --depth-opacity: 0.465;
    --depth-layer: 35;
}

.hell-depth-25 {
    --depth-left: 46.7854%;
    --depth-top: 36.5230%;
    --depth-width: 2.2589%;
    --depth-height: 3.9965%;
    --depth-book-scale: 0.0434;
    --depth-edge: 0.40px;
    --depth-opacity: 0.420;
    --depth-layer: 30;
}

.hell-depth-26 {
    --depth-left: 50.9557%;
    --depth-top: 36.5230%;
    --depth-width: 2.2589%;
    --depth-height: 3.9965%;
    --depth-book-scale: 0.0434;
    --depth-edge: 0.40px;
    --depth-opacity: 0.420;
    --depth-layer: 30;
}

.hell-depth-27 {
    --depth-left: 47.5248%;
    --depth-top: 36.8627%;
    --depth-width: 1.7393%;
    --depth-height: 3.0773%;
    --depth-book-scale: 0.0334;
    --depth-edge: 0.40px;
    --depth-opacity: 0.375;
    --depth-layer: 25;
}

.hell-depth-28 {
    --depth-left: 50.7359%;
    --depth-top: 36.8627%;
    --depth-width: 1.7393%;
    --depth-height: 3.0773%;
    --depth-book-scale: 0.0334;
    --depth-edge: 0.40px;
    --depth-opacity: 0.375;
    --depth-layer: 25;
}

.hell-depth-29 {
    --depth-left: 48.0941%;
    --depth-top: 37.1243%;
    --depth-width: 1.3393%;
    --depth-height: 2.3695%;
    --depth-book-scale: 0.0258;
    --depth-edge: 0.40px;
    --depth-opacity: 0.330;
    --depth-layer: 20;
}

.hell-depth-30 {
    --depth-left: 50.5666%;
    --depth-top: 37.1243%;
    --depth-width: 1.3393%;
    --depth-height: 2.3695%;
    --depth-book-scale: 0.0258;
    --depth-edge: 0.40px;
    --depth-opacity: 0.330;
    --depth-layer: 20;
}

.hell-floor-path {
    position: absolute;
    left: 50%;
    top: var(--hell-vp-y);
    bottom: 0;
    z-index: 0;
    width: 88%;
    background:
        linear-gradient(90deg, rgba(215, 158, 74, 0.38) 0 4px, transparent 4px calc(100% - 4px), rgba(215, 158, 74, 0.38) calc(100% - 4px) 100%),
        linear-gradient(90deg, rgba(55, 10, 12, 0.2) 0 18%, rgba(119, 31, 27, 0.46) 18% 82%, rgba(55, 10, 12, 0.2) 82%),
        repeating-linear-gradient(180deg, rgba(37, 10, 10, 0.1) 0 18px, rgba(150, 48, 40, 0.12) 18px 20px),
        linear-gradient(180deg, rgba(60, 18, 18, 0.04), rgba(95, 24, 23, 0.48) 50%, rgba(37, 8, 9, 0.92));
    clip-path: polygon(49.55% 0, 50.45% 0, 100% 100%, 0 100%);
    box-shadow:
        inset 8px 0 0 rgba(64, 18, 16, 0.42),
        inset -8px 0 0 rgba(64, 18, 16, 0.42);
    transform: translateX(-50%);
    transform-origin: bottom center;
}

.hell-floor-path::before,
.hell-floor-path::after {
    display: none;
}

.hell-floor-path::before {
    left: 50%;
    transform: rotate(-16deg);
}

.hell-floor-path::after {
    left: 50%;
    transform: rotate(16deg);
}

.hell-lantern {
    position: absolute;
    left: 50%;
    top: var(--lamp-top);
    z-index: 42;
    width: var(--lamp-width);
    height: var(--lamp-height);
    border: 1px solid rgba(224, 214, 185, 0.28);
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(255, 252, 219, 0.92), rgba(238, 223, 174, 0.76) 62%, rgba(126, 105, 75, 0.28)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 30%, rgba(0, 0, 0, 0.1));
    box-shadow:
        0 0 var(--lamp-glow-size) rgba(238, 223, 174, var(--lamp-glow)),
        0 16px calc(var(--lamp-glow-size) * 1.5) rgba(224, 194, 126, var(--lamp-glow-soft));
    opacity: var(--lamp-opacity);
    transform: translateX(-50%);
    animation: hell-panel-flicker var(--lamp-flicker-speed) steps(1, end) infinite;
    animation-delay: var(--lamp-flicker-delay);
}

.hell-lantern::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 115%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-50%);
}

.hell-lantern-1 {
    --lamp-top: 6%;
    --lamp-width: 72px;
    --lamp-height: 16px;
    --lamp-glow-size: 42px;
    --lamp-glow: 0.34;
    --lamp-glow-soft: 0.16;
    --lamp-opacity: 0.96;
    --lamp-flicker-speed: 11s;
    --lamp-flicker-delay: -2s;
}

.hell-lantern-2 {
    --lamp-top: 14%;
    --lamp-width: 48px;
    --lamp-height: 11px;
    --lamp-glow-size: 28px;
    --lamp-glow: 0.22;
    --lamp-glow-soft: 0.09;
    --lamp-opacity: 0.72;
    --lamp-flicker-speed: 13s;
    --lamp-flicker-delay: -7s;
}

.hell-lantern-3 {
    --lamp-top: 21%;
    --lamp-width: 30px;
    --lamp-height: 7px;
    --lamp-glow-size: 18px;
    --lamp-glow: 0.16;
    --lamp-glow-soft: 0.06;
    --lamp-opacity: 0.54;
    --lamp-flicker-speed: 17s;
    --lamp-flicker-delay: -11s;
}

.hell-lantern-4 {
    --lamp-top: 28%;
    --lamp-width: 18px;
    --lamp-height: 4px;
    --lamp-glow-size: 12px;
    --lamp-glow: 0.12;
    --lamp-glow-soft: 0.04;
    --lamp-opacity: 0.38;
    --lamp-flicker-speed: 19s;
    --lamp-flicker-delay: -3s;
}

.hell-lantern-5 {
    --lamp-top: 32.5%;
    --lamp-width: 9px;
    --lamp-height: 2px;
    --lamp-glow-size: 6px;
    --lamp-glow: 0.065;
    --lamp-glow-soft: 0.02;
    --lamp-opacity: 0.24;
    --lamp-flicker-speed: 7s;
    --lamp-flicker-delay: -5s;
    z-index: 39;
}

.hell-hallway:hover,
.hell-hallway:focus-visible {
    border-color: rgba(216, 205, 162, 0.42);
    outline: none;
}

.hell-hall-label {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 45;
    margin: 0;
    border: 1px solid rgba(216, 205, 162, 0.18);
    border-radius: 999px;
    background: rgba(8, 7, 6, 0.54);
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

.hell-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 7px;
}

.hell-stats span {
    border: 1px solid rgba(216, 205, 162, 0.12);
    border-radius: 7px;
    background: rgba(3, 4, 4, 0.28);
    color: rgba(189, 201, 199, 0.7);
    padding: 6px 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.hell-stats strong {
    color: var(--desk-text);
}

.hell-bag-panel {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: hidden;
    padding: 12px;
}

.hell-panel-head {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(216, 205, 162, 0.12);
    padding-bottom: 10px;
}

.hell-panel-head h2 {
    font-size: 17px;
}

.hell-bag-slots {
    display: grid;
    gap: 10px;
}

.hell-die-button {
    width: 100%;
    min-height: 36px;
    margin-top: 12px;
    border: 1px solid rgba(176, 62, 54, 0.36);
    border-radius: 6px;
    background: rgba(92, 18, 18, 0.28);
    color: rgba(231, 236, 231, 0.76);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.hell-die-button:hover,
.hell-die-button:focus-visible,
.hell-die-button.is-armed {
    border-color: rgba(224, 58, 48, 0.78);
    background: #8f1f1b;
    color: #fff3ee;
    outline: none;
}

.hell-bag-slot {
    min-height: 96px;
    border: 1px solid rgba(216, 205, 162, 0.14);
    border-radius: 7px;
    background: rgba(3, 4, 4, 0.36);
    padding: 10px;
}

.hell-bag-title {
    display: block;
    margin: 7px 0;
    color: var(--desk-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hell-bag-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 6px;
}

.hell-page-button,
.hell-icon-button,
.hell-bag-actions button {
    min-height: 32px;
    border: 1px solid rgba(216, 205, 162, 0.18);
    border-radius: 6px;
    background: rgba(216, 205, 162, 0.07);
    color: var(--desk-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.hell-page-button:hover,
.hell-icon-button:hover,
.hell-bag-actions button:hover,
.hell-page-button:focus-visible,
.hell-icon-button:focus-visible,
.hell-bag-actions button:focus-visible {
    border-color: rgba(216, 205, 162, 0.42);
    background: rgba(216, 205, 162, 0.12);
    outline: none;
}

.hell-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.hell-reader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    place-items: center;
    padding: 20px;
}

.hell-reader.is-open {
    display: grid;
}

.hell-reader-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.hell-book {
    position: relative;
    z-index: 1;
    width: min(1220px, 96vw);
    height: min(800px, 92vh);
    height: min(800px, 92dvh);
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(216, 205, 162, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.14)),
        #d9d0b5;
    color: #1a1410;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
    padding: clamp(12px, 2vw, 22px);
}

.hell-book .hell-kicker,
.hell-book-head h2,
.hell-page-toolbar {
    color: #1a1410;
}

.hell-book-head {
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(54, 38, 24, 0.18);
    padding-bottom: 10px;
}

.hell-book-head h2 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.hell-icon-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    min-height: 34px;
    border-color: rgba(54, 38, 24, 0.22);
    background: rgba(54, 38, 24, 0.06);
    color: #1a1410;
}

.hell-page-toolbar {
    justify-content: start;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hell-page-toolbar .hell-page-button {
    border-color: rgba(54, 38, 24, 0.2);
    background: rgba(54, 38, 24, 0.06);
    color: #1a1410;
}

.hell-save-button {
    margin-left: auto;
}

.hell-book-layout {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
    min-height: 0;
}

.hell-turn-page {
    position: relative;
    min-height: 0;
    border: 1px solid rgba(54, 38, 24, 0.14);
    border-radius: 6px;
    background: rgba(54, 38, 24, 0.045);
    color: rgba(26, 20, 16, 0.72);
    cursor: pointer;
}

.hell-turn-page:hover,
.hell-turn-page:focus-visible {
    border-color: rgba(54, 38, 24, 0.3);
    background: rgba(54, 38, 24, 0.08);
    outline: none;
}

.hell-turn-page:disabled {
    cursor: not-allowed;
    opacity: 0.32;
}

.hell-turn-page span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.hell-turn-prev span {
    transform: translate(-32%, -50%) rotate(-45deg);
}

.hell-turn-next span {
    transform: translate(-68%, -50%) rotate(135deg);
}

.hell-spread {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(54, 38, 24, 0.18);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(95, 63, 33, 0.09), transparent 9%, transparent 91%, rgba(95, 63, 33, 0.09)),
        #c9bea1;
}

.hell-book-crease {
    position: relative;
    background:
        linear-gradient(90deg, rgba(54, 38, 24, 0.22), rgba(255, 248, 220, 0.18) 45%, rgba(54, 38, 24, 0.24));
    box-shadow:
        inset 7px 0 12px rgba(54, 38, 24, 0.18),
        inset -7px 0 12px rgba(54, 38, 24, 0.16);
}

.hell-page {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(95, 63, 33, 0.04), transparent 12%, transparent 88%, rgba(95, 63, 33, 0.055)),
        #ece5cc;
    color: #1d1712;
    padding: clamp(18px, 2.5vw, 34px);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(9px, 0.82vw, 12px);
    line-height: 1.38;
    letter-spacing: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-align: left;
}

.hell-page-left {
    box-shadow: inset -18px 0 24px rgba(54, 38, 24, 0.08);
}

.hell-page-right {
    box-shadow: inset 18px 0 24px rgba(54, 38, 24, 0.08);
}

.hell-page.is-blank {
    color: transparent;
    user-select: none;
}

.hell-highlight {
    border-radius: 2px;
    background: rgba(82, 132, 126, 0.36);
    box-shadow: 0 0 0 1px rgba(82, 132, 126, 0.12);
}

@media (max-width: 900px) {
    .hell-app {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        overflow: hidden;
    }

    .hell-bag-panel {
        position: static;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        max-height: 156px;
        overflow: hidden;
        padding: 9px;
    }

    .hell-panel-head {
        margin-bottom: 7px;
        padding-bottom: 6px;
    }

    .hell-panel-head h2 {
        font-size: 14px;
    }

    .hell-bag-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        min-height: 0;
    }

    .hell-bag-slot {
        min-height: 0;
        padding: 7px;
        overflow: hidden;
    }

    .hell-bag-title {
        margin: 4px 0;
        font-size: 11px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hell-bag-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .hell-bag-actions button {
        min-height: 28px;
        padding-inline: 4px;
        overflow: hidden;
        font-size: 8px;
        letter-spacing: 0.04em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hell-die-button {
        min-height: 30px;
        margin-top: 7px;
    }

    .hell-shelf-wrap {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        overflow: hidden;
        padding-bottom: 0;
    }

    .hell-flick {
        min-height: 0;
    }

    .hell-shelf {
        min-height: 0;
    }

    .hell-aisle {
        grid-template-columns: minmax(0, 1fr) minmax(126px, 0.42fr) minmax(0, 1fr);
        gap: 8px;
    }
}

@media (max-width: 620px) {
    .hell-page-shell {
        width: min(96vw, 1320px);
        padding-top: 12px;
    }

    .hell-stage-head,
    .hell-top-nav,
    .hell-book-head {
        display: grid;
    }

    .hell-top-nav {
        gap: 6px;
        padding: 8px 10px;
    }

    .hell-top-nav .page-label {
        max-width: 100%;
        margin-right: 0;
    }

    .hell-stage {
        padding: 8px;
    }

    .hell-stage-head {
        gap: 5px;
        margin-bottom: 5px;
    }

    .hell-kicker,
    .hell-panel-head span,
    .hell-floor-id,
    .hell-bag-meta {
        font-size: 9px;
    }

    h1 {
        font-size: 1.05rem;
        line-height: 1.12;
    }

    .hell-floor-id {
        max-width: none;
        text-align: left;
    }

    .hell-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin-bottom: 5px;
    }

    .hell-stats span {
        padding: 5px 4px;
        font-size: 8px;
        letter-spacing: 0.02em;
        line-height: 1.15;
    }

    .hell-stats strong {
        display: block;
        margin-bottom: 1px;
        font-size: 11px;
    }

    .hell-reader {
        padding: 10px;
    }

    .hell-book-layout {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
        overflow: hidden;
    }

    .hell-spread {
        grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
        min-width: 0;
    }

    .hell-aisle {
        grid-template-columns: minmax(0, 1fr) minmax(94px, 0.38fr) minmax(0, 1fr);
        gap: 5px;
    }

    .hell-shelf {
        border-width: 5px;
    }

    .hell-shelf-row {
        border-bottom-width: 5px;
        padding: 3px 3px 0;
    }

    .hell-book-spine::before {
        top: 7px;
    }

    .hell-book-spine::after {
        bottom: 8px;
    }

    .hell-turn-page {
        min-height: 390px;
        min-width: 38px;
    }

    .hell-page {
        padding: 12px;
        font-size: clamp(6px, 1.55vw, 8px);
        line-height: 1.28;
    }
}

/* Phone shelves retain every book without squeezing the corridor between them. */
@media (max-width: 700px) {
    body { height: auto; overflow: auto; }
    .hell-page-shell { height: auto; width: calc(100% - 24px); padding: 12px 0 24px; }
    .hell-app { height: auto; grid-template-rows: auto auto; overflow: visible; }
    .hell-stage { height: auto; padding: 12px; gap: 12px; }
    .hell-stage-head { display: grid; gap: 8px; }
    h1 { font-size: 1.4rem; line-height: 1.2; }
    .hell-kicker, .hell-floor-id, .hell-panel-head span, .hell-bag-meta { font-size: 11px; }
    .hell-floor-id { max-width: none; text-align: left; }
    .hell-top-nav .page-label { white-space: normal; font-size: 11px; }
    .hell-stats span { font-size: 10px; padding: 8px 4px; }
    .hell-stats strong { font-size: 15px; }
    .hell-shelf-wrap { height: auto; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; overflow: visible; }
    .hell-flick { grid-row: 1; min-height: 44px; }
    .hell-flick-left { grid-column: 1; }
    .hell-flick-right { grid-column: 3; }
    .hell-aisle { display: contents; }
    .hell-hallway { grid-row: 1; grid-column: 2; min-height: 44px; background: rgba(8, 7, 6, 0.58); border: 1px solid rgba(216, 205, 162, 0.2); }
    .hell-hallway > :not(.hell-hall-label), .hell-hallway::before, .hell-hallway::after { display: none; }
    .hell-hall-label { position: static; transform: none; align-self: center; padding: 0; border: 0; background: none; font-size: 12px; }
    .hell-shelf { grid-column: 1 / -1; grid-template-rows: repeat(8, 76px); border-width: 6px; }
    .hell-shelf-left { grid-row: 2; }
    .hell-shelf-right { grid-row: 3; }
    .hell-shelf-wrap::after { content: "Swipe each shelf row to browse more books"; grid-column: 1 / -1; grid-row: 2; font-size: 12px; color: var(--desk-text-soft); }
    .hell-shelf-left { grid-row: 3; }
    .hell-shelf-right { grid-row: 4; }
    .hell-shelf-row { overflow-x: auto; overflow-y: hidden; padding: 4px 4px 0; border-bottom-width: 6px; }
    .hell-book-spine { flex: 1 0 28px; min-width: 28px; max-height: 88%; }
    .hell-bag-panel { max-height: none; padding: 12px; }
    .hell-panel-head h2 { font-size: 20px; }
    .hell-bag-slots { grid-template-columns: 1fr; }
    .hell-bag-slot { min-height: 72px; padding: 12px; }
    .hell-bag-title { font-size: 14px; }
    .hell-bag-actions button, .hell-page-button, .hell-die-button { font-size: 12px; min-height: 44px; }
    .hell-book { width: 100%; height: 94dvh; max-height: 94dvh; padding: 12px; }
    .hell-book-head { padding-right: 36px; }
    .hell-book-head h2 { font-size: 20px; overflow-wrap: anywhere; }
    .hell-book-layout { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: minmax(0, 1fr) 44px; gap: 8px; }
    .hell-spread { grid-row: 1; grid-column: 1 / -1; display: block; overflow: auto; }
    .hell-book-crease, .hell-page.is-blank { display: none; }
    .hell-page { font-size: 14px; line-height: 1.5; padding: 16px; overflow: visible; min-height: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
    .hell-page-right { border-top: 1px solid rgba(54, 38, 24, 0.2); }
    .hell-turn-page { grid-row: 2; min-height: 44px; }
    .hell-turn-prev { grid-column: 1; }
    .hell-turn-next { grid-column: 3; }
}
