.home-page {
    width: 100%;
    min-height: 100vh;
    margin-top: -100px;
    overflow: hidden;
}

body.page-home {
    background: linear-gradient(
        to bottom,
        #fff8e8 0,
        #fff8e8 100vh,
        #FFFFF4 100vh,
        #FFFFF4 100%
    );
}

.home-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 76vh;
    padding: 150px 40px 128px;
    overflow: visible;
}

.home-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 860px;
    text-align: center;
    font-size: clamp(34px, 3.1vw, 58px);
    line-height: 1.25;
}

.home-cta {
    position: absolute;
    right: clamp(190px, 14vw, 300px);
    bottom: -106px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #080808;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-cta:hover,
.home-cta:focus-visible {
    transform: translateY(-12px);
    box-shadow: 0 28px 38px rgba(0, 0, 0, 0.24);
}

.home-cta-text,
.home-cta-subtext {
    display: block;
}

.home-cta-subtext {
    font-size: 22px;
}

.home-character {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.home-character-one {
    left: 12%;
    top: 30%;
    width: clamp(190px, 13vw, 290px);
    transform: rotate(-12deg);
}

.home-character-two {
    left: 18%;
    bottom: 9%;
    width: clamp(175px, 11.8vw, 260px);
    transform: rotate(-8deg);
}

.home-character-three {
    left: 47%;
    top: 8%;
    width: clamp(165px, 10.5vw, 230px);
    transform: rotate(10deg);
}

.home-character-four {
    right: 31%;
    bottom: 11%;
    width: clamp(190px, 12.7vw, 280px);
    transform: rotate(7deg);
}

.home-character-five {
    right: 8%;
    top: 28%;
    width: clamp(220px, 14.5vw, 325px);
    transform: rotate(4deg);
}

.home-start {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 20px;
    min-height: 72vh;
    padding: 104px 64px 96px;
    background: transparent;
}

.home-start-copy {
    width: min(840px, 100%);
    transform: translate(-56px, 34px);
}

.home-start h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 2.8vw, 50px);
    line-height: 1.15;
}

.home-start p {
    margin: 0;
    color: #555;
    font-size: clamp(20px, 1.45vw, 27px);
}

.home-actions {
    position: relative;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: min(510px, 44vw);
    min-height: 150px;
    margin-top: 70px;
    padding: 32px 48px;
    border: 3px solid #ffd8bd;
    border-radius: 24px;
    background: #fffdf5;
    color: #2b241f;
    text-align: center;
    transform: translateX(90px);
}

.home-actions::before {
    position: absolute;
    left: 48%;
    bottom: -138px;
    width: 110px;
    height: 100px;
    content: "";
    background:
        radial-gradient(circle 17px at 82px 18px, #ffe3cc 96%, transparent 100%),
        radial-gradient(circle 13px at 51px 53px, #ffe3cc 96%, transparent 100%),
        radial-gradient(circle 9px at 22px 84px, #ffe3cc 96%, transparent 100%);
    transform: translateX(-50%);
}

.home-speech-text {
    position: relative;
    z-index: 1;
    margin: 0;
    color: inherit;
    font-size: clamp(20px, 1.55vw, 27px);
    line-height: 1.45;
    text-decoration: none;
}

.home-actions-locked {
    text-decoration: none;
}

.home-actions-locked span {
    position: relative;
    z-index: 1;
    font-size: clamp(20px, 1.7vw, 28px);
}

.home-feature-character {
    position: relative;
    margin-top: 96px;
    transform: translateX(-40px);
}

.home-feature-character img {
    display: block;
    width: min(300px, 38vw);
    height: auto;
}

.home-feature-character-guest img {
    width: min(320px, 42vw);
}

.home-feature-character-guest {
    margin-top: 96px;
}

.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tutorial-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tutorial-highlight {
    position: fixed;
    z-index: 1001;
    border: 3px solid #ffd15c;
    border-radius: 18px;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.68),
        0 0 28px rgba(255, 209, 92, 0.95);
    pointer-events: none;
    transition: left 0.24s ease, top 0.24s ease, width 0.24s ease, height 0.24s ease, border-radius 0.24s ease;
}

.tutorial-spotlight {
    position: fixed;
    z-index: 1002;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: left 0.24s ease, top 0.24s ease, width 0.24s ease, height 0.24s ease;
}

.tutorial-spotlight.has-image {
    overflow: visible;
}

.tutorial-spotlight > * {
    width: 100%;
    height: 100%;
}

.tutorial-spotlight img {
    display: block;
    max-width: none;
}

.tutorial-spotlight-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border: 4px solid #ffd15c;
    border-radius: 14px;
    background: rgba(255, 248, 232, 0.98);
    box-shadow: 0 0 0 2px rgba(255, 145, 63, 0.55), 0 0 24px rgba(255, 206, 103, 0.75);
}

.tutorial-spotlight.is-circle-image .tutorial-spotlight-image {
    border-radius: 50%;
}

.tutorial-spotlight.no-image-border .tutorial-spotlight-image {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tutorial-spotlight a {
    display: grid;
    place-items: center;
    color: inherit;
    text-decoration: none;
}

.tutorial-spotlight.is-speech {
    filter: none;
}

.tutorial-spotlight--speech {
    border-color: #ffd15c;
    background: #fffdf5;
    box-shadow: 0 0 16px rgba(255, 209, 92, 0.48);
}

.tutorial-spotlight--speech::before {
    content: none;
}

.tutorial-live-target {
    z-index: 1002;
    pointer-events: none;
    filter: drop-shadow(0 0 18px rgba(255, 209, 92, 0.76));
}

.tutorial-spotlight:not(.has-image):not(.is-hidden):not(.is-speech) {
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255, 209, 92, 0.48);
}

.tutorial-live-target--ring {
    box-shadow:
        0 0 0 3px #ffd15c,
        0 0 16px rgba(255, 209, 92, 0.55) !important;
}

.tutorial-highlight.is-circle {
    border-radius: 999px;
}

.tutorial-highlight.is-hidden,
.tutorial-spotlight.is-hidden {
    opacity: 0;
}

.tutorial-card {
    position: fixed;
    z-index: 1003;
    width: min(var(--tutorial-card-width, 420px), calc(100vw - 32px));
    padding: 24px 28px 22px;
    border-radius: 18px;
    background: rgba(255, 250, 238, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    color: #1b1b1b;
    cursor: pointer;
    transition: left 0.24s ease, top 0.24s ease;
}

.tutorial-card.is-large {
    padding: 30px 34px 28px;
}

.tutorial-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.tutorial-card.is-large strong {
    margin-bottom: 14px;
    font-size: 29px;
}

.tutorial-card p {
    margin: 0;
    color: #5c5144;
    font-size: 18px;
    line-height: 1.62;
}

.tutorial-card.is-large p {
    font-size: 21px;
    line-height: 1.65;
}

.tutorial-card span {
    display: block;
    margin-top: 15px;
    color: #f28a33;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
}

.tutorial-card.is-large span {
    margin-top: 18px;
    font-size: 17px;
}

.tutorial-finale {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1004;
    width: min(920px, calc(100vw - 40px));
    padding: 78px 84px 72px;
    border-radius: 42px;
    background: rgba(255, 250, 238, 0.98);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    color: #1b1b1b;
    text-align: center;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.tutorial-finale.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tutorial-finale strong {
    display: block;
    margin-bottom: 24px;
    font-size: 58px;
}

.tutorial-finale p {
    margin: 0;
    color: #6b5b49;
    font-size: 31px;
    line-height: 1.72;
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .home-cta {
        right: clamp(130px, 12vw, 170px);
        bottom: -84px;
        width: 220px;
        height: 220px;
        font-size: 27px;
    }

    .home-cta-subtext {
        font-size: 19px;
    }

    .home-character-four {
        right: 30%;
        bottom: 12%;
        width: clamp(180px, 12vw, 210px);
    }
}

@media (max-height: 700px) {
    .home-hero .home-character {
        display: none;
    }
}

@media (max-width: 1023px) {
    .home-page {
        margin-top: -116px;
    }

    .home-hero {
        min-height: 70vh;
        padding: 150px 32px 112px;
    }

    .home-hero h1 {
        max-width: 620px;
        font-size: 42px;
    }

    .home-cta {
        right: clamp(56px, 8vw, 96px);
        bottom: -58px;
        width: 174px;
        height: 174px;
        font-size: 22px;
    }

    .home-cta-subtext {
        font-size: 16px;
    }

    .home-character-one {
        left: 8%;
        top: 32%;
        width: 150px;
    }

    .home-character-two {
        left: 14%;
        bottom: 11%;
        width: 136px;
    }

    .home-character-three {
        left: 46%;
        top: 10%;
        width: 128px;
    }

    .home-character-four {
        right: 27%;
        bottom: 12%;
        width: 128px;
    }

    .home-character-five {
        right: 5%;
        top: 31%;
        width: 165px;
    }

    .home-start {
        min-height: 68vh;
        padding: 92px 36px 86px;
    }

    .home-start-copy {
        width: min(680px, 100%);
        transform: translate(-24px, 24px);
    }

    .home-start h2 {
        font-size: 38px;
    }

    .home-start p {
        font-size: 22px;
    }

    .home-actions {
        width: min(470px, 62vw);
        min-height: 146px;
        margin-top: 62px;
        transform: translateX(44px);
    }

    .home-feature-character {
        margin-top: 118px;
        transform: translateX(-20px);
    }

    .home-feature-character img {
        width: min(280px, 34vw);
    }

    .tutorial-card {
        padding: 20px 24px 18px;
    }

    .tutorial-card strong {
        font-size: 22px;
    }

    .tutorial-card p {
        font-size: 16px;
    }

    .tutorial-finale {
        width: min(720px, calc(100vw - 48px));
        padding: 58px 56px 54px;
        border-radius: 34px;
    }

    .tutorial-finale strong {
        font-size: 42px;
    }

    .tutorial-finale p {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .home-page {
        margin-top: -150px;
    }

    .home-hero {
        min-height: 68vh;
        padding: 164px 16px 94px;
    }

    .home-hero h1 {
        max-width: 330px;
        font-size: 30px;
    }

    .home-cta {
        right: 18px;
        bottom: -56px;
        width: 118px;
        height: 118px;
        font-size: 15px;
    }

    .home-cta-subtext {
        font-size: 11px;
    }

    .home-character-one {
        left: 24px;
        top: 30%;
        width: 92px;
    }

    .home-character-two {
        left: 18%;
        bottom: 13%;
        width: 82px;
    }

    .home-character-three {
        left: 44%;
        top: 18%;
        width: 72px;
    }

    .home-character-four {
        right: 12%;
        bottom: 14%;
        width: 86px;
    }

    .home-character-five {
        right: 8px;
        top: 30%;
        width: 106px;
    }

    .home-start {
        min-height: 66vh;
        padding: 74px 16px 58px;
    }

    .home-start-copy {
        transform: none;
    }

    .home-start h2 {
        font-size: 28px;
    }

    .home-start p {
        font-size: 17px;
    }

    .home-actions {
        width: min(86vw, 420px);
        min-height: 132px;
        margin-top: 50px;
        padding: 24px 20px;
        transform: none;
    }

    .home-actions::before {
        width: 72px;
        height: 118px;
        bottom: -120px;
        background:
            radial-gradient(circle 17px at 36px 18px, #ffe3cc 96%, transparent 100%),
            radial-gradient(circle 13px at 36px 58px, #ffe3cc 96%, transparent 100%),
            radial-gradient(circle 9px at 36px 94px, #ffe3cc 96%, transparent 100%);
        transform: translateX(-50%) scale(0.82);
    }

    .home-feature-character {
        margin-top: 80px;
        transform: none;
    }

    .home-feature-character img {
        width: min(255px, 60vw);
    }

    .tutorial-highlight {
        border-width: 2px;
    }

    .tutorial-spotlight-image {
        border-width: 3px;
    }

    .tutorial-card {
        width: min(var(--tutorial-card-width, 340px), calc(100vw - 24px));
        padding: 15px 16px 14px;
        border-radius: 14px;
    }

    .tutorial-card strong,
    .tutorial-card.is-large strong {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .tutorial-card p,
    .tutorial-card.is-large p {
        font-size: 14px;
        line-height: 1.55;
    }

    .tutorial-card span,
    .tutorial-card.is-large span {
        margin-top: 10px;
        font-size: 13px;
    }

    .tutorial-finale {
        width: calc(100vw - 28px);
        padding: 42px 24px 38px;
        border-radius: 24px;
    }

    .tutorial-finale strong {
        margin-bottom: 16px;
        font-size: 30px;
    }

    .tutorial-finale p {
        font-size: 18px;
    }
}

@media (max-width: 430px) {
    .home-feature-character {
        margin-top: 72px;
    }

    .home-feature-character img {
        width: min(205px, 52vw);
    }

    .tutorial-card {
        width: min(var(--tutorial-card-width, 300px), calc(100vw - 28px));
        padding: 12px 13px 11px;
        border-radius: 12px;
    }

    .tutorial-card strong,
    .tutorial-card.is-large strong {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .tutorial-card p,
    .tutorial-card.is-large p {
        font-size: 12px;
        line-height: 1.45;
    }

    .tutorial-card span,
    .tutorial-card.is-large span {
        margin-top: 7px;
        font-size: 11px;
    }
}
