:root { --bg-deep: #050505; --bg-panel: #141414; --bg-card: #1e1e1e; --text-main: #ffffff; --text-gold: #D4AF37; --gold-gradient: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C); --border-gold: 1px solid rgba(212, 175, 55, 0.4); --active-glow: 0 0 20px rgba(212, 175, 55, 0.5); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-deep); color: var(--text-main); font-family: 'Noto Sans KR', sans-serif; overflow-x: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #BF953F; }
h1, h2, h3, h4 { font-family: 'Cinzel', serif; text-transform: uppercase; }
.text-gold { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }

nav { position: fixed; top: 0; width: 100%; height: 90px; padding: 0 40px; background: rgba(0,0,0,0.95); border-bottom: 1px solid #333; z-index: 9999; display: flex; align-items: center; justify-content: space-between; }
.nav-left { flex: 1; }
.logo-img { height: 60px; width: auto; filter: drop-shadow(0 0 8px rgba(212,175,55,0.4)); transition: 0.3s; cursor: pointer; }
.logo-img:hover { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(212,175,55,0.8)); }
.nav-center { flex: 2; display: flex; justify-content: center; gap: 40px; }
.nav-link { background: none; border: none; color: #aaa; font-size: 15px; cursor: pointer; transition: 0.3s; font-family: 'Cinzel', serif; font-weight: bold; text-transform: uppercase; }
.nav-link:hover { color: var(--text-gold); }
.nav-right { flex: 1; display: flex; justify-content: flex-end; }
.buyer-btn { padding: 10px 25px; background: var(--gold-gradient); color: #000; border: none; border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
.buyer-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

section { padding: 100px 20px; max-width: 1400px; margin: 0 auto; border-bottom: 1px solid #222; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 10px; }
.section-header p { color: #888; font-size: 1.1rem; }

#new-features { padding-top: 150px; }
.new-grid { display: grid; gap: 20px; width: 100%; }
.new-card { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid #333; background: #080808; cursor: pointer; transition: 0.3s; aspect-ratio: 16/9; display: flex; flex-direction: column; }
.new-card:hover { border-color: #D4AF37; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.new-media-box { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.new-media-box img, .new-media-box video { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; display: block; }
.new-card:hover .new-media-box img { transform: scale(1.05); }
.new-caption { padding: 15px; background: #111; border-top: 1px solid #222; text-align: center; z-index: 2; }
.new-title { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: #fff; }
.new-desc { font-size: 0.85rem; color: #888; font-family: 'Noto Sans KR', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; }

.version-block { display: flex; max-width: 1200px; margin: 0 auto 100px; gap: 60px; align-items: flex-start; padding: 40px; border-radius: 20px; transition: 0.5s; }
.version-block:hover { background: rgba(20, 20, 20, 0.6); box-shadow: 0 0 40px rgba(0,0,0,0.5); }
.version-block:nth-child(even) { flex-direction: row-reverse; }
.ver-text { flex: 1; text-align: center; }
.ver-badge { display: inline-block; padding: 5px 15px; border: 1px solid #D4AF37; color: #D4AF37; border-radius: 20px; font-size: 0.9rem; margin-bottom: 20px; font-weight: bold; }
.ver-title { font-size: 2.5rem; color: #fff; margin-bottom: 20px; line-height: 1.2; }
.ver-short { color: #ddd; font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.ver-long-container { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.5s ease-out; background: rgba(0,0,0,0.6); border-radius: 10px; margin-top: 0; }
.version-block:hover .ver-long-container { max-height: 2000px; opacity: 1; margin-top: 20px; padding: 20px; border-top: 2px solid #D4AF37; }
.ver-long { color: #bbb; font-size: 0.9rem; line-height: 1.6; text-align: left; white-space: normal; word-break: keep-all; }
.ver-long div[style*="background"] { padding: 15px; margin-top: 15px; border-radius: 8px; word-break: break-word; }
.hover-hint { font-size: 0.8rem; color: #D4AF37; margin-top: 10px; opacity: 0.7; animation: bounce 2s infinite; }
.ver-gallery { flex: 1; min-width: 400px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.ver-img-card { width: 100%; aspect-ratio: 16/10; background: #000; border: 1px solid #333; border-radius: 10px; overflow: hidden; cursor: pointer; transition: 0.3s; }
.ver-img-card:hover { border-color: #D4AF37; transform: scale(1.03); }
.ver-img-card img { width: 100%; height: 100%; object-fit: cover; }

.builder-layout { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.builder-gallery { flex: 2; }
.builder-controls { flex: 1; min-width: 350px; background: var(--bg-panel); padding: 25px; border-radius: 15px; border: 1px solid #333; position: sticky; top: 110px; height: fit-content; }
.category-group { margin-bottom: 50px; }
.category-head { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; display: flex; align-items: baseline; justify-content: space-between; }
.category-title { font-size: 1.4rem; color: var(--text-gold); margin: 0; }
.category-sub { font-size: 0.9rem; color: #666; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.select-card-wrapper { display: none; flex-direction: column; align-items: center; cursor: pointer; transition: 0.3s; }
.select-card-wrapper.loaded { display: flex; animation: fadeIn 0.5s; }
.select-card-wrapper:hover .select-img-box { border-color: #999; transform: translateY(-3px); }
.select-img-box { width: 100%; aspect-ratio: 16/10; background: #000; border: 2px solid #333; border-radius: 8px; overflow: hidden; position: relative; transition: 0.3s; }
.select-img-box img { width: 100%; height: 100%; object-fit: cover; }
.select-card-wrapper.selected .select-img-box { border: 2px solid #D4AF37; box-shadow: var(--active-glow); transform: scale(1.02); }
.check-mark { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; background: rgba(0,0,0,0.6); border: 2px solid #888; border-radius: 50%; transition: 0.3s; z-index: 2; }
.select-card-wrapper.selected .check-mark { background: #D4AF37; border-color: #fff; box-shadow: 0 0 10px #D4AF37; }
.card-label { margin-top: 8px; font-size: 0.85rem; color: #888; font-weight: bold; letter-spacing: 1px; transition: 0.3s; font-family: 'Cinzel', serif; }
.select-card-wrapper.selected .card-label { color: #D4AF37; }

.inp-label { display: block; color: #fff; margin-bottom: 5px; font-weight: bold; margin-top: 15px; font-size: 0.9rem; }
.inp-label:first-child { margin-top: 0; }
.inp-text { width: 100%; padding: 10px; background: #000; border: 1px solid #444; color: #D4AF37; border-radius: 5px; outline: none; margin-bottom: 5px; font-size: 0.9rem; }
.server-name-row { display: flex; gap: 10px; align-items: flex-end; width: 100%; }
.name-group { flex: 1; display: flex; flex-direction: column; position: relative; }
.name-group input { margin-bottom: 0; }
.name-check-wrapper { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; font-size: 0.75rem; color: #888; background: rgba(0,0,0,0.8); padding: 0 5px; }
.name-check-wrapper input { margin-right: 4px; accent-color: #D4AF37; width: auto; }
.ver-select-group { display: flex; gap: 5px; margin-bottom: 15px; }
.ver-btn { flex: 1; padding: 10px 0; background: #000; border: 1px solid #444; color: #888; cursor: pointer; border-radius: 4px; font-weight: bold; font-size: 0.85rem; transition: 0.3s; font-family: 'Cinzel', serif; text-align: center; }
.ver-btn:hover { border-color: #D4AF37; color: #fff; }
.ver-btn.active { background: var(--gold-gradient); color: #000; border-color: #fff; box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); font-weight: 900; }
.ver-btn.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: #000; border: 1px solid #D4AF37; border-radius: 5px; margin: 15px 0; }
.price-label { color: #aaa; font-size: 0.9rem; font-weight: bold; }
.price-value { color: #D4AF37; font-size: 1.2rem; font-weight: bold; font-family: 'Cinzel', serif; }
.dynamic-options { margin-bottom: 15px; border-top: 1px solid #333; padding-top: 10px; }
.opt-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; color: #ccc; cursor: pointer; padding: 5px; border-radius: 4px; transition: 0.2s; }
.opt-item:hover { background: rgba(255,255,255,0.05); }
.opt-label-group { display: flex; align-items: center; flex: 1; }
.opt-item input { accent-color: #D4AF37; margin-right: 8px; width: 16px; height: 16px; cursor: pointer; }
.opt-price { color: #D4AF37; font-size: 0.8rem; }
.order-box { width: 100%; height: 200px; background: #000; border: 1px solid #444; color: #ccc; padding: 15px; border-radius: 8px; resize: none; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.5; font-family: 'Consolas', monospace; }
.gold-btn { width: 100%; padding: 12px; background: var(--gold-gradient); color: #000; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 1rem; margin-bottom: 8px;}
.gold-btn:hover { filter: brightness(1.1); }
.gray-btn { width: 100%; padding: 10px; background: #333; color: #fff; border: 1px solid #555; border-radius: 5px; cursor: pointer; transition: 0.3s; font-size: 0.9rem; }
.ex-btn-wrapper { margin-top: 20px; text-align: center; border-top: 1px solid #333; padding-top: 20px; }
.ex-btn { width: 100%; padding: 15px; background: transparent; border: 2px solid #D4AF37; color: #D4AF37; font-size: 1rem; font-weight: bold; cursor: pointer; border-radius: 8px; transition: 0.3s; position: relative; overflow: hidden; }
.ex-btn:hover { background: rgba(212, 175, 55, 0.1); }
.ex-btn.highlight { animation: flashGold 1s ease-in-out 3; }
@keyframes flashGold { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); border-color: #D4AF37; } 50% { box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0); border-color: #fff; background: rgba(212, 175, 55, 0.2); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); border-color: #D4AF37; } }

.consult-btn { position: fixed; bottom: 30px; right: 30px; background: var(--gold-gradient); color: black; padding: 15px 25px; border-radius: 50px; font-weight: bold; text-decoration: none; box-shadow: 0 5px 20px rgba(212,175,55,0.4); z-index: 9999; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.consult-btn:hover { transform: translateY(-5px); animation: wiggle 0.5s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: translateY(-5px) rotate(0deg); } 25% { transform: translateY(-5px) rotate(-5deg); } 75% { transform: translateY(-5px) rotate(5deg); } }

.dl-float-btn { position: fixed; bottom: 30px; left: 30px; background: var(--gold-gradient); color: #000; padding: 15px 25px; border-radius: 50px; border: 2px solid rgba(255, 255, 255, 0.3); font-family: 'Noto Sans KR', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s ease; z-index: 9999; box-shadow: 0 5px 25px rgba(212,175,55,0.6); display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.dl-float-btn::after { content: none; }
.dl-float-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 35px rgba(212,175,55,0.8); filter: brightness(1.1); }
.ex-modal, .warning-modal, .feature-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 30000; display: none; align-items: center; justify-content: center; }
.ex-modal.active, .warning-modal.active, .feature-modal.active { display: flex; animation: fadeIn 0.3s; }
.ex-box { background: #111; border: 1px solid #D4AF37; padding: 20px; border-radius: 10px; width: 80%; height: 80%; display: flex; flex-direction: column; }
.ex-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.ex-gallery { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; padding-right: 10px; }
.ex-item { width: 100%; border-radius: 5px; border: 1px solid #333; }
.feature-box { display: flex; width: 90vw; max-width: 1400px; height: 80vh; background: #111; border: 2px solid #D4AF37; border-radius: 15px; overflow: hidden; box-shadow: 0 0 50px rgba(212,175,55,0.2); position: relative; }
.feature-left { flex: 2; background: #000; display: flex; align-items: center; justify-content: center; border-right: 1px solid #333; }
.feature-media { width: 100%; height: 100%; object-fit: contain; }
.feature-right { flex: 1; padding: 40px; overflow-y: auto; position: relative; }
.feature-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: #D4AF37; color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 10; }
.feature-close:hover { background: #fff; transform: rotate(90deg); }
.warning-box { background: #111; border: 2px solid #ff3333; padding: 30px; border-radius: 15px; text-align: center; max-width: 95vw; width: auto; display: inline-block; position: relative; }
.warning-img { width: auto; height: auto; max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 5px; border: 1px solid #333; margin: 0 auto 20px; display: block; }
.warning-close { padding: 10px 30px; background: #333; color: #fff; border: 1px solid #555; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.login-box { background: #111; border: 1px solid #D4AF37; padding: 40px; border-radius: 15px; width: 400px; text-align: center; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #666; cursor: pointer; }

.zoom-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 20000; pointer-events: none; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s ease; }
.zoom-overlay.active { opacity: 1; }
.zoom-content { position: relative; transform: translateY(30px) scale(0.95); transition: transform 0.5s ease; display: flex; flex-direction: column; align-items: center; }
.zoom-overlay.active .zoom-content { transform: translateY(0) scale(1); }
.zoom-img-wrapper { display: flex; align-items: center; justify-content: center; width: auto; height: auto; max-width: 80vw; max-height: 80vh; background: rgba(0,0,0,0.8); border: 1px solid #333; box-shadow: 0 0 50px rgba(0,0,0,0.9); border-radius: 10px; }
.zoom-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

#downModal .ex-box { width: 90%; max-width: 500px; height: auto; max-height: 80vh; background: #080808; border: 2px solid #D4AF37; box-shadow: 0 0 50px rgba(212, 175, 55, 0.15); padding: 25px; display: flex; flex-direction: column; }
#downModal .ex-header { border-bottom: 1px solid #333; margin-bottom: 20px; padding-bottom: 10px; }
#title-down { font-size: 1.5rem; text-align: center; width: 100%; }
.down-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; overflow-y: auto; padding: 5px; }
.down-item { background: #111; border: 1px solid #444; border-radius: 8px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.down-item:hover { border-color: #D4AF37; background: linear-gradient(45deg, #1a1a1a, #2a2a2a); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); transform: translateY(-2px); }
.down-label { color: #D4AF37; font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: bold; z-index: 2; text-shadow: 0 2px 5px rgba(0,0,0,1); }
.down-ver { color: #666; font-size: 0.8rem; margin-top: 3px; font-family: sans-serif; }
.down-item:hover .down-ver { color: #aaa; }
.down-item.disabled { opacity: 0.5; cursor: not-allowed; border-color: #333; }
.down-item.disabled:hover { transform: none; box-shadow: none; border-color: #333; }
.down-item.disabled::after { content: "🔒 준비중"; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; color: #888; font-weight: bold; font-size: 0.9rem; }
#msg-down-footer { text-align: center; color: #ff5555; margin-top: 20px; font-size: 0.85rem; border-top: 1px solid #222; padding-top: 15px; animation: blinkRed 2s infinite; }
@keyframes blinkRed { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@media (max-width: 900px) {
    .version-block, .version-block:nth-child(even) { flex-direction: column; text-align: center; }
    .builder-layout, .feature-box { flex-direction: column; }
    .builder-controls { position: static; width: 100%; }
    .feature-left { height: 300px; border-bottom: 1px solid #333; }
}

img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-drag: none; pointer-events: none; }
input, textarea { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
#grp-res { position: relative; transition: 0.3s; }
#grp-res.locked { opacity: 0.2; pointer-events: none; filter: grayscale(100%); }
#grp-res.locked::after { content: '🔒 3.8 버전은 해상도 고정 (지원 안 함)'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.9); color: #fff; padding: 12px 20px; border: 1px solid #444; border-radius: 6px; font-weight: bold; font-size: 1rem; white-space: nowrap; z-index: 50; box-shadow: 0 0 15px rgba(0,0,0,0.5); }

.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 99999; display: flex; justify-content: center; align-items: center; }
.popup-box { width: 400px; background: #111; border: 2px solid #D4AF37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); color: #fff; font-family: 'Noto Sans KR', sans-serif; text-align: center; }
.popup-header { background: #222; padding: 15px; border-bottom: 1px solid #333; }
.popup-header h2 { margin: 0; color: #D4AF37; font-family: 'Cinzel', serif; font-size: 1.5rem; }
.popup-body { padding: 20px; line-height: 1.8; font-size: 0.95rem; color: #ddd; }
.popup-body p { margin: 5px 0; }
.popup-footer { padding: 10px 20px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.no-show-label { color: #888; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.popup-close-btn { background: #D4AF37; color: #000; border: none; padding: 8px 20px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.popup-close-btn:hover { background: #fff; }