* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: transparent;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: transparent;
    /* background-image: url('images/bg-visual.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; */
    color: #5f331e;
    max-width: 1440px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    width: 100%;
    height: 83px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.company {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.company-icon {
    width: 28px;
    height: 26px;
}

.company-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #5f331e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-buttons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-buttons a {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #5f331e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding-bottom: 2px;
}

.nav-buttons a:hover {
    color: #765135;
}

.nav-buttons a.active {
    color: #5f331e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Section Styles */
.hero {
    width: 100%;
    min-height: 929px;
    padding: 80px 64px 120px;
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 96px;
    color: #5f331e;
    text-align: center;
    margin-bottom: 56px;
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1312px;
    position: relative;
}

#home-section-1 .cta-button-wrapper {
    margin-top: 0;
}

#home-section-1 .hero-content {
    margin-bottom: 24px;
}

.hero-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 74px;
}

.content-text {
    flex: 1;
    max-width: 713px;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#home-section-1 .content-text {
    padding-top: 20px;
}

.comparison-text {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    color: #5f331e;
    line-height: 1.2;
}

.comparison-text .espresso-title {
    font-size: 64px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.comparison-text .espresso-desc {
    font-size: 28px;
    font-weight: 400;
}

.comparison-text .rock-concert {
    font-size: 40px;
    font-weight: 700;
}

.comparison-text .pourover-title {
    font-size: 64px;
    font-weight: 700;
    display: block;
    margin: 16px 0 8px;
}

.comparison-text .pourover-desc {
    font-size: 28px;
    font-weight: 400;
}

.comparison-text .solo-performance {
    font-size: 40px;
    font-weight: 700;
}

.tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #5f331e;
    text-align: right;
}

.content-image {
    width: 551px;
    height: 401px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.cta-button {
    background-color: #765135;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: -0.09px;
}

.cta-button:hover {
    background-color: #5f331e;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-content-wrapper {
        max-width: 100%;
    }

    .hero-content {
        gap: 32px;
    }

    .content-text {
        max-width: 60%;
    }

    .content-image {
        width: 40%;
        height: auto;
        min-height: 350px;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 60px 32px 100px;
    }

    .hero-title {
        font-size: 64px;
    }

    .comparison-text .espresso-title,
    .comparison-text .pourover-title {
        font-size: 48px;
    }

    .comparison-text .rock-concert,
    .comparison-text .solo-performance {
        font-size: 32px;
    }

    .comparison-text .espresso-desc,
    .comparison-text .pourover-desc {
        font-size: 24px;
    }

    .tagline {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 32px;
        height: auto;
        min-height: 83px;
    }

    .company-name {
        font-size: 20px;
    }

    .nav-buttons {
        gap: 16px;
    }

    .nav-buttons a {
        font-size: 14px;
    }

    .hero {
        padding: 40px 24px 80px;
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 32px;
    }

    .hero-content {
        flex-direction: column;
        gap: 24px;
    }

    .content-text {
        max-width: 100%;
        padding: 0;
        gap: 24px;
    }

    .content-image {
        width: 100%;
        height: 300px;
        min-height: 300px;
    }

    .comparison-text .espresso-title,
    .comparison-text .pourover-title {
        font-size: 36px;
    }

    .comparison-text .rock-concert,
    .comparison-text .solo-performance {
        font-size: 28px;
    }

    .comparison-text .espresso-desc,
    .comparison-text .pourover-desc {
        font-size: 20px;
    }

    .tagline {
        font-size: 20px;
        text-align: center;
    }

    .cta-button {
        font-size: 16px;
        padding: 10px 14px;
    }
}

/* Section Styles */
.section {
    width: 100%;
    min-height: calc(100vh - 83px);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Section 2: Comparison Section */
.comparison-section {
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: 1312px;
    box-sizing: border-box;
    padding-left: 247px;
    padding-right: 39px;
    margin-bottom: 0;
}

.comparison-title {
    font-family: 'DM Serif Display', serif;
    font-size: 64px;
    color: #765135;
    text-align: center;
    width: auto;
    flex: 1 1 0;
}

.vs-text {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    color: #000000;
    font-weight: 400;
    flex: 0 0 auto;
    margin: 0 28px;
}

.comparison-content {
    width: 100%;
    max-width: 1312px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comparison-images {
    display: grid;
    grid-template-columns: 209px 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
}

.comparison-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 0;
    overflow: hidden;
}

.comparison-images .comparison-image-wrapper:first-child {
    grid-column: 2;
}

.comparison-images .comparison-image-wrapper:last-child {
    grid-column: 3;
}

.comparison-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-table {
    display: grid;
    grid-template-columns: 209px 1fr 1fr;
    gap: 0;
    background-color: rgba(211, 213, 214, 0.1);
    border-radius: 0;
}

.comparison-column {
    padding: 12px 32px 20px;
    display: grid;
    grid-template-rows: auto repeat(4, auto);
    row-gap: 10px;
    align-content: start;
}

.features-column {
    background-color: transparent;
    max-width: none;
    padding: 12px 32px 20px 12px;
}

.espresso-column,
.pourover-column {
    background-color: rgba(211, 213, 214, 0.3);
    border-radius: 6px;
    /* Frame content positioning (Figma guide): top 12, right 64, left inset aligned */
    padding: 12px 64px 20px 115px;
}

.feature-header,
.column-header {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.25;
}

.feature-header {
    color: #412e21;
}

.feature-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #412e21;
    line-height: 1.25;
    margin: 0;
}

.feature-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #000000;
    line-height: 1.25;
    margin: 0;
}

.feature-value strong {
    font-weight: 700;
}

/* Section 3: Learning Section */
.learning-section {
    background-image: url('https://www.figma.com/api/mcp/asset/17d9e4de-8f41-4abf-8a61-a41198d2c2a4');
    background-size: cover;
    background-position: center;
}

/* Taste page: Flavour Certificate (Figma 61:206123) */
.taste-certificate-step {
    min-height: 934px;
    padding: 80px 64px;
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
}

.taste-certificate-top {
    width: 100%;
    max-width: 1312px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    column-gap: 20px;
}

.taste-certificate-title-wrap {
    grid-column: 2;
    justify-self: center;
    width: 420px;
    text-align: center;
}

.taste-certificate-title {
    margin: 0;
    color: #5f331e;
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.taste-certificate-subtitle {
    margin: 8px 0 0;
    color: #765135;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
}

.taste-certificate-home {
    grid-column: 3;
    justify-self: end;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    margin-bottom: 2px;
}

.taste-certificate-prev {
    grid-column: 1;
    justify-self: start;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 2px;
}

.taste-certificate-card {
    width: 100%;
    max-width: 1312px;
    height: 656px;
    margin: 0 auto;
    padding: 42px 64px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    align-self: stretch;
}

.taste-certificate-hero {
    min-height: 306px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15.5px;
    padding-top: 4px;
}

.taste-certificate-hero h2 {
    margin: 0;
    color: #000;
    font-family: 'DM Serif Display', serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

.taste-certificate-hero h3 {
    margin: 0;
    color: #000;
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

.taste-certificate-hero p {
    margin: 26px 0 0;
    width: 1184px;
    max-width: 100%;
    color: #000;
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

.taste-certificate-hero p strong {
    font-size: 48px;
    font-weight: 400;
}

.taste-certificate-profile {
    align-self: stretch;
    box-sizing: border-box;
    min-height: 105px;
    padding: 20px 56px 12px 42px;
}

.taste-certificate-profile h4 {
    margin: 0;
    color: #5f331e;
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.taste-certificate-profile p {
    margin: 8px 0 0;
    color: #765135;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.taste-certificate-streak {
    align-self: stretch;
    box-sizing: border-box;
    min-height: 168px;
    padding: 18px 56px 10px 42px;
}

.taste-certificate-streak h4 {
    margin: 0 0 12px 0;
    color: #765135;
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.taste-streak-beans {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 6px;
}

.taste-streak-item {
    width: 53px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.taste-streak-item img {
    width: 52px;
    height: 48px;
    object-fit: contain;
    opacity: 0.18;
    filter: grayscale(1);
    transform: rotate(-8deg);
}

.taste-streak-item.is-active img {
    opacity: 1;
    filter: none;
}

.taste-streak-item span {
    color: #765135;
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

/* Taste page */
.taste-step {
    position: relative;
    min-height: 934px;
    padding: 80px 64px;
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
    --taste-panel-max-width: 1200px;
}

.taste-top {
    width: 100%;
    max-width: 1312px;
    margin: 0 auto 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.taste-title-wrap {
    width: 420px;
    text-align: center;
}

.taste-title {
    margin: 0;
    color: #5f331e;
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.taste-subtitle {
    margin: 9px 0 0;
    color: #765135;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
}

.taste-next-button {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.taste-panel-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

#next-button-taste {
    position: static;
    margin: 24px 0 0;
    align-self: flex-end;
    transform: translateY(-12px);
    width: auto;
    height: auto;
    padding: 12px 24px;
    line-height: 1.45;
}

.taste-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
}

.taste-row {
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    padding: 32px 32px;
}

.taste-row:first-child {
    border-top: none;
}

.taste-row-helper {
    margin: 0 0 8px;
    color: #765135;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

.taste-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.taste-row-title {
    margin: 0;
    min-width: 160px;
    padding-left: 16px;
    color: #5f331e;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.taste-chip-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.taste-chip {
    border: none;
    border-radius: 8px;
    background: rgba(70, 55, 38, 0.3);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    color: #5f331e;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding: 2px 16px;
    cursor: pointer;
}

.taste-chip:hover {
    background: rgba(70, 55, 38, 0.45);
}

.taste-chip.is-selected {
    background: rgba(232, 100, 0, 0.42);
    color: #3f281c;
    box-shadow: 0 0 0 2px rgba(232, 100, 0, 0.28), 0 4px 4px rgba(0, 0, 0, 0.22);
}

.taste-row-headline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: calc(160px + 14px + 116px + 12px);
    margin-right: calc(116px + 12px);
    padding: 0 0 10px 0;
}

.taste-row-headline p {
    margin: 0;
    color: #765135;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.08px;
}

.taste-row-headline p:last-child {
    text-align: right;
    padding-right: 70px;
}

.taste-scale-wrap {
    width: 896px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 116px;
    align-items: center;
    gap: 12px;
}

.taste-scale-wrap .taste-chip {
    min-width: 116px;
    text-align: center;
}

.taste-scale {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 31px;
    cursor: pointer;
    touch-action: none;
}

.taste-scale:focus-visible {
    outline: 2px solid rgba(118, 81, 53, 0.5);
    outline-offset: 4px;
    border-radius: 8px;
}

.taste-scale-track {
    flex: 1;
    height: 16px;
}

.taste-scale-track-active {
    background: rgba(232, 100, 0, 0.5);
    border-radius: 16px 2px 2px 16px;
}

.taste-scale-track-inactive {
    background: rgba(102, 57, 7, 0.5);
    border-radius: 2px 16px 16px 2px;
}

.taste-scale-handle {
    width: 4px;
    height: 44px;
    background: #765135;
    border-radius: 2px;
    flex-shrink: 0;
    cursor: grab;
}

.taste-row-finish .taste-chip-group-finish {
    justify-content: space-between;
}

/* Aroma/Finish도 슬라이더 행과 같은 폭 기준(896px)으로 정렬 */
.taste-row-aroma .taste-chip-group,
.taste-row-finish .taste-chip-group-finish {
    flex: 0 0 896px;
    width: 896px;
    max-width: 100%;
}

.name-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    width: 100%;
}

.name-input-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #5f331e;
    text-align: center;
}

.name-input-box {
    width: 100%;
    background-color: rgba(211, 213, 214, 0.3);
    padding: 4px 16px;
    border-radius: 0;
}

.name-input {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    background: transparent;
    border: none;
    text-align: center;
    outline: none;
}

.learning-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1312px;
    height: 520px;
    padding: 64px;
    box-sizing: border-box;
}

.learning-card {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 384px;
}

.learning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.step-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #5f331e;
}

.step-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #5f331e;
    margin: 0;
}

.card-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #765135;
    line-height: 1.45;
}

.card-image {
    width: 240px;
    height: 234px;
    position: absolute;
    left: 50%;
    bottom: -48px;
    transform: translateX(-50%);
    border-radius: 32px;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0px 0px 4.4px rgba(0, 0, 0, 0.06), 0px 5px 19px rgba(0, 0, 0, 0.08);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top !important;
}

/* Card 1 (Watch) - 왼쪽으로 이동 + 상단 기준 */
.learning-card[data-step="watch"] .card-image img {
    object-position: 40% top !important;
}

/* Card 3 (Taste) - 줌인 + 상단 기준 */
.learning-card[data-step="taste"] .card-image img {
    transform: scale(1.2) !important;
    object-position: center top !important;
    transform-origin: center top !important;
}

.learning-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 686px;
    text-align: center;
}

#home-section-3 .learning-footer {
    transform: translateY(-12px);
}

.footer-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #5f331e;
}

.footer-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #765135;
    padding: 9px 0;
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
    .comparison-header {
        gap: 20px;
    }

    .comparison-title {
        font-size: 48px;
    }

    .vs-text {
        font-size: 36px;
    }

    .comparison-images {
        gap: 24px;
    }

    .comparison-image-wrapper {
        width: 45%;
        height: 150px;
    }

    .comparison-table {
        flex-direction: column;
    }

    .features-column {
        max-width: 100%;
    }

    .feature-label,
    .feature-value,
    .feature-header,
    .column-header {
        font-size: 24px;
    }

    .learning-cards {
        flex-direction: column;
        padding: 32px 0;
    }

    .learning-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 24px;
    }

    .comparison-title {
        font-size: 36px;
    }

    .vs-text {
        font-size: 28px;
    }

    .comparison-images {
        flex-direction: column;
        gap: 16px;
    }

    .comparison-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .feature-label,
    .feature-value,
    .feature-header,
    .column-header {
        font-size: 18px;
    }

    .name-input-title,
    .step-title,
    .footer-title {
        font-size: 28px;
    }

    .name-input {
        font-size: 28px;
    }

    .step-number {
        font-size: 18px;
    }

    .card-description {
        font-size: 14px;
    }

    .footer-subtitle {
        font-size: 16px;
    }
}

/* Watch Page Styles */
.step-container {
    width: 100%;
    min-height: calc(100vh - 83px);
    padding: 0;
}

.step-header {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    z-index: 10;
}

.step-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
}

/* Brew intro: make title area wider to avoid forced line break */
#step-header-brew-start .step-title-wrapper {
    width: 980px;
}

#step-header-brew-start .step-title {
    white-space: nowrap;
}

/* Section 1-3 설명 카드 통일 (Section 4 bloom 카드는 제외) */
#instruction-card,
#instruction-card-filter,
#instruction-card-brew-start {
    display: inline-flex;
    width: 100%;
    max-width: 914px;
    min-height: 154px;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.step-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #5f331e;
    margin: 0;
    text-align: center;
}

.step-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    color: #765135;
    margin: 9px 0 0 0;
    text-align: center;
}

.next-button {
    background-color: #765135;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    will-change: transform;
}

.next-button:hover {
    background-color: #5f331e;
    transform: translateY(-2px);
}

.instruction-box {
    margin: 0 64px 24px;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 24px 32px;
    border-radius: 16px;
}

.instruction-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    color: #5f331e;
    line-height: 1.4;
}

.step-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.step-navigation {
    padding: 40px 64px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-btn {
    background-color: #765135;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background-color: #5f331e;
    transform: translateY(-2px);
}

.prev-btn {
    background-color: #d3d5d6;
    color: #5f331e;
}

.prev-btn:hover {
    background-color: #b8babb;
}

/* Tools Grid */
.tools-display {
    width: 100%;
    max-width: 1440px;
    height: 1024px;
    position: relative;
    margin: 0 auto;
    background-color: transparent;
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.tools-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 395px;
    background-image: url('images/bg-table.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.tool-item {
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tool-hitarea {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* 각 도구별 위치 지정 - Figma 디자인 기준 */
.tool-item[data-tool="mug"] {
    left: 197px;
    top: 591px;
    width: 219.082px;
    height: 194px;
}

.tool-item[data-tool="dripper"] {
    left: 81.39px;
    top: 747px;
    width: 258.57px;
    height: 177.905px;
}

.tool-item[data-tool="filter"] {
    left: 489px;
    top: 766px;
    width: 285px;
    height: 132px;
}

.tool-item[data-tool="grinder"] {
    left: 889.14px;
    top: 620.03px;
    width: 258px;
    height: 309px;
}

.tool-item[data-tool="kettle"] {
    left: 464px;
    top: 471px;
    width: 476.209px;
    height: 313.3px;
}

.tool-item[data-tool="server"] {
    left: 1093.65px;
    top: 519.35px;
    width: 287.707px;
    height: 241px;
}

.tool-item[data-tool="scale"] {
    left: 1050px;
    top: 760px;
    width: 374.74px;
    height: 150px;
}

.tool-item[data-tool="mug"] .tool-hitarea {
    inset: 0 30px 50px 0;
}

.tool-item[data-tool="dripper"] .tool-hitarea {
    inset: 0 15px 20px 15px;
}

.tool-item[data-tool="filter"] .tool-hitarea {
    inset: 0 20px 10px 20px;
}

.tool-item[data-tool="grinder"] .tool-hitarea {
    inset: 0 80px 30px 30px;
}

.tool-item[data-tool="server"] .tool-hitarea {
    inset: 0 30px 50px 30px;
}

.tool-item[data-tool="scale"] .tool-hitarea {
    inset: 0 60px 20px 60px;
}

.tool-item[data-tool="kettle"] .tool-hitarea {
    inset: 0 40px 50px 30px;
}

.tool-image {
    width: 100%;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.tool-item[data-tool="mug"] .tool-image {
    height: 140px;
    background-image: url('images/tool-mug.svg');
}

.tool-item[data-tool="dripper"] .tool-image {
    height: 160px;
    background-image: url('images/tool-dripper.svg');
}

.tool-item[data-tool="filter"] .tool-image {
    height: 120px;
    background-image: url('images/tool-paperfilter.svg');
}

.tool-item[data-tool="grinder"] .tool-image {
    height: 280px;
    background-image: url('images/tool-grinder.svg');
}

.tool-item[data-tool="kettle"] .tool-image {
    height: 260px;
    background-image: url('images/tool-kettle.svg');
}

.tool-item[data-tool="server"] .tool-image {
    height: 180px;
    background-image: url('images/tool-server.svg');
}

.tool-item[data-tool="scale"] .tool-image {
    height: 130px;
    background-image: url('images/tool-scale.svg?v=2');
}

/* 저울 숫자 표시 - 공통 클래스 */
.scale-with-number {
    position: relative;
}

.scale-with-number::after {
    content: attr(data-weight);
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #221714;
    letter-spacing: 0.5px;
}

.tool-label {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.48px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.tool-item.active .tool-label {
    opacity: 1;
    visibility: visible;
}

/* 구스넥 케틀 라벨 위치 조정 */
.tool-item[data-tool="kettle"] .tool-label {
    position: absolute;
    top: 160px;
}

/* 서버 라벨 위치 조정 */
.tool-item[data-tool="server"] .tool-label {
    position: absolute;
    top: 15px;
    left: 70px;
}

/* 머그컵 라벨 위치 조정 */
.tool-item[data-tool="mug"] .tool-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 20px), calc(-50% - 20px));
}

/* 그라인더 라벨 위치 조정 */
.tool-item[data-tool="grinder"] .tool-label {
    position: absolute;
    top: 65px;
}

/* 드리퍼 라벨 위치 조정 */
.tool-item[data-tool="dripper"] .tool-label {
    position: absolute;
    top: 60px;
    left: 65px;
}

/* 커피필터 라벨 위치 조정 */
.tool-item[data-tool="filter"] .tool-label {
    position: absolute;
    top: 20px;
   
}

/* 스케일 라벨 위치 조정 */
.tool-item[data-tool="scale"] .tool-label {
    position: absolute;
    top: 5px;
}

/* Step 2: Single Item (Coffee Scoop) */
.single-item-display {
    width: 100%;
    height: 929px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-background {
    position: absolute;
    inset: 0;
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.item-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 395px;
    background-image: url('images/bg-table.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

.process-item {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.process-item:hover {
    transform: scale(1.05);
}

.process-item.active {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.08); 
    }
}

/* Coffee Scoop Display */
.item-coffee-scoop {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background-image: url('images/item-coffee-scoop.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.6s ease-in-out;
    animation: pulse 2s ease-in-out infinite;
}

.item-coffee-scoop:hover {
    animation: none;
    transform: translateX(-50%) scale(1.1);
}

/* Instruction Card Wrapper */
.instruction-wrapper {
    position: absolute;
    width: calc(100% - 128px);
    max-width: 1312px;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    z-index: 15;
}

/* Instruction Card */
.instruction-card {
    display: inline-flex;
    width: 100%;
    min-height: 154px;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.instruction-card p {
    color: #050000;
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    text-align: center;
}

/* Section 3 카드 텍스트 왼쪽 정렬 */
#instruction-card-filter p {
    text-align: left;
    width: 100%;
}

#instruction-card-brew-start p {
    text-align: left;
    width: 100%;
}

/* Section 2 카드 텍스트 왼쪽 정렬 */
#instruction-card p {
    text-align: left;
    width: 100%;
}

/* Section 4: Bloom Pour 카드 위치 (Section 1-3과 동일한 기준) */
/* Section 4만 개별 수정하려면 아래 값만 수정하세요 */
.instruction-wrapper-bloom {
    position: absolute;
    width: calc(100% - 100px);
    left: 70%;
    transform: translateX(-50%);
    top: 80px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    z-index: 15;
}

#next-button-tools,
#next-button-process,
#next-button-filter,
#next-button-bloom,
#next-button-brew-start {
    position: absolute;
    right: 64px;
    top: 40%;
    transform: translateY(-40%);
    z-index: 20;
}

#prev-button-global {
    position: absolute;
    left: 64px;
    top: 40%;
    transform: translateY(-40%);
    z-index: 20;
}

.instruction-card-bloom {
    display: inline-flex;
    width: 100%;
    max-width: 600px;
    height: 205px;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.instruction-card-bloom p {
    color: #050000;
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    text-align: left;
}

/* Section 5 mode: reuse centered card style like section 1-3 */
#section-bloom.section-five-mode .instruction-wrapper-bloom {
    width: calc(100% - 128px);
    max-width: 1312px;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
}

#section-bloom.section-five-mode .instruction-card-bloom {
    width: 100%;
    max-width: 914px;
    min-height: 154px;
    height: auto;
    background: rgba(0, 0, 0, 0.05);
}

#section-bloom.section-five-mode .instruction-card-bloom p {
    text-align: left;
    width: 100%;
}

#section-bloom.section-five-mode .item-kettle-display {
    display: none !important;
}

/* Section 6 mode: final card + last coffee image (keep visual background/table) */

#section-bloom.section-six-mode .item-scale-display,
#section-bloom.section-six-mode .item-timer-display,
#section-bloom.section-six-mode .item-dripper-display,
#section-bloom.section-six-mode .item-server-display,
#section-bloom.section-six-mode .item-kettle-display,
#section-bloom.section-six-mode .item-dripper-mask-display {
    display: none !important;
}

#section-bloom.section-six-mode .instruction-wrapper-bloom {
    width: calc(100% - 128px);
    max-width: 1312px;
    left: 50%;
    transform: translateX(-50%);
}

#section-bloom.section-six-mode .instruction-card-bloom {
    max-width: 914px;
    min-height: 154px;
    height: auto;
    background: rgba(0, 0, 0, 0.05);
}

#section-bloom.section-six-mode .instruction-card-bloom p {
    text-align: left;
    width: 100%;
}

.item-lastcoffee-display {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 420px;
    background-image: url('images/lastcoffe.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 16;
    pointer-events: none;
}

/* Section 5 only: delayed next button pulsing (grow/shrink) */
.next-button.pulse-next {
    opacity: 1 !important;
    animation: nextPulse 1.2s ease-in-out infinite !important;
}

@keyframes nextPulse {
    0%, 100% {
        transform: translateY(-40%) scale(1);
    }
    50% {
        transform: translateY(-40%) scale(1.08);
    }
}

/* Hand Grinder Display */
.item-grinder {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 400px;
    z-index: 10;
}

.grinder-visual {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 그라인더 1 (손잡이 오른쪽) - 위치 조정 가능 */
.grinder1 {
    background-image: url('images/tool-grinder.svg');
}

/* 그라인더 2 (손잡이 왼쪽) - 위치 조정 가능 */
.grinder2 {
    background-image: url('images/tool-grinder2.svg');
    position: absolute;
    top: 0;
    left: -125px;
}

/* 그라인더 3 (갈린 커피가 담긴 그라인더) */
.grinder3 {
    background-image: url('images/tool-grinder3.svg');
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.coffee-scoop-label {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #5f331e;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coffee-scoop {
    width: 300px;
    height: 300px;
    background-image: url('images/item-coffee-scoop.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-label {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #5f331e;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Visual Display Common Styles */
.visual-display {
    width: 100%;
    height: 929px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-background {
    position: absolute;
    inset: 0;
    background-image: url('images/bg-visual.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.visual-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 395px;
    background-image: url('images/bg-table.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Step 3: Hand Grinder */
.hand-grinder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 1;
}

.hand-grinder .grinder {
    width: 300px;
    height: 400px;
    background-image: url('images/tool-grinder.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: grind 2s ease-in-out infinite;
}

@keyframes grind {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(3deg); }
}

.hand-grinder .ground-coffee {
    width: 250px;
    height: 180px;
    background-image: url('images/item-groundcoffee.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1s forwards;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Step 4: Filter Setup */
.filter-setup {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 40px;
    z-index: 1;
}

.filter-setup .paper-filter {
    width: 200px;
    height: 250px;
    background-image: url('images/tool-paperfilter.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.filter-setup .dripper-on-scale {
    width: 280px;
    height: 350px;
    position: relative;
}

.filter-setup .dripper-on-scale::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 220px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}

.filter-setup .dripper-on-scale::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 130px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.filter-setup .coffee-jar {
    width: 180px;
    height: 200px;
    background-image: url('images/item-coffee.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Step 5: Add Coffee */
.add-coffee {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.add-coffee .coffee-jar-pouring {
    position: absolute;
    left: 25%;
    top: 15%;
    width: 200px;
    height: 220px;
    background-image: url('images/item-coffee.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-35deg);
    transform-origin: bottom right;
    animation: pour 3s ease-in-out infinite;
}

@keyframes pour {
    0%, 100% { transform: rotate(-35deg); }
    50% { transform: rotate(-45deg); }
}

.add-coffee .dripper-with-coffee {
    width: 200px;
    height: 250px;
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.add-coffee .scale-20g {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.add-coffee .scale-20g::after {
    content: '20.0 g';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

/* Step 6: Shake Dripper */
.shake-dripper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1;
}

.shake-dripper .dripper-shaking {
    width: 200px;
    height: 250px;
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-2deg); }
    75% { transform: translateX(8px) rotate(2deg); }
}

.shake-dripper .scale-base {
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Step 7: Dripper on Server */
.dripper-on-server {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 1;
}

.dripper-on-server .server-with-dripper {
    width: 280px;
    height: 400px;
    position: relative;
}

.dripper-on-server .server-with-dripper::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 220px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}

.dripper-on-server .server-with-dripper::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 280px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('images/tool-server.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.dripper-on-server .scale-zeroed {
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dripper-on-server .scale-zeroed::after {
    content: '0.0 g';
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

/* Step 8: Bloom Pour */
.bloom-pour {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    z-index: 1;
}

.bloom-pour .kettle-pouring {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 280px;
    height: 320px;
    background-image: url('images/tool-kettle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    justify-self: center;
    align-self: center;
    transform: rotate(-20deg);
    animation: tiltPour 2s ease-in-out infinite;
}

@keyframes tiltPour {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-25deg); }
}

.bloom-pour .circular-motion {
    grid-column: 2;
    grid-row: 1;
    width: 200px;
    height: 200px;
    justify-self: center;
    align-self: end;
    position: relative;
}

.bloom-pour .circular-motion::before {
    content: '↻';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(95, 51, 30, 0.3);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bloom-pour .timer-45sec {
    grid-column: 2;
    grid-row: 2;
    width: 180px;
    height: 180px;
    justify-self: center;
    align-self: start;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #5f331e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bloom-pour .timer-45sec::after {
    content: '0:45';
}

/* Step 9: Continue Pour 120ml */
.continue-pour-120ml {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 60px;
    z-index: 1;
}

.continue-pour-120ml .kettle-pouring {
    width: 280px;
    height: 320px;
    background-image: url('images/tool-kettle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-20deg);
    animation: tiltPour 2s ease-in-out infinite;
}

.continue-pour-120ml .server-120ml {
    width: 240px;
    height: 280px;
    background-image: url('images/tool-server.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.continue-pour-120ml .server-120ml::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 35%;
    background: linear-gradient(180deg, rgba(95, 51, 30, 0.4) 0%, rgba(95, 51, 30, 0.6) 100%);
    border-radius: 0 0 40% 40%;
}

.continue-pour-120ml .scale-120g {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.continue-pour-120ml .scale-120g::after {
    content: '120.0 g';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.continue-pour-120ml .timer-45sec {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: #5f331e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.continue-pour-120ml .timer-45sec::after {
    content: '0:45';
}

/* Step 10: Complete Pour 300ml */
.complete-pour-300ml {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 60px;
    z-index: 1;
}

.complete-pour-300ml .kettle-pouring {
    width: 280px;
    height: 320px;
    background-image: url('images/tool-kettle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-20deg);
    animation: tiltPour 2s ease-in-out infinite;
}

.complete-pour-300ml .server-300ml {
    width: 240px;
    height: 280px;
    background-image: url('images/tool-server.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.complete-pour-300ml .server-300ml::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 60%;
    background: linear-gradient(180deg, rgba(95, 51, 30, 0.5) 0%, rgba(95, 51, 30, 0.7) 100%);
    border-radius: 0 0 40% 40%;
}

.complete-pour-300ml .scale-300g {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.complete-pour-300ml .scale-300g::after {
    content: '300.0 g';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.complete-pour-300ml .timer-45sec {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: #5f331e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.complete-pour-300ml .timer-45sec::after {
    content: '0:45';
}

/* Step 11: Drain Complete */
.drain-complete {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1;
}

.drain-complete .dripper-draining {
    width: 200px;
    height: 250px;
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.drain-complete .dripper-draining::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, rgba(95, 51, 30, 0.6) 0%, transparent 100%);
    animation: drip 1.5s ease-in-out infinite;
}

@keyframes drip {
    0% { 
        height: 0; 
        opacity: 1; 
    }
    50% { 
        height: 40px; 
        opacity: 0.8; 
    }
    100% { 
        height: 40px; 
        opacity: 0; 
    }
}

.drain-complete .server-300ml-full {
    width: 240px;
    height: 280px;
    background-image: url('images/tool-server.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.drain-complete .server-300ml-full::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 65%;
    background: linear-gradient(180deg, rgba(95, 51, 30, 0.5) 0%, rgba(95, 51, 30, 0.8) 100%);
    border-radius: 0 0 40% 40%;
}

.drain-complete .scale-300g {
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.drain-complete .scale-300g::after {
    content: '300.0 g';
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

/* Step 12: Continue Pour 120ml Detailed */
.continue-pour-120ml-detailed {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    z-index: 1;
}

.continue-pour-120ml-detailed .kettle-pouring-angled {
    position: absolute;
    left: 15%;
    top: 10%;
    width: 300px;
    height: 340px;
    background-image: url('images/tool-kettle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-25deg);
    animation: tiltPour 2s ease-in-out infinite;
}

.continue-pour-120ml-detailed .coffee-filter-with-grounds {
    width: 200px;
    height: 250px;
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.continue-pour-120ml-detailed .coffee-filter-with-grounds::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20%;
    background-color: rgba(95, 51, 30, 0.6);
    border-radius: 50%;
}

.continue-pour-120ml-detailed .server-120ml {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 280px;
    background-image: url('images/tool-server.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.continue-pour-120ml-detailed .server-120ml::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 35%;
    background: linear-gradient(180deg, rgba(95, 51, 30, 0.4) 0%, rgba(95, 51, 30, 0.6) 100%);
    border-radius: 0 0 40% 40%;
}

.continue-pour-120ml-detailed .scale-120g {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 140px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.continue-pour-120ml-detailed .scale-120g::after {
    content: '120.0 g';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.continue-pour-120ml-detailed .timer-45sec {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: #5f331e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.continue-pour-120ml-detailed .timer-45sec::after {
    content: '0:45';
}

/* Section 3: Filter Preparation */
/* 커피 필터 아이템 */
.item-filter {
    position: absolute;
    top: 660px;
    left: 200px;
    width: 250px;
    height: 250px;
    background-image: url('images/tool-paperfilter.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    cursor: pointer;
    animation: pulse 2s ease-in-out infinite;
}

/* 필터 포물선 비행 애니메이션 */
@keyframes filterFly {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(var(--moveX-half), calc(var(--moveY-half) - 100px));
    }
    100% {
        transform: translate(var(--moveX), var(--moveY));
    }
}

.item-filter.flying {
    animation: filterFly 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 저울 디스플레이 */
.item-scale-display {
    position: absolute;
    top: 700px;
    left: 50%;
    transform: translateX(-50%);
    width: 374px;
    height: 150px;
    background-image: url('images/tool-scale.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 9;
}

/* Timer display (section 4 - right side of scale) */
.item-timer-display {
    position: absolute;
    top: 600px;
    left: calc(50% + 224px);
    width: 220px;
    height: 220px;
    background-image: url('images/item-timer.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 13;
}

#timer-display-bloom::after {
    content: attr(data-time);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%);
    width: 100%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #221714;
    letter-spacing: 0.4px;
    line-height: 1;
}

#timer-display-brew-start::after {
    content: attr(data-time);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%);
    width: 100%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #221714;
    letter-spacing: 0.4px;
    line-height: 1;
}

.item-timer-display-intro {
    width: 220px;
    height: 220px;
    z-index: 13;
}

#timer-display-brew-start {
    position: absolute;
    top: 600px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    z-index: 13;
}

/* Section 3 저울 크기에 맞춘 폰트 조정 */
#scale-display.scale-with-number::after {
    font-size: 32px;
}

/* 저울 숫자 빨간 테두리 하이라이트 */
#scale-display.scale-with-number.highlight::after {
    border: 3px solid #ff0000;
    border-radius: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
}

#scale-display-bloom.scale-with-number::after {
    font-size: 32px;
}

/* 서버 디스플레이 (저울 위) */
.item-server-display {
    position: absolute;
    top: 528px;
    left: 52.5%;
    transform: translateX(-50%);
    width: 287px;
    height: 241px;
    background-image: url('images/tool-server.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.item-server-display-60 {
    background-image: url('images/tool-server60.svg');
    opacity: 0;
    z-index: 11;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.item-server-display-60.visible {
    opacity: 1;
}

.item-server-display-120 {
    background-image: url('images/tool-server120.svg');
    opacity: 0;
    z-index: 12;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.item-server-display-120.visible {
    opacity: 1;
}

.item-server-display-180 {
    background-image: url('images/tool-server180.svg');
    opacity: 0;
    z-index: 13;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.item-server-display-180.visible {
    opacity: 1;
}

.item-server-display-240 {
    background-image: url('images/tool-server240.svg');
    opacity: 0;
    z-index: 14;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.item-server-display-240.visible {
    opacity: 1;
}

.item-server-display-300 {
    background-image: url('images/tool-server300.svg');
    opacity: 0;
    z-index: 15;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.item-server-display-300.visible {
    opacity: 1;
}

/* 케틀 디스플레이 (드리퍼 왼쪽 위) */
.item-kettle-display {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%) translateX(-280px) rotate(25deg);
    width: 476px;
    height: 313px;
    background-image: url('images/tool-kettle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 18;
}

.item-kettle-display.active {
    cursor: pointer;
    animation: kettlePulse 1.8s ease-in-out infinite;
}

.item-kettle-display.pouring {
    animation: kettlePourOrbit 5s ease-in-out forwards;
}

.item-kettle-display.pulse-glow {
    animation: kettlePulse 1s ease-in-out infinite !important;
}

.item-kettle-display.pouring::after {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    right: -148px;
    top: 8px;
    background-image: url('images/item-water.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;

    /* Stream occlusion: hide lower segment as it reaches inside the dripper */
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 56%,
        rgba(0, 0, 0, 0) 78%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 56%,
        rgba(0, 0, 0, 0) 78%
    );
}

/* Section 4: dripper foreground mask to hide stream behind dripper rim/body */
.item-dripper-mask-display {
    position: absolute;
    top: 590px;
    left: 50%;
    transform: translate(-50%, -210px);
    width: 258px;
    height: 178px;
    background-image: url('images/tool-dripperwcoffee.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 24;
    pointer-events: none;
}


/* 드리퍼 디스플레이 (서버 위) */
.item-dripper-display {
    position: absolute;
    top: 590px;
    left: 50%;
    transform: translateX(-50%);
    width: 258px;
    height: 178px;
    background-image: url('images/tool-dripper.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 23;
    transition: transform 0.3s ease;
}

/* 드리퍼가 active 상태일 때 깜빡임 */
.item-dripper-display.active {
    cursor: pointer;
    animation: dripperPulse 2s ease-in-out infinite;
}

/* 드리퍼가 올라간 상태에서 깜빡임 */
.item-dripper-display.raised.active {
    animation: dripperPulseRaised 2s ease-in-out infinite;
}

/* 드리퍼 전용 pulse 애니메이션 (중앙 정렬 유지) */
@keyframes dripperPulse {
    0%, 100% { 
        transform: translate(-50%, 0) scale(1); 
    }
    50% { 
        transform: translate(-50%, 0) scale(1.08); 
    }
}

/* 드리퍼 올라간 상태에서 pulse 애니메이션 */
@keyframes dripperPulseRaised {
    0%, 100% { 
        transform: translate(-50%, -250px) scale(1); 
    }
    50% { 
        transform: translate(-50%, -250px) scale(1.08); 
    }
}

/* 드리퍼 흔들림 애니메이션 */
.item-dripper-display.shaking {
    animation: dripperShake 2.5s ease-in-out forwards !important;
}

/* 드리퍼 올라간 위치 고정 (active가 없을 때만) */
.item-dripper-display.raised:not(.active) {
    transform: translate(-50%, -250px);
}

/* 드리퍼 하강 애니메이션 */
.item-dripper-display.lowering {
    animation: dripperLower 1s ease-in-out forwards !important;
}

/* 드리퍼 낮은 위치 고정 */
.item-dripper-display.lowered {
    transform: translate(-50%, -210px);
}

@keyframes dripperShake {
    0% {
        transform: translate(-50%, 0) rotate(0deg);
    }
    40% {
        transform: translate(-50%, -250px) rotate(0deg);
    }
    45% {
        transform: translate(-50%, -250px) rotate(-5deg);
    }
    55% {
        transform: translate(-50%, -250px) rotate(5deg);
    }
    65% {
        transform: translate(-50%, -250px) rotate(-5deg);
    }
    75% {
        transform: translate(-50%, -250px) rotate(5deg);
    }
    85% {
        transform: translate(-50%, -250px) rotate(-5deg);
    }
    95% {
        transform: translate(-50%, -250px) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -250px) rotate(0deg);
    }
}

/* 드리퍼 하강 애니메이션 */
@keyframes dripperLower {
    from {
        transform: translate(-50%, -250px);
    }
    to {
        transform: translate(-50%, -210px);
    }
}

/* 그라인더 4 디스플레이 */
.item-grinder4 {
    position: absolute;
    top: 450px;
    right: 308px;
    width: 180.668px;
    height: 258.132px;
    background-image: url('images/tool-grinder4.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    cursor: pointer;
    animation: pulse 2s ease-in-out infinite;
}

/* 그라인더 4 이동 애니메이션 */
.item-grinder4.moving {
    animation: grinder4Move 0.8s ease-in-out forwards !important;
}

/* 그라인더 4 회전 애니메이션 */
.item-grinder4.rotating {
    animation: grinder4Rotate 0.8s ease-in-out forwards !important;
}

@keyframes grinder4Move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(-220px, -150px) rotate(0deg);
    }
}

@keyframes grinder4Rotate {
    from {
        transform: translate(-220px, -150px) rotate(0deg);
    }
    to {
        transform: translate(-220px, -150px) rotate(-90deg);
    }
}

@keyframes kettlePulse {
    0%, 100% {
        transform: translateX(-50%) translateX(-280px) rotate(25deg) scale(1);
    }
    50% {
        transform: translateX(-50%) translateX(-280px) rotate(25deg) scale(1.05);
    }
}

@keyframes kettlePourOrbit {
    0% {
        transform: translateX(-50%) translateX(-350px) translateY(-100px) rotate(40deg);
    }
    25% {
        transform: translateX(-50%) translateX(-310px) translateY(-124px) rotate(40deg);
    }
    50% {
        transform: translateX(-50%) translateX(-265px) translateY(-100px) rotate(40deg);
    }
    75% {
        transform: translateX(-50%) translateX(-310px) translateY(-76px) rotate(40deg);
    }
    100% {
        transform: translateX(-50%) translateX(-350px) translateY(-100px) rotate(40deg);
    }
}
