/* exp6.css - 左側控制面板 + 右側放大觀測區 */
.exp6-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 頂部狀態列 */
.exp6-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

.game-stats {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--lunar-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--lunar-color);
    font-weight: bold;
}

/* 主工作區佈局 */
.exp6-workspace {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

/* 左側控制面板：物件往下放，避免上方太散 */
.exp6-side-panel {
    flex: 1;
    min-width: 240px;
    background: var(--panel-bg);
    border-radius: 16px;
    padding: 25px 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 物件全部靠下方排列 */
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.panel-section {
    width: 100%;
}

/* 仰角顯示美化 */
.angle-display {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.angle-display .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.angle-display strong {
    font-size: 2.8rem;
    color: var(--accent-color);
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.angle-display .unit {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-left: 2px;
}

/* 拉桿樣式 */
.integrated-slider-v {
    width: 100%;
    cursor: pointer;
}

/* 練習模式選單 */
.moon-ctrl {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.moon-ctrl .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

/* 按鈕美化 */
.btn-check-large, .btn-next-large {
    width: 100%;
    height: 55px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.btn-check-large { background: var(--accent-color); color: var(--bg-color); }
.btn-check-large:hover { background: white; transform: translateY(-2px); }
.btn-next-large { background: #2ecc71; color: white; }
.btn-next-large:hover { background: #27ae60; transform: translateY(-2px); }

/* 回饋文字區 */
.feedback-area {
    min-height: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feedback-text { font-size: 1rem; font-weight: bold; }
.feedback-text.success { color: #2ecc71; }
.feedback-text.fail { color: #e74c3c; }

/* 右側大顯示區 */
.obs-sky-zone {
    flex: 2.8;
    height: 500px;
    background: radial-gradient(circle at 60% 90%, #1a2a4a 0%, #05070a 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.exp6-target-moon {
    position: absolute;
    width: 32px;
    height: 32px;
    z-index: 10;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

/* 觀測器軸心：稍微靠右 (60%) 使空間分布更均勻 */
.tool-fixed-container {
    position: absolute;
    left: 60%; 
    bottom: 30px;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
}

.clinometer-base {
    position: relative;
    width: 100%; height: 100%;
    transform-origin: 0px 0px;
}

.sighting-tube-red {
    position: absolute;
    top: -1px; left: -10px;
    width: 160px; height: 24px;
    background: #e74c3c;
    border-radius: 4px;
    border: 1px solid #c0392b;
    display: flex; align-items: center; padding-left: 10px;
}

.plumb-line-container {
    position: absolute;
    top: 10px; left: 10px;
    width: 2px; height: 180px;
    z-index: 15;
    transform-origin: top center;
}
.thread { width: 100%; height: 100%; background: #fff; box-shadow: 0 0 2px #000; }
.weight-clip {
    position: absolute; bottom: 0; left: -6px;
    width: 14px; height: 24px;
    background: #888;
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
}

@media (max-width: 850px) {
    .exp6-workspace { flex-direction: column-reverse; }
    .obs-sky-zone { height: 350px; }
}