
@font-face {
    font-family: 'GyeonggiMillenniumBackground';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Batang_Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}


.ed-scene {
    position: relative;
    width: 100%;
    min-height: 750px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
}

.ed-inner {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2.5vw, 20px);
    overflow-x: hidden;
    overflow-y: visible;
}

.ed-inner img{width: 100%;}
.ed-inner-wide {
    max-width: 980px;
}

.ed-title {
    font-family: 'GyeonggiMillenniumBackground', serif;
    font-size: 2.5rem;
	margin-bottom: 10px;
}

.ed-desc {
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: 0;
	display: flex;
    flex-direction: column;
    gap: 15px;
}

.ed-desc p:last-child { margin-bottom: 0; }

.ed-highlight {
    background: #ddff57;
    color: #111;
    padding: 0 4px;
    border-radius: 2px;
	font-weight: 600;
}

.ed-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 40px;
    border: none;
    border-radius: 4px;
    background: #f2e6c9;
    color: #111;
    font-size: clamp(14px, 2.2vw, 17px);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.ed-btn:hover { opacity: 0.9; }

.ed-btn-next {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: none;
    outline: none;
    background: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.ed-btn-next img {
    display: block;
    width: 100%;
    max-width: 255px;
    height: auto;
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
}



.ed-btn-start {
   background: linear-gradient(90deg, #81e8af, #00d1db);
    color: #222;
    border-radius: 999px;
    padding: 15px 60px;
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.4);
}
.ed-btn-start:hover { opacity: 0.92; }

.pc { display: block; }
.mo { display: none; }

.ed-object-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
	align-items: center;
  gap:20px;
}
.ed-object-wrap > img {
    min-width: 0;
}
.ed-object {
    max-width: 90%;
    height: auto;
}

.ed-object-zoom {
    cursor: zoom-in;
}
.ed-object-zoom.ed-object-poster {
    max-width: 300px;
    width: 100%;
}

.ed-object-chat {
    max-width: 360px;
    border: 1.5px solid #6ef396;
    border-radius: 16px;
    box-shadow: 0 0 6px rgba(110, 243, 150, 0.7), 0 0 14px rgba(110, 243, 150, 0.4);
}

.ed-object-glow {
   
    filter: drop-shadow(0 0 14px rgba(110, 243, 150, 0.75));
}

.ed-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.ed-modal-overlay.active {
    display: flex;
}
.ed-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.ed-modal-content img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
}
.ed-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.ed-answer-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}
.ed-answer-form {
    display: flex;
}
.ed-answer-input {
    padding: 10px 16px;
    border: none;
    border-radius: 6px 0 0 6px;
    width: min(70vw, 280px);
}
.ed-answer-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 0 6px 6px 0;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.ed-hint-toggle { display: none; }
.ed-hint {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(12px, 2vw, 14px);
    cursor: pointer;
    text-underline-offset: 3px;
    user-select: none;
}
.ed-hint-arrow {
    display: inline-block;
    width: 14px;
    height: 9px;
    transition: transform 0.3s ease;
}
.ed-hint-toggle:checked ~ .ed-hint .ed-hint-arrow {
    transform: rotate(180deg);
}
.ed-hint-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 15px;
    color: #ddff57;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}
.ed-hint-toggle:checked ~ .ed-hint-body {
    max-height: 100px;
    opacity: 1;
   
}

.ed-bgm {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
}
#ed_sound_btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-image: url(../img/bgm_on.jpg);
    background-color: #ed623f;
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
#ed_sound_btn.off { background-image: url(../img/bgm_off.jpg); }

@media (max-width: 767px) {
    .ed-scene { padding: 30px 16px; min-height: 550px; }
    .ed-title { font-size: 1.375rem; }
    .ed-desc { font-size: 0.8125rem; }
    .ed-answer-input { width: 60vw; }
    .ed-bgm { font-size: 11px; top: 12px; right: 12px; }
    #ed_sound_btn { width: 44px; height: 44px; }
    .pc { display: none; }
    .mo { display: block; }
}
