:root {
    --ink: #111;
    --paper: #fffaf0;
    --panel: #fff;
    --yellow: #ffe35c;
    --orange: #ff8c24;
    --deep-orange: #f05a1a;
    --red: #e9232e;
    --logo-red: #c91322;
    --shadow: rgba(17, 17, 17, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 84% 16%, rgba(233, 35, 46, 0.24) 0 84px, transparent 86px),
        radial-gradient(circle at 10% 74%, rgba(255, 140, 36, 0.28) 0 110px, transparent 112px),
        radial-gradient(circle at 18px 18px, rgba(17, 17, 17, 0.1) 2px, transparent 3px) 0 0 / 34px 34px,
        linear-gradient(135deg, #fff 0%, #fff0b8 36%, #ffd2aa 68%, #ffe2e4 100%);
    font-family: "Trebuchet MS", "Arial Black", Arial, sans-serif;
}

body.reader-open,
body.modal-open {
    overflow: hidden;
}

button {
    font: inherit;
}

.site-header {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 28px 18px 10px;
}

.brand {
    display: block;
    width: min(860px, 92vw);
    transform: rotate(-1deg);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 0 rgba(17, 17, 17, 0.1));
}

.site-cart {
    position: absolute;
    top: 26px;
    right: max(18px, calc((100vw - 1180px) / 2));
    display: grid;
    place-items: center;
    width: 72px;
    height: 66px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.site-cart .cart-icon {
    display: block;
    width: 48px;
    height: 38px;
    color: initial;
    background: linear-gradient(180deg, var(--yellow), var(--orange));
    border-top: 0;
    border-radius: 5px 5px 12px 12px;
    font-size: 0;
}

.site-cart .cart-icon::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 4px;
    z-index: auto;
    width: 34px;
    height: 16px;
    border-top: 4px solid var(--ink);
    border-left: 4px solid var(--ink);
    transform: skewX(-18deg);
}

.site-cart .cart-icon::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: -13px;
    left: 5px;
    z-index: auto;
    width: auto;
    height: 10px;
    background:
        radial-gradient(circle, var(--ink) 0 5px, transparent 6px) left center / 16px 10px no-repeat,
        radial-gradient(circle, var(--ink) 0 5px, transparent 6px) right center / 16px 10px no-repeat;
    border: 0;
    transform: none;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    color: #fff;
    background: var(--red);
    border: 3px solid var(--ink);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
}

.site-cart:hover .cart-icon,
.site-cart:focus-visible .cart-icon {
    transform: translate(2px, 2px);
}

.site-cart:focus-visible {
    outline: 3px solid var(--logo-red);
    outline-offset: 2px;
}

.site-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 56px;
}

.intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.kicker,
.reader-eyebrow,
.comic-label {
    margin: 0;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker {
    display: inline-block;
    padding: 7px 14px;
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--logo-red));
    border: 3px solid var(--ink);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--ink);
}

.intro h1 {
    position: relative;
    margin: 16px 0 0;
    padding: 18px 24px 20px;
    color: var(--ink);
    background: #fff;
    border: 5px solid var(--ink);
    border-radius: 8px;
    box-shadow: 8px 8px 0 var(--orange), 14px 14px 0 var(--logo-red);
    font-size: clamp(2rem, 4.3vw, 3.9rem);
    line-height: 1.02;
    text-shadow: 2px 2px 0 var(--yellow);
}

.intro h1::after {
    content: "";
    position: absolute;
    right: 14%;
    bottom: -24px;
    width: 34px;
    height: 34px;
    background: #fff;
    border-right: 5px solid var(--ink);
    border-bottom: 5px solid var(--ink);
    transform: rotate(45deg);
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
    gap: 24px;
    justify-content: center;
}

.comic-card {
    min-width: 0;
}

.comic-open {
    display: grid;
    width: 100%;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-align: left;
    background: var(--panel);
    border: 5px solid var(--ink);
    border-radius: 8px;
    box-shadow: 9px 9px 0 var(--orange), 15px 15px 0 var(--ink);
    cursor: pointer;
    transform: rotate(-0.7deg);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.comic-open:hover,
.comic-open:focus-visible {
    box-shadow: 5px 5px 0 var(--red), 10px 10px 0 var(--ink);
    outline: 0;
    transform: translate(4px, 4px) rotate(0.3deg);
}

.comic-soon {
    cursor: default;
    filter: grayscale(0.35);
    opacity: 0.64;
    transform: rotate(0.8deg);
}

.comic-soon:hover {
    box-shadow: 9px 9px 0 var(--orange), 15px 15px 0 var(--ink);
    transform: rotate(0.8deg);
}

.comic-cover-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 5px solid var(--ink);
    background: #fff;
}

.comic-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comic-soon-cover {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 26%, rgba(255, 227, 92, 0.9) 0 46px, transparent 48px),
        linear-gradient(135deg, #fff 0%, #ffd8a8 52%, #f7a1a8 100%);
}

.comic-soon-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    color: var(--logo-red);
    background: #fff;
    border: 5px solid var(--ink);
    border-radius: 50%;
    box-shadow: 7px 7px 0 var(--orange);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.comic-meta {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #fff3ca 100%);
}

.comic-title {
    color: var(--logo-red);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 0 var(--yellow);
}

.comic-description {
    font-size: 1rem;
    line-height: 1.35;
}

.follow-note {
    margin-top: 4px;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.social-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-badge {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.social-tiktok {
    position: relative;
    background: #111;
    transform: rotate(-6deg);
}

.tiktok-note {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.tiktok-note::before,
.tiktok-note::after {
    content: "♪";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.tiktok-note::before {
    color: #18e0d0;
    transform: translate(-4px, 3px);
}

.tiktok-note::after {
    color: #ff2c6d;
    transform: translate(4px, -3px);
}

.social-youtube {
    background: var(--red);
    border-radius: 12px;
    transform: rotate(5deg);
}

.shop {
    margin-top: 54px;
}

.shop-heading {
    margin-bottom: 20px;
    text-align: center;
}

.shop-heading h2 {
    margin: 14px 0 0;
    color: var(--logo-red);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    text-shadow: 3px 3px 0 var(--yellow), 5px 5px 0 var(--ink);
}

.shop-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 28px;
    padding: 16px 20px;
    width: min(980px, 100%);
    background: #fff;
    border: 5px solid var(--ink);
    border-radius: 8px;
    box-shadow: 8px 8px 0 var(--orange), 13px 13px 0 var(--logo-red);
}

.shop-promo p {
    margin: 0;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.promo-burst {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    color: #fff;
    background: var(--red);
    border: 4px solid var(--ink);
    border-radius: 50%;
    box-shadow: 5px 5px 0 var(--ink);
    font-size: 1rem;
    font-weight: 900;
    transform: rotate(-9deg);
}

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

.product-card {
    display: grid;
    align-content: start;
    min-width: 0;
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 7px 7px 0 var(--ink);
    overflow: hidden;
}

.product-open {
    display: grid;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 14px;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.product-open:hover,
.product-open:focus-visible {
    outline: 0;
    background: #fff8d7;
}

.product-title {
    color: var(--logo-red);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 0 var(--yellow);
}

.product-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 150px;
    overflow: hidden;
    padding: 10px;
    background: linear-gradient(135deg, #fff8d7, #ffd2aa);
    border-radius: 6px;
}

.product-visual::before,
.shop-product::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 50%, rgba(233, 35, 46, 0.18) 0 18px, transparent 19px),
        repeating-linear-gradient(-12deg, rgba(17, 17, 17, 0.08) 0 8px, transparent 8px 16px),
        linear-gradient(135deg, #fff8d7, #ffd2aa);
    animation: comic-loader 900ms linear infinite;
    opacity: 0;
    pointer-events: none;
}

.product-visual.is-loading::before {
    opacity: 1;
}

.product-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(86%, 180px);
    max-height: 132px;
    object-fit: contain;
}

.shop-modal {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: none;
    padding: 24px;
}

.shop-modal.is-open {
    display: grid;
    place-items: center;
}

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 26;
    display: none;
    padding: 24px;
}

.cart-modal.is-open {
    display: grid;
    place-items: center;
}

.cart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.76);
}

.cart-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(760px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--paper);
    border: 6px solid var(--ink);
    border-radius: 8px;
    box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.38);
}

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 27;
    display: none;
    padding: 24px;
}

.order-modal.is-open {
    display: grid;
    place-items: center;
}

.order-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(620px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--paper);
    border: 6px solid var(--ink);
    border-radius: 8px;
    box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.38);
}

.cart-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-bottom: 5px solid var(--ink);
}

.cart-modal-topbar h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
    line-height: 1;
}

.shop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.76);
}

.shop-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1400px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--paper);
    border: 6px solid var(--ink);
    border-radius: 8px;
    box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.38);
}

.shop-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-bottom: 5px solid var(--ink);
}

.shop-modal-topbar h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
    line-height: 1;
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    min-height: 0;
    overflow: auto;
    padding: 24px;
}

.shop-product {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 46px;
    gap: 12px;
    min-height: 0;
    max-height: calc(100vh - 190px);
    padding: 14px;
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 6px 6px 0 var(--ink);
    overflow: hidden;
}

.shop-product::before {
    grid-row: 1;
    opacity: 0;
    pointer-events: none;
}

.shop-product.is-loading::before {
    opacity: 1;
}

.shop-product-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden;
}

.shop-product-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

@keyframes comic-loader {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 0, 36px 0, 0 0;
    }
}

.product-buy {
    position: relative;
    z-index: 2;
    justify-self: stretch;
    align-self: end;
    margin-top: 2px;
    padding: 10px 12px;
    min-height: 42px;
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--logo-red));
    border: 3px solid var(--ink);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-buy:hover,
.product-buy:focus-visible {
    box-shadow: 2px 2px 0 var(--ink);
    outline: 0;
    transform: translate(2px, 2px);
}

.product-buy:disabled,
.quantity-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.cart-items {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

.cart-content {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}

.cart-order-action {
    padding: 0 20px 20px;
}

.order-button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--logo-red));
    border: 3px solid var(--ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--ink);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.order-button:hover,
.order-button:focus-visible {
    box-shadow: 2px 2px 0 var(--ink);
    outline: 0;
    transform: translate(3px, 3px);
}

.order-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.order-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.order-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.order-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 7px;
    font: inherit;
}

.order-form input:focus {
    outline: 3px solid var(--orange);
    outline-offset: 1px;
}

.order-message {
    min-height: 1.2em;
    margin: 0;
    color: var(--logo-red);
    font-weight: 900;
    line-height: 1.2;
}

.cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--ink);
}

.cart-item-image {
    display: block;
    width: 112px;
    height: 92px;
    object-fit: contain;
}

.cart-item-info {
    display: grid;
    gap: 14px;
}

.cart-item h3 {
    margin: 0;
    color: var(--logo-red);
    font-size: 1.15rem;
    line-height: 1.1;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--ink);
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 7px;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.quantity-button:hover,
.quantity-button:focus-visible {
    box-shadow: 1px 1px 0 var(--ink);
    outline: 0;
    transform: translate(2px, 2px);
}

.quantity-button.is-remove {
    background: linear-gradient(180deg, var(--orange), var(--red));
}

.mini-cart-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--yellow);
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 50%;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.mini-cart-icon::before {
    content: "Q";
    position: relative;
    z-index: 1;
}

.mini-cart-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 22px;
    height: 3px;
    background: var(--red);
    border: 1px solid var(--ink);
    transform: translate(-50%, -50%) rotate(-38deg);
}

.quantity-amount {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 38px;
    padding: 0 6px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 7px;
    font-weight: 900;
}

.cart-empty {
    margin: 0;
    padding: 36px 18px;
    color: var(--logo-red);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
}

.cart-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(360px, calc(100% - 32px));
    padding: 14px 16px;
    color: var(--ink);
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 7px 7px 0 var(--orange), 12px 12px 0 var(--logo-red);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) rotate(-1deg) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(-1deg) scale(1);
}

.cart-toast .cart-icon {
    display: block;
    width: 58px;
    height: 46px;
    color: initial;
    background: linear-gradient(180deg, var(--yellow), var(--orange));
    border-top: 0;
    border-radius: 5px 5px 12px 12px;
    font-size: 0;
}

.cart-toast .cart-icon::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 6px;
    z-index: auto;
    width: 42px;
    height: 16px;
    border-top: 4px solid var(--ink);
    border-left: 4px solid var(--ink);
    transform: skewX(-18deg);
}

.cart-toast .cart-icon::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: -13px;
    left: 7px;
    z-index: auto;
    width: auto;
    height: 10px;
    background:
        radial-gradient(circle, var(--ink) 0 5px, transparent 6px) left center / 16px 10px no-repeat,
        radial-gradient(circle, var(--ink) 0 5px, transparent 6px) right center / 16px 10px no-repeat;
    border: 0;
    transform: none;
}

.cart-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    color: var(--yellow);
    background: var(--ink);
    border: 4px solid var(--ink);
    border-radius: 50%;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.cart-icon::before {
    content: "Q";
    position: relative;
    z-index: 1;
}

.cart-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 52px;
    height: 6px;
    background: var(--red);
    border: 2px solid var(--ink);
    transform: translate(-50%, -50%) rotate(-38deg);
}

.cart-burst {
    position: absolute;
    top: -22px;
    right: -12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--red);
    border: 3px solid var(--ink);
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 14px 18px;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, var(--logo-red), var(--deep-orange));
    border: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 6px 6px 0 var(--ink);
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.3;
}

.reader {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    padding: 24px;
}

.reader.is-open {
    display: grid;
    place-items: center;
}

.reader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.76);
}

.reader-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--paper);
    border: 6px solid var(--ink);
    border-radius: 8px;
    box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.38);
}

.reader-topbar,
.reader-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-bottom: 5px solid var(--ink);
}

.reader-footer {
    border-top: 5px solid var(--ink);
    border-bottom: 0;
    font-size: 0.95rem;
    font-weight: 900;
}

.reader-topbar h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
    line-height: 1;
}

.reader-close,
.reader-nav {
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 4px solid var(--ink);
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
}

.reader-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.reader-close:hover,
.reader-close:focus-visible,
.reader-nav:hover,
.reader-nav:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--logo-red));
    outline: 0;
}

.reader-nav:disabled {
    color: rgba(17, 17, 17, 0.34);
    background: #f0f0f0;
    box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.34);
    cursor: default;
    opacity: 0.48;
}

.reader-nav:disabled:hover {
    color: rgba(17, 17, 17, 0.34);
    background: #f0f0f0;
}

.flipchart {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 16px;
    min-height: 0;
    padding: 18px;
    background:
        linear-gradient(90deg, transparent 0 49%, rgba(17, 17, 17, 0.08) 49% 51%, transparent 51%),
        #fffef8;
}

.reader-nav {
    align-self: center;
    width: 52px;
    height: 74px;
    border-radius: 8px;
    font-size: 3rem;
    line-height: 1;
}

.page-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 5px solid var(--ink);
    background: #fff;
    box-shadow: inset 0 12px 0 rgba(17, 17, 17, 0.08);
    perspective: 1400px;
    perspective-origin: top center;
    touch-action: pan-y;
}

.page-stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 16px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 16px, var(--orange) 16px 32px);
    border-bottom: 4px solid var(--ink);
}

.page-button {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: min(62vh, 720px);
    padding: 22px 12px 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.reader-watermark {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 5;
    color: var(--red);
    font-size: clamp(1.1rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 var(--ink);
}

.comic-page {
    display: block;
    align-self: center;
    justify-self: center;
    max-width: 100%;
    max-height: calc(100vh - 240px);
    object-fit: contain;
    transform-origin: top center;
    backface-visibility: hidden;
    will-change: transform, filter, opacity;
}

.sheet {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 22px;
    display: grid;
    place-items: center;
    width: calc(100% - 24px);
    height: calc(100% - 34px);
    overflow: hidden;
    transform-origin: top center;
    backface-visibility: hidden;
    will-change: transform, filter, opacity;
}

.sheet .comic-page {
    max-height: 100%;
}

.sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 16%, transparent 84%, rgba(17, 17, 17, 0.1)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%, rgba(17, 17, 17, 0.08));
    mix-blend-mode: multiply;
}

.sheet::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 3;
    width: 18%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
    opacity: 0;
    transform: translateX(-50%);
    animation: sheet-sheen 760ms ease both;
}

.sheet.is-incoming {
    z-index: 3;
    filter: drop-shadow(0 24px 14px rgba(17, 17, 17, 0.28));
    animation: sheet-drop 760ms cubic-bezier(0.22, 0.72, 0.26, 1) both;
}

.comic-page.is-leaving {
    animation: old-sheet 760ms ease both;
}

@keyframes sheet-drop {
    0% {
        opacity: 0.9;
        transform: translateY(-108%) rotateX(72deg) scaleY(0.92);
    }

    18% {
        opacity: 0.98;
        transform: translateY(-58%) rotateX(45deg) scaleY(0.955);
    }

    34% {
        opacity: 1;
        transform: translateY(-25%) rotateX(24deg) scaleY(0.982);
    }

    50% {
        transform: translateY(-6%) rotateX(8deg) scaleY(0.996);
    }

    64% {
        transform: translateY(-1.2%) rotateX(2deg) scaleY(1);
    }

    82% {
        transform: translateY(-0.25%) rotateX(0.35deg) scaleY(1);
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 4px 4px rgba(17, 17, 17, 0.12));
        transform: translateY(0) rotateX(0) scaleY(1);
    }
}

@keyframes old-sheet {
    0% {
        transform: translateY(0) rotateX(0) scaleY(1);
    }

    40% {
        filter: brightness(0.96) saturate(0.98);
        transform: translateY(1%) rotateX(-1deg) scaleY(0.999);
    }

    72% {
        filter: brightness(0.92) saturate(0.96);
        transform: translateY(3%) rotateX(-2.5deg) scaleY(0.996);
    }

    100% {
        filter: brightness(0.88) saturate(0.95);
        transform: translateY(4.5%) rotateX(-3.5deg) scaleY(0.994);
    }
}

@keyframes sheet-sheen {
    0%,
    20% {
        opacity: 0;
        transform: translateX(-170%);
    }

    48% {
        opacity: 0.42;
    }

    72% {
        opacity: 0.12;
    }

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

@media (max-width: 720px) {
    .site-cart {
        top: 14px;
        right: 8px;
        transform: scale(0.86);
        transform-origin: top right;
    }

    .site-header {
        padding-top: 18px;
    }

    .site-main {
        width: min(100% - 20px, 1180px);
        padding-bottom: 28px;
    }

    .intro h1 {
        font-size: 2.3rem;
        padding: 14px 16px 16px;
        box-shadow: 5px 5px 0 var(--orange), 9px 9px 0 var(--logo-red);
        text-shadow: 1px 1px 0 var(--yellow);
    }

    .comic-grid {
        grid-template-columns: 1fr;
    }

    .shop {
        margin-top: 40px;
    }

    .shop-heading h2 {
        font-size: 2.25rem;
        text-shadow: 2px 2px 0 var(--yellow), 4px 4px 0 var(--ink);
    }

    .shop-promo {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
        text-align: center;
    }

    .shop-promo p {
        white-space: normal;
    }

    .promo-burst {
        width: 74px;
        height: 74px;
        font-size: 0.9rem;
    }

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

    .shop-modal {
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }

    .cart-modal {
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }

    .cart-modal-panel {
        width: 100%;
        height: 100vh;
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: none;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .order-modal {
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }

    .order-modal-panel {
        width: 100%;
        height: 100vh;
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: none;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cart-modal-topbar {
        padding: 12px;
    }

    .cart-items {
        padding: 12px;
    }

    .cart-order-action {
        padding: 0 12px 12px;
    }

    .order-form {
        align-content: start;
        gap: 8px;
        padding: 16px 12px;
    }

    .order-form label {
        gap: 7px;
    }

    .order-form input {
        min-height: 46px;
        height: 46px;
    }

    .cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .cart-item-image {
        width: 88px;
        height: 74px;
    }

    .shop-modal-panel {
        width: 100%;
        height: 100vh;
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: none;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shop-modal-topbar {
        padding: 12px;
    }

    .shop-products {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .shop-product {
        grid-template-rows: minmax(0, min(56dvh, 430px)) 46px;
        max-height: none;
        gap: 10px;
        padding: 12px;
    }

    .shop-category-breloki .shop-product {
        display: flex;
        flex-direction: column;
        min-height: calc((100vw - 56px) * 0.75 + 88px);
    }

    .shop-category-breloki .shop-product-visual {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .shop-category-breloki .shop-product-visual img {
        height: 100%;
    }

    .shop-category-breloki .product-buy {
        flex: 0 0 46px;
        width: 100%;
    }

    .cart-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }

    .reader {
        align-items: stretch;
        min-height: 100dvh;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }

    .reader-panel {
        width: 100%;
        height: 100vh;
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: none;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .reader-topbar,
    .reader-footer {
        padding: 12px;
    }

    .reader-footer {
        font-size: 0.82rem;
    }

    .flipchart {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 10px;
    }

    .reader-nav {
        display: none;
    }

    .page-button {
        min-height: 0;
        height: 100%;
        padding: 20px 8px 8px;
    }

    .reader-watermark {
        right: 14px;
        bottom: 12px;
        font-size: 1.15rem;
    }

    .comic-page {
        max-height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}
