/* ==================== 基本樣式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.screen.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* ==================== 首頁樣式 ==================== */
#home-screen {
    text-align: center;
    padding-top: 40px;
}

.bg-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

.title-img {
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
}

.robot-img {
    width: 220px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

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

.btn-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: end;
    column-gap: 26px;
    row-gap: 34px;
    padding: 0 20px;
    max-width: 520px;
    margin: 0 auto;
}

/* Circular icon button with a label below it, matching the reference. */
.v2-btn {
    position: relative;
    width: 84px;
    height: 84px;
    padding: 12px;
    background: rgba(255, 255, 255, .10);
    border: 2px solid rgba(255, 255, 255, .30);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    backdrop-filter: blur(8px);
}

.v2-btn:hover {
    background: rgba(255, 255, 255, .20);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

.v2-btn img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

.v2-btn span {
    position: absolute;
    left: 50%;
    top: calc(100% + 9px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 118px;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
}

/* ==================== 子頁面樣式 ==================== */
.sub-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -1;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    display: grid;
    place-items: center;
}

.sub-title {
    text-align: center;
    color: white;
    font-size: 28px;
    margin: 60px 0 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==================== 認行星樣式 ==================== */
.planet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

.planet-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.planet-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.planet-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.planet-card p {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.detail-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    margin: 20px;
    color: white;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.fact-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.sound-btn {
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    padding: 0;
    color: white;
    font-size: 22px;
    cursor: pointer;
    margin-top: 10px;
    display: grid;
    place-items: center;
}

/* ==================== 聽故事樣式 ==================== */
.story-list {
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

.story-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.story-icon {
    font-size: 40px;
}

.story-info {
    flex: 1;
    color: white;
}

.story-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.story-info p {
    font-size: 14px;
    opacity: 0.8;
}

.play-btn {
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
}

/* ==================== 唱太空歌樣式 ==================== */
.music-player {
    padding: 0 20px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.song-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.song-display {
    text-align: center;
    color: white;
}

.song-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.song-display h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.play-btn-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.song-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.song-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.song-item.active {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== 同我講幫我畫樣式 ==================== */
.chat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin: 0 20px;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.chat-bubble {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.chat-bubble.user {
    flex-direction: row-reverse;
}

.bubble-avatar {
    font-size: 30px;
}

.bubble-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 18px;
    color: white;
    max-width: 70%;
    line-height: 1.4;
}

.chat-bubble.user .bubble-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-input-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-send {
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

/* ==================== 控制台樣式 ==================== */
.console-box {
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

.console-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.green {
    background: #4CAF50;
}

.status-dot.blue {
    background: #2196F3;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.console-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.console-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.console-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.console-item.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.console-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.console-item p {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    margin: 0 auto;
    position: relative;
    transition: background 0.3s;
}

.console-item.active .toggle-switch {
    background: #4CAF50;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.console-item.active .toggle-switch::after {
    transform: translateX(24px);
}

/* ==================== AI 十萬個為什麼樣式 ==================== */
.llm-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin: 0 20px;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.llm-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.llm-robot-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.llm-robot-info h3 {
    color: white;
    font-size: 18px;
}

.llm-robot-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.llm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.llm-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.llm-msg.user {
    flex-direction: row-reverse;
}

.llm-avatar {
    font-size: 30px;
}

.llm-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 18px;
    color: white;
    max-width: 75%;
    line-height: 1.4;
}

.llm-msg.user .llm-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.llm-voice-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    color: #4CAF50;
    font-size: 14px;
}

.voice-wave {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    animation: wave 1s infinite;
}

@keyframes wave {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.llm-input-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.llm-voice-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.llm-voice-btn:hover {
    transform: scale(1.1);
}

.llm-voice-btn.listening {
    animation: pulse 1s infinite;
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
}

.llm-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
}

.llm-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.llm-send {
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.llm-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.llm-quick-questions button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 14px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.llm-quick-questions button:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== 響應式設計 ==================== */

@media (max-width: 400px) {
    .btn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .v2-btn {
        padding: 15px 8px;
        font-size: 14px;
    }
    
    .v2-btn img {
        width: 50px;
        height: 50px;
    }
    
    .planet-grid,
    .console-grid,
    
    
    .sub-title {
        font-size: 24px;
    }
}


/* ==================== 太空遊戲 ==================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px 30px;
}

.game-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 22px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.game-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.game-card h3 { font-size: 17px; line-height: 1.2; }
.game-card p { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.2; }

.game-panel {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(10, 18, 40, .68);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.game-tip { text-align: center; opacity: .85; margin-bottom: 20px; }

.matching-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}

.memory-card {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform .35s;
}

.memory-card.flipped,
.memory-card.matched { transform: rotateY(180deg); }

.memory-card.matched { box-shadow: 0 0 0 3px rgba(76, 175, 80, .8); }

.card-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: inherit;
    backface-visibility: hidden;
    font-size: 38px;
}

.card-back { background: rgba(255, 255, 255, .16); }
.card-front { background: rgba(255, 255, 255, .92); transform: rotateY(180deg); }

.game-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 520px;
    margin: 18px auto 0;
    color: #fff;
}

.game-actions button {
    border: 0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #4CAF50;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* ==================== AIOT 控制台 ==================== */
.console-panel {
    max-width: 960px;
    min-height: calc(100vh - 220px);
    margin: 0 auto;
    background: rgba(8, 15, 34, .72);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
}

.console-panel-header { text-align: center; margin-bottom: 18px; }
.console-panel-header h3 { font-size: 24px; }
.console-panel-header p { color: rgba(255,255,255,.72); margin-top: 6px; }

.console-section {
    background: rgba(255, 255, 255, .08);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 16px;
}

.console-section h4 { margin-bottom: 14px; font-size: 18px; }

.humidity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.humidity-item,
.sensor-card {
    background: rgba(255, 255, 255, .09);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}

.humidity-item span,
.sensor-card span {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 13px;
    margin-bottom: 6px;
}

.humidity-item strong,
.sensor-card strong { font-size: 20px; }

.console-good {
    margin-top: 14px;
    text-align: center;
    color: #8ff0a4;
    font-size: 14px;
}

.aiot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.aiot-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all .25s;
    overflow: hidden;
}

.aiot-item span { font-size: 18px; }
.aiot-item.active {
    background: rgba(76, 175, 80, .22);
    border-color: rgba(76, 175, 80, .72);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, .35);
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ==================== 大螢幕佈局 ==================== */
@media (min-width: 900px) {
    #home-screen {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 34px 38px 28px;
    }

    .title-img {
        width: min(420px, 38vw);
        margin: 0 auto;
    }

    .robot-img {
        width: 240px;
        margin: 10px auto;
    }

    .btn-grid {
        grid-template-columns: repeat(7, auto);
        justify-content: center;
        align-items: end;
        column-gap: 36px;
        row-gap: 34px;
        max-width: 1250px;
        width: 100%;
    }

    .v2-btn { width: 84px; height: 84px; font-size: 13px; }
}

@media (max-width: 720px) {
    .humidity-grid { grid-template-columns: repeat(2, 1fr); }
    .aiot-grid { grid-template-columns: repeat(2, 1fr); }
    .matching-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ==================== 同我講幫我畫 ==================== */
.ai-chat-container {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    background: rgba(8, 15, 34, .7);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    padding: 20px;
    color: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.ai-welcome {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 255, 255, .09);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.ai-welcome-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 26px;
}

.ai-welcome p {
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
}

.ai-messages {
    min-height: 180px;
    max-height: min(48vh, 430px);
    overflow-y: auto;
    padding: 4px 2px 10px;
}

.ai-messages .chat-bubble {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-messages .chat-bubble.user {
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 22px;
}

.bubble-text {
    max-width: 72%;
    background: rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 12px 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.chat-bubble.user .bubble-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-bubble img {
    max-width: 100%;
    border-radius: 14px;
}

.ai-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.ai-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
}

.ai-text-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.ai-text-input::placeholder { color: rgba(255, 255, 255, .58); }

.ai-send-btn,
.ai-mic-btn,
.ai-img-btn {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    transition: transform .2s, filter .2s;
}

.ai-send-btn { background: #4CAF50; }
.ai-mic-btn { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.ai-img-btn { background: rgba(255, 255, 255, .18); }

.ai-send-btn:hover,
.ai-mic-btn:hover,
.ai-img-btn:hover { transform: scale(1.06); }

.ai-mic-btn.listening {
    animation: pulse 1s infinite;
    box-shadow: 0 0 0 4px rgba(245, 87, 108, .2);
}

.ai-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ai-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

.ai-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
}

.ai-toggle {
    display: inline-flex;
    align-items: center;
}

.ai-settings-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ai-settings-panel {
    margin-top: 14px;
    background: rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 16px;
}

.ai-settings-row {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.ai-settings-input,
.ai-settings-select {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    outline: none;
}

.ai-settings-input { color-scheme: dark; }

.ai-settings-select option { color: #111; }

.ai-save-btn {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: #fff;
    background: #4CAF50;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .ai-chat-container { padding: 15px; }
    .ai-input-area { flex-wrap: wrap; }
    .ai-input-box { width: 100%; }
    .ai-mic-btn, .ai-img-btn { flex: 1; }
}


/* ==================== AI 十萬個為什麼補充樣式 ==================== */
.llm-chat {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    background: rgba(8, 15, 34, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    padding: 20px;
    color: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    min-height: min(68vh, 620px);
    display: flex;
    flex-direction: column;
}

.robot-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: rgba(255, 255, 255, .14);
}

.robot-status h3 { color: #fff; font-size: 19px; }
.robot-status p { color: rgba(255, 255, 255, .72); font-size: 14px; }

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.quick-btn {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.quick-btn:hover { background: rgba(255, 255, 255, .22); }

.record-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    color: #fff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    cursor: pointer;
}

.record-btn.listening { animation: pulse 1s infinite; }


.aiot-status {
    min-height: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}


.ctrl-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* ==================== iPad / tablet optimization ==================== */
html, body {
    overscroll-behavior: none;
}

body {
    -webkit-text-size-adjust: 100%;
}

button, input, select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

@media (min-width: 744px) and (max-width: 1366px) {
    .screen {
        padding: max(24px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
    }

    .back-btn {
        top: max(24px, env(safe-area-inset-top));
        left: max(26px, env(safe-area-inset-left));
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .sub-title {
        margin: 92px 0 36px;
        font-size: clamp(30px, 3.4vw, 42px);
    }

    .planet-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        max-width: 1120px;
    }

    .planet-img {
        width: 100px;
        height: 100px;
    }

    .story-list {
        max-width: 920px;
    }

    .story-card {
        min-height: 88px;
    }

    .music-player {
        max-width: 620px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1020px;
    }

    .game-card {
        padding: 26px;
    }

    .game-card img {
        width: 82px;
        height: 82px;
    }

    .console-panel,
    .game-panel {
        max-width: 1120px;
        padding: 30px;
    }

    .ai-chat-container,
    .llm-chat {
        width: min(960px, calc(100% - 56px));
        padding: 26px;
    }

    .quick-btn,
    .ai-settings-btn,
    .record-btn,
    .game-actions button {
        min-height: 48px;
    }
}

/* iPad portrait: keep seven controls as 4 + 3 with comfortable targets. */
@media (min-width: 744px) and (max-width: 1180px) and (orientation: portrait) {
    #home-screen {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100svh;
        padding: 52px 46px 46px;
    }

    .title-img {
        width: min(430px, 54vw);
        margin: 0 auto;
    }

    .robot-img {
        width: 300px;
        margin: 10px auto;
    }

    .btn-grid {
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        align-items: end;
        column-gap: 40px;
        row-gap: 42px;
        width: 100%;
        max-width: 720px;
    }

    .v2-btn {
        width: 96px;
        height: 96px;
    }

    .v2-btn img {
        width: 58px;
        height: 58px;
    }

    .v2-btn span {
        font-size: 15px;
        top: calc(100% + 11px);
        max-width: 126px;
    }
}

/* iPad landscape: one row of large circular buttons. */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    #home-screen {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100svh;
        padding: 64px 38px 96px;
    }

    .title-img {
        width: min(500px, 46vw);
        max-width: none;
    }

    .robot-img {
        width: 260px;
        margin: 6px auto;
    }

    .btn-grid {
        grid-template-columns: repeat(7, auto);
        justify-content: center;
        align-items: end;
        column-gap: 40px;
        row-gap: 38px;
        max-width: 840px;
        transform: translateX(-14px);
    }

    .v2-btn {
        width: 80px;
        height: 80px;
    }

    .v2-btn img {
        width: 44px;
        height: 44px;
    }

    .v2-btn span {
        font-size: 15px;
        top: calc(100% + 8px);
        max-width: 94px;
    }
}

/* ==================== Game UI refresh ==================== */
.game-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 20px;
}

.game-hero img {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

.game-hero-info h3 {
    margin: 0 0 6px;
    font-size: 21px;
}

.game-hero-info p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.5;
}

.card-front img {
    width: 82%;
    height: 82%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

@media (max-width: 620px) {
    .game-hero {
        align-items: flex-start;
        gap: 14px;
        padding: 14px;
    }
    .game-hero img {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }
    .game-hero-info h3 { font-size: 18px; }
    .game-hero-info p { font-size: 14px; }
}

/* Provided section artwork, softened for readability. */
#planets-screen .sub-bg,
#stories-screen .sub-bg,
#music-screen .sub-bg,
#chat-screen .sub-bg,
#console-screen .sub-bg,
#llm-screen .sub-bg {
    background-image: linear-gradient(rgba(8,14,34,.80), rgba(9,17,40,.92));
    background-position: center;
    background-size: cover;
}

#planets-screen .sub-bg { background-image: linear-gradient(rgba(8,14,34,.78), rgba(9,17,40,.92)), url('assets/sub_planets.png'); }
#stories-screen .sub-bg { background-image: linear-gradient(rgba(8,14,34,.78), rgba(9,17,40,.92)), url('assets/sub_stories.png'); }
#music-screen .sub-bg { background-image: linear-gradient(rgba(8,14,34,.78), rgba(9,17,40,.92)), url('assets/sub_music.png'); }
#chat-screen .sub-bg { background-image: linear-gradient(rgba(8,14,34,.78), rgba(9,17,40,.92)), url('assets/sub_chat.png'); }
#console-screen .sub-bg { background-image: linear-gradient(rgba(8,14,34,.78), rgba(9,17,40,.92)), url('assets/sub_console.png'); }
#llm-screen .sub-bg { background-image: linear-gradient(rgba(8,14,34,.78), rgba(9,17,40,.92)), url('assets/sub_ai.png'); }

/* ==================== image2 game page ==================== */
#games-screen .sub-bg {
    background-image:
        linear-gradient(rgba(6,12,32,.72), rgba(8,16,38,.88)),
        url('assets/games/ai/page-bg.jpg');
    background-position: center;
    background-size: cover;
}

.games-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    justify-items: center;
    align-items: end;
    gap: 28px;
    row-gap: 56px;
    max-width: 680px;
}

.game-card {
    position: relative;
    width: 112px;
    height: 112px;
    padding: 0;
    border-radius: 50%;
    overflow: visible;
    display: grid;
    place-items: center;
}

.game-card img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0,0,0,.30);
}

.game-card-label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 158px;
    text-align: center;
    color: #fff;
}

.game-card-label h3 {
    font-size: 16px;
    line-height: 1.2;
    margin: 0 0 3px;
    text-shadow: 0 2px 5px rgba(0,0,0,.55);
}

.game-card-label p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,.45);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.04);
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 20px 38px rgba(0,0,0,.26);
}

@media (min-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        max-width: 920px;
        column-gap: 42px;
        row-gap: 64px;
    }
    .game-card { width: 124px; height: 124px; }
    .game-card img { width: 86px; height: 86px; }
}

/* ==================== image2 console UI ==================== */
#console-screen .sub-bg {
    background-image:
        linear-gradient(rgba(6,12,32,.74), rgba(8,16,38,.90)),
        url('assets/console/ai/page-bg.jpg');
    background-position: center;
    background-size: cover;
}

.console-panel {
    background: rgba(5,11,28,.70);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 26px 80px rgba(0,0,0,.34), 0 0 0 1px rgba(120,220,255,.08) inset;
    overflow: hidden;
}

.console-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: center;
    background: linear-gradient(120deg, rgba(120,220,255,.16), rgba(153,102,255,.14));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.console-hero img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0,0,0,.32);
}

.console-hero-copy h3 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.console-hero-copy p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
}

.console-section {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.aiot-item.active {
    background: rgba(120,220,255,.16);
    border-color: rgba(120,220,255,.70);
    box-shadow: inset 0 0 0 1px rgba(120,220,255,.30);
}

@media (max-width: 760px) {
    .console-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }
    .console-hero img {
        height: 180px;
    }
}

/* ==================== Playable game stages ==================== */
.game-stage {
    margin-top: 18px;
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.control-row button,
.control-row select {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
}

.control-row a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
}

.status-line {
    text-align: center;
    color: rgba(255,255,255,.82);
    margin-top: 14px;
}

.selfie-stage {
    position: relative;
    height: 340px;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,.16);
}

.selfie-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.selfie-stage video.hidden { display: none !important; }

.selfie-overlay {
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    font-size: 38px;
    backdrop-filter: blur(8px);
}

.sticker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sticker-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    font-size: 28px;
    cursor: pointer;
}

.sticker-btn.active {
    border-color: rgba(120,220,255,.8);
    background: rgba(120,220,255,.18);
}

#selfie-canvas {
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin: 18px auto 0;
    border-radius: 20px;
}

.hidden-board {
    position: relative;
    height: 420px;
    border-radius: 24px;
    background-image: linear-gradient(rgba(5,11,28,.58), rgba(5,11,28,.74)), url('assets/games/ai/hidden.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,.14);
    overflow: hidden;
}

.hidden-item {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10);
    font-size: 27px;
    cursor: pointer;
    transition: transform .2s, opacity .2s;
}

.hidden-item.found {
    opacity: .25;
    border-color: rgba(76,175,80,.9);
    box-shadow: 0 0 0 2px rgba(76,175,80,.35);
}

.hidden-item.missed {
    animation: shake .35s;
}

.target-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.target-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
}

.target-pill.done {
    opacity: .45;
    background: rgba(76,175,80,.22);
}

.pair-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pair-card {
    min-height: 88px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 12px;
}

.pair-card.selected {
    border-color: rgba(120,220,255,.8);
    background: rgba(120,220,255,.16);
}

.pair-card.matched {
    border-color: rgba(76,175,80,.9);
    background: rgba(76,175,80,.22);
    cursor: default;
}

.comms-readout {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.comms-readout div {
    background: rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}

.comms-readout span {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 13px;
    margin-bottom: 6px;
}

.comms-readout strong { font-size: 20px; }

.signal-bars {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: flex-end;
    height: 50px;
    margin-bottom: 16px;
}

.signal-bars span {
    width: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.16);
}

.signal-bars span:nth-child(1) { height: 22%; }
.signal-bars span:nth-child(2) { height: 38%; }
.signal-bars span:nth-child(3) { height: 56%; }
.signal-bars span:nth-child(4) { height: 74%; }
.signal-bars span:nth-child(5) { height: 92%; }
.signal-bars span.on { background: #8ff0a4; }

#comms-dial {
    width: 100%;
    accent-color: #8ff0a4;
}

.energy-path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.energy-node {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    color: #fff;
    padding: 18px 10px;
    cursor: pointer;
}

.energy-node span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

.energy-node.active {
    background: rgba(255,190,90,.20);
    border-color: rgba(255,190,90,.70);
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@media (max-width: 720px) {
    .pair-grid { grid-template-columns: repeat(2,1fr); }
    .comms-readout { grid-template-columns: 1fr; }
    .energy-path { grid-template-columns: repeat(2,1fr); }
    .hidden-board { height: 340px; }
}

/* ==================== image2 tech console layout ==================== */
.console-panel {
    background-image: linear-gradient(rgba(5,11,28,.82), rgba(6,14,34,.92)), url('assets/console/ai/panel-bg.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(120,220,255,.22);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(120,220,255,.06) inset;
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.console-hero {
    background: linear-gradient(120deg, rgba(120,220,255,.18), rgba(153,102,255,.16));
    border: 1px solid rgba(120,220,255,.20);
    border-radius: 26px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.console-grid {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    grid-template-areas:
        "humidity aiot"
        "sensors aiot";
    gap: 20px;
    align-items: stretch;
}

.humidity-section { grid-area: humidity; }
.aiot-section { grid-area: aiot; }
.sensor-section { grid-area: sensors; }

.console-section {
    border-radius: 26px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.16);
    background-color: rgba(5,11,28,.68);
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
}

.console-section h4 {
    position: relative;
    padding-left: 18px;
    font-size: 19px;
    letter-spacing: .4px;
    margin-bottom: 16px;
}

.console-section h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, #8ff0a4 0%, rgba(143,240,164,.2) 70%);
    box-shadow: 0 0 12px rgba(143,240,164,.7);
}

.humidity-section,
.sensor-section {
    background-image: linear-gradient(rgba(5,11,28,.78), rgba(5,11,28,.92)), url('assets/console/ai/sensors-bg.jpg');
    border-color: rgba(120,220,255,.24);
}

.aiot-section {
    background-image: linear-gradient(rgba(5,11,28,.78), rgba(5,11,28,.92)), url('assets/console/ai/aiot-bg.jpg');
    border-color: rgba(153,102,255,.30);
}

.humidity-grid,
.sensor-grid {
    gap: 14px;
}

.humidity-item,
.sensor-card {
    border: 1px solid rgba(120,220,255,.22);
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.humidity-item span,
.sensor-card span {
    letter-spacing: .4px;
}

.humidity-item strong,
.sensor-card strong {
    color: #e9f7ff;
    text-shadow: 0 0 18px rgba(120,220,255,.45);
}

.aiot-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.aiot-item {
    border-radius: 22px;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    font-size: 12px;
    line-height: 1.2;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.aiot-item span {
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(120,220,255,.35));
}

.aiot-item.active {
    border-color: rgba(120,220,255,.8);
    background: rgba(120,220,255,.18);
    box-shadow: inset 0 0 0 1px rgba(120,220,255,.35), 0 10px 24px rgba(0,0,0,.24);
}

.console-good {
    color: #a8ffbe;
    text-shadow: 0 0 14px rgba(143,240,164,.55);
}

@media (max-width: 760px) {
    .console-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "humidity"
            "aiot"
            "sensors";
    }
    .aiot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .console-section { padding: 20px; }
}

.selfie-rover {
    position: absolute;
    left: 22px;
    bottom: 20px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    font-size: 34px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
}

.hidden-layout {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr);
    gap: 16px;
    align-items: start;
}

.target-panel {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    padding: 16px;
}

.target-panel h5 {
    margin: 0 0 12px;
    color: #fff;
}

.target-list {
    display: grid;
    gap: 10px;
    justify-content: unset;
}

@media (max-width: 760px) {
    .hidden-layout { grid-template-columns: 1fr; }
    .target-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
}
