:root {
    --primary: #00c73c;
    --primary-rgb: 0, 199, 60;
    --bg: #ffffff;
    --surface: #f8f9fa;
    --border: #e9ecef;
    --text: #333333;
    --text-sub: #666666;
    --beta-color: #ff6b00;
}

* {
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans KR', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

header {
    width: 100%;
    height: 100px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    flex-shrink: 0;
    position: relative;
    gap: 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -1px;
    cursor: pointer;
    z-index: 2;
}

.logo span {
    color: var(--primary);
}

.header-adsense {
    flex: 1;
    max-width: 728px;
    height: 90px;
    border: 1px dashed var(--border);
    background: #fcfcfc;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
}

.btn-style {
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #888;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.ctrl-btn:hover {
    background: #f1f3f5;
}

.ctrl-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.zero-btn,
.remote-rect-btn {
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.zero-btn:hover,
.remote-rect-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.input-group {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-group i {
    color: #888;
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-weight: 600;
    width: 140px;
    font-size: 0.85rem;
    letter-spacing: 0;
}

.input-group input::placeholder {
    color: #ccc;
    letter-spacing: 0;
    font-weight: 400;
}

.layout-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    gap: 20px;
}

.ad-sidebar {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

.sc-banner {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 15px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.sc-banner:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sc-icon-box {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sc-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
    color: #333;
}

.sc-text {
    font-size: 0.85rem;
    color: #888;
    margin: 15px 0 25px 0;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}

.sc-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

main {
    flex: 1;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.hero-text {
    text-align: center;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(to right, #333, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-sub);
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 500;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.game-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 15px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    height: 210px;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--primary);
}

.game-card.beta-card {
    border: 2px solid var(--beta-color);
    background: #fffaf7;
}

.game-card.beta-card:hover {
    border-color: #ff4500;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
}

.game-card.beta-card .icon-box {
    color: var(--beta-color);
}

.game-card.beta-card h3 {
    color: var(--beta-color);
}

/* BOT / GIFT / 룰렛관리 카드 - 기본 game-card와 동일 스타일 */

.game-card.dashboard-card {
    border-color: rgba(56, 115, 234, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.game-card.dashboard-card .icon-box {
    color: #3873ea;
    background: rgba(56, 115, 234, 0.08);
}

.game-card.dashboard-card:hover {
    border-color: #3873ea;
    box-shadow: 0 10px 25px rgba(56, 115, 234, 0.16), 0 0 0 1px rgba(56, 115, 234, 0.35);
}


.icon-box {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.game-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin: 12px 0 6px 0;
    font-weight: 800;
    color: var(--text);
}

.game-card p {
    color: var(--text-sub);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.play-btn {
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-sub);
    font-weight: bold;
    font-size: 0.8rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.notice-modal {
    max-width: 500px;
    width: 90%;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.note-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    text-align: left;
}

.notice-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 10px 0;
    text-align: left;
    overflow-y: auto;
    padding-bottom: 10px;
}

.notice-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}

.notice-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
}

.btn-hide-today {
    background: #f1f3f5;
    color: #868e96;
}

.btn-close {
    background: var(--primary);
    color: #fff;
}

.zero-note {
    max-width: 550px;
    width: 90%;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
}

.selection-modal {
    max-width: 600px;
    width: 95%;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.select-card {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px 15px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.selection-desc {
    text-align: left;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.8;
    border: 1px solid var(--border);
}

.channel-link {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

footer {
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: #999;
    font-size: 0.7rem;
    background: #fcfcfc;
    flex-shrink: 0;
}

footer span {
    font-weight: 700;
    color: var(--text-sub);
}

/* MBTI 링크 카드 */
.game-card.mbti-card {
    border-color: rgba(var(--primary-rgb), 0.30);
    background:
        radial-gradient(circle at 18% 12%, rgba(var(--primary-rgb), 0.13), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.game-card.mbti-card .icon-box {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.10);
}
.game-card.mbti-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.16), 0 0 0 1px rgba(var(--primary-rgb), 0.35);
}


/* ===== Home service dropdown + growth preview ===== */

.service-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.service-menu-wrap::after {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    height: 16px;
    background: transparent;
    pointer-events: auto;
}

.service-menu-panel:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


.service-menu-btn {
    height: 32px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-menu-wrap:hover .service-menu-btn,
.service-menu-wrap:focus-within .service-menu-btn {
    background: var(--primary);
    color: #fff;
}

.service-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(380px, 92vw);
    padding: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 4000;
}

.service-menu-wrap:hover .service-menu-panel,
.service-menu-wrap:focus-within .service-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.service-menu-panel::before {
    content: "";
    position: absolute;
    right: 24px;
    top: -7px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-left: 1px solid rgba(var(--primary-rgb), 0.18);
    border-top: 1px solid rgba(var(--primary-rgb), 0.18);
    transform: rotate(45deg);
}

.service-menu-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 3px 4px 11px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.service-menu-head b {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.service-menu-head span {
    font-size: 0.75rem;
    color: var(--text-sub);
    font-weight: 800;
}

.service-menu-list {
    display: grid;
    gap: 8px;
    max-height: min(68vh, 520px);
    overflow-y: auto;
    padding-right: 2px;
}

.service-menu-item {
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.service-menu-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.12);
}

.service-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 1.1rem;
}

.service-menu-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.service-menu-copy b {
    font-size: 0.86rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-menu-copy small {
    font-size: 0.74rem;
    color: var(--text-sub);
    font-weight: 650;
    line-height: 1.35;
    word-break: keep-all;
}

.home-growth-preview {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    background: transparent;
    overflow: visible;
    pointer-events: none;
}

.home-growth-stage {
    position: relative;
    width: min(58vh, 500px, 76vw);
    height: min(68vh, 620px);
    overflow: visible;
    isolation: isolate;
    background: transparent;
    pointer-events: none;
}

.home-growth-stage img {
    position: absolute;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

#homePlantFrame {
    z-index: 2;
    left: 50%;
    bottom: 0;
    width: 92%;
    height: auto;
    transform: translateX(-50%);
    object-position: center bottom;
    filter:
        drop-shadow(0 20px 24px rgba(42, 60, 43, 0.20))
        drop-shadow(0 0 18px rgba(96, 198, 118, 0.22));
    animation: homePlantAura 3.6s ease-in-out infinite;
}

#homeWaterFrame {
    z-index: 3;
    left: 50%;
    top: 0;
    width: 70%;
    height: auto;
    opacity: 0;
    transform: translateX(-50%) scale(0.98);
    transform-origin: center top;
    filter: drop-shadow(0 10px 18px rgba(89, 144, 175, 0.16));
}

#homeWaterFrame.is-visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

@keyframes homePlantAura {
    0%, 100% {
        filter:
            drop-shadow(0 20px 24px rgba(42, 60, 43, 0.20))
            drop-shadow(0 0 12px rgba(96, 198, 118, 0.14));
    }
    50% {
        filter:
            drop-shadow(0 22px 30px rgba(42, 60, 43, 0.22))
            drop-shadow(0 0 28px rgba(96, 198, 118, 0.32));
    }
}

@media (max-width: 1180px) {
    .service-menu-panel {
        right: auto;
        left: 50%;
        transform: translate(-50%, -8px);
    }

    .service-menu-wrap:hover .service-menu-panel,
    .service-menu-wrap:focus-within .service-menu-panel,
    .service-menu-panel:hover {
        transform: translate(-50%, 0);
    }
}

@media (max-height: 760px) {
    .home-growth-stage {
        width: min(52vh, 440px, 74vw);
        height: min(66vh, 560px);
    }

    #homeWaterFrame {
        width: 62%;
    }
}



/* ===== ZERO GARDEN showcase copy ===== */
.home-growth-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.home-growth-showcase {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(420px, 560px) minmax(300px, 400px);
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 48px);
}

.home-growth-copy {
    justify-self: start;
    max-width: 380px;
    padding: 30px 30px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(20, 24, 28, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    text-align: left;
}

.growth-copy-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 14px;
}

.growth-copy-title {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.26;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #1f2937;
}

.growth-copy-desc {
    margin: 18px 0 0;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: -0.02em;
    color: #475569;
    font-weight: 500;
}

.growth-copy-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(71, 85, 105, 0.14);
    font-size: 0.92rem;
    line-height: 1.7;
    letter-spacing: -0.02em;
    color: #64748b;
    font-weight: 600;
}

.pot-preview-tabs {
    width: min(920px, 92vw);
}

@media (max-width: 1100px) {
    .home-growth-showcase {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-growth-copy {
        justify-self: center;
        max-width: 620px;
        text-align: center;
    }

    .growth-copy-note {
        text-align: center;
    }
}

@media (max-width: 760px) {
    .home-growth-showcase {
        width: 100%;
    }

    .home-growth-copy {
        width: min(92vw, 560px);
        padding: 22px 20px 20px;
        border-radius: 22px;
    }

    .growth-copy-eyebrow {
        font-size: 0.76rem;
        margin-bottom: 10px;
    }

    .growth-copy-title {
        font-size: 1.55rem;
        line-height: 1.34;
    }

    .growth-copy-desc {
        font-size: 0.95rem;
        line-height: 1.72;
        margin-top: 14px;
    }

    .growth-copy-note {
        margin-top: 14px;
        padding-top: 14px;
        font-size: 0.86rem;
    }
}


/* cherry-only simplified preview */
.home-growth-preview { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
