.mb-wrap { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; }

.mb-menu { display: flex; flex-direction: column; gap: 14px; }
.mb-hero {
    position: relative; display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg, #10243a 0%, #1b3a56 55%, #24506e 100%);
    border: 1px solid rgba(127, 212, 255, 0.25);
}
.mb-hero-drop {
    width: 52px; height: 52px; flex: 0 0 52px;
    background: radial-gradient(circle at 35% 30%, #bfe9ff 0%, #58b6ec 45%, #1f6fa8 100%);
    border-radius: 50% 50% 50% 4px;
    transform: rotate(45deg);
    box-shadow: 0 0 22px rgba(88, 182, 236, 0.55);
    animation: mbDropBob 2.6s ease-in-out infinite;
}
@keyframes mbDropBob { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-6px); } }
.mb-hero-txt h2 { margin: 0 0 4px; font-size: 1.35em; color: #d9efff; }
.mb-hero-txt p { margin: 0; font-size: 0.9em; color: #9cc4de; }

.mb-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

.mb-rooms-card { min-height: 120px; }
.mb-roomlist { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.mb-rl-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}
.mb-rl-host { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-rl-n { color: #8fb8d4; font-size: 0.85em; }
.mb-rl-st { color: #d4a25a; font-size: 0.85em; }

.mb-help { display: flex; flex-direction: column; gap: 12px; padding: 6px 4px; }
.mb-help h3 { margin: 0; color: #cfe8ff; }
.mb-help ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; color: #c8d8e4; }
.mb-help .mg-btn { align-self: flex-start; }

.mb-room { display: flex; flex-direction: column; gap: 14px; }
.mb-room-head { display: flex; align-items: center; justify-content: space-between; }
.mb-room-code { color: #9cc4de; }
.mb-room-code b { color: #ffd479; letter-spacing: 0.12em; font-size: 1.1em; }
.mb-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mb-seat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 10px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.mb-seat.is-mine { border-color: rgba(127, 212, 255, 0.6); background: rgba(88, 182, 236, 0.12); }
.mb-seat.is-bot { opacity: 0.75; }
.mb-seat-ic { font-size: 1.5em; }
.mb-seat-name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-seat-st { font-size: 0.8em; color: #8fb8d4; }
.mb-room-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.mb-room-hint { font-size: 0.85em; color: #7d99ad; }

.mb-play { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; }
.mb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mb-sc {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 6px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.mb-sc.is-turn {
    border-color: rgba(255, 212, 121, 0.85);
    background: rgba(255, 212, 121, 0.1);
    box-shadow: 0 0 12px rgba(255, 212, 121, 0.25);
}
.mb-sc.is-me .mb-sc-name { color: #7fd4ff; }
.mb-sc.is-out { opacity: 0.6; }
.mb-sc.is-out .mb-sc-name::after { content: ' ✓'; color: #8ee59a; }
.mb-sc.is-dead { opacity: 0.45; }
.mb-sc.is-dead .mb-sc-name { text-decoration: line-through; }
.mb-sc-name { font-weight: 700; font-size: 0.9em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-sc-sub { display: flex; align-items: center; gap: 8px; font-size: 0.82em; color: #9cc4de; }
.mb-sc-cards::before { content: '🂠 '; font-size: 0.9em; }
.mb-sc-ropes { display: inline-flex; gap: 2px; }
.mb-sc-ropes i { width: 5px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.mb-sc-ropes i.on { background: #d4a25a; }

.mb-stage { position: relative; flex: 1; min-height: 320px; border-radius: 12px; overflow: hidden; background: #120d0a; }
.mb-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.mb-dock { display: flex; flex-direction: column; gap: 6px; }
.mb-chatlog {
    height: 74px; overflow-y: auto; padding: 6px 10px;
    border-radius: 10px; background: rgba(0, 0, 0, 0.25);
    font-size: 0.85em; line-height: 1.45;
}
.mb-chat-line b { color: #7fd4ff; margin-right: 6px; }
.mb-chatrow { display: flex; gap: 8px; }
.mb-chatrow input {
    flex: 1; padding: 8px 12px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3); color: #e8f2fa;
}
.mb-chatrow input:focus { outline: none; border-color: rgba(127, 212, 255, 0.5); }

@media (max-width: 640px) {
    .mb-strip { grid-template-columns: repeat(2, 1fr); }
    .mb-stage { min-height: 240px; }
    .mb-chatlog { height: 56px; }
}
