.home-frame {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.4rem;
    isolation: isolate;
    overflow: hidden;
}

.home-frame .app-header {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-top: 2.1rem;
    padding-bottom: 0;
    border-bottom: 0;
    text-align: center;
}

.home-frame .app-header h1 {
    font-size: clamp(4rem, 7vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.home-frame .app-header p {
    font-size: 1.15rem;
}

.home-frame .app-meta,
.home-frame .app-back {
    display: none;
}

.home-panel {
    display: grid;
    position: relative;
    z-index: 1;
    align-content: start;
    justify-items: center;
    gap: 1rem;
    min-height: 0;
    padding-top: 0.7rem;
}

.comic-panel {
    position: relative;
    width: min(560px, 42vw);
    min-height: min(620px, 60vh);
    padding: 1.35rem 1.5rem 5.1rem;
    border: 1px solid #8a8a8a;
    background: #d7d7d7;
    box-shadow: inset 1px 1px 0 #f7f7f7, inset -1px -1px 0 #b3b3b3;
}

.comic-grid {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
}

.comic-card {
    width: 100%;
    padding: 0.08rem 0;
    border: 0;
    background: transparent;
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    font-weight: 400;
    text-align: center;
    color: #111111 !important;
    opacity: 1;
    box-shadow: none;
    line-height: 1.1;
}

.comic-card:hover,
.comic-card:focus-visible {
    text-decoration: underline;
}

.home-green {
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 5.9rem;
    height: 4.2rem;
    background: #66ff00;
    transform: translateX(-50%);
}

.home-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-red,
.home-black {
    position: absolute;
}

.home-red {
    left: 2.2rem;
    bottom: 2.3rem;
    width: 11.4rem;
    height: 12.2rem;
    background: #ff120d;
    clip-path: polygon(22% 0, 100% 34%, 70% 100%, 0 100%, 0 50%);
    transform: rotate(-18deg);
}

.home-black {
    right: 3rem;
    bottom: 3rem;
    width: 15.5rem;
    height: 15.5rem;
    background: #000000;
}

@media (max-width: 900px) {
    .home-frame .app-header {
        align-items: center;
    }

    .comic-panel {
        width: min(420px, 100%);
        min-height: 460px;
        padding: 1rem 1rem 4.5rem;
    }

    .home-decor {
        display: none;
    }
}
