@charset "UTF-8";

/* ==========================================================================
   Mugi Talk - Top & Login Screen Module
   ========================================================================== */

#login-screen {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

/* Logo Area */
.logo-area {
    text-align: center;
    margin: 12px 0 18px 0;
    width: 100%;
    max-width: 480px;
    padding: 0 10px;
}

.logo-area h1, h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(245, 158, 11, 0.18);
}

.respect-mark, .beta-tag {
    color: var(--gaming-gold) !important;
    font-style: normal !important;
    font-weight: 900;
    margin-left: 2px;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.catch-copy {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-top: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.version-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -2px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.version-beta {
    color: var(--gaming-gold);
    font-weight: 700;
}

/* Live Status HUD */
.mission-status-container {
    max-width: 320px;
    min-width: 240px;
    margin: 0 auto 16px auto;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 7px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', monospace;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), var(--btn-top-highlight);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hud-lamp {
    width: 8px;
    height: 8px;
    background: #475569;
    border-radius: 50%;
    transition: opacity 0.3s, background 0.3s;
}

.hud-lamp-active {
    background: var(--gaming-green);
    box-shadow: 0 0 10px var(--gaming-green);
    animation: hudBlink 2s infinite;
}

@keyframes hudBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hud-data {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.76rem;
    color: var(--gaming-green);
    letter-spacing: 1px;
}

/* P2P Info Area */
.p2p-info-area {
    margin-bottom: 8px;
    text-align: center;
}

.p2p-tech-line {
    font-family: 'Orbitron', sans-serif;
    color: var(--gaming-green);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.p2p-desc-line {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.highlight-white {
    color: var(--text-main);
    font-weight: 600;
}

/* Trust Shield Bar */
.trust-shield-bar {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--btn-top-highlight);
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.01em;
}

.trust-icon {
    width: 14px !important;
    height: 14px !important;
    color: var(--gaming-green);
}

/* Main Card Container */
.main-container {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-2xl);
    padding: 26px;
    box-shadow: var(--card-shadow), var(--btn-top-highlight);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 18px;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Inputs & Focus Styling */
input[type="text"], input[type="password"], #username, #room-id-input, #room-pass-input, #new-room-pass {
    width: 100%;
    padding: 13px 16px;
    background: rgba(8, 12, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    color: var(--text-main);
    font-family: var(--ui-font);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:hover,
input[type="password"]:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #64748b;
    font-weight: 500;
}

#username:focus, #room-id-input:focus, #room-pass-input:focus, #new-room-pass:focus {
    border-color: rgba(245, 158, 11, 0.85);
    background: rgba(11, 16, 26, 0.95);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.numeric-input {
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 3px;
}

/* Mic Setting Area */
.mic-area {
    background: rgba(11, 16, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xl);
    padding: 14px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mic-load-btn {
    width: 100%;
    padding: 11px 14px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--btn-top-highlight), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mic-load-btn svg {
    color: var(--gaming-gold);
}

.mic-load-btn:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(30, 41, 59, 1);
}

#mic-select {
    width: 100%;
    padding: 11px 12px;
    background: rgba(8, 12, 22, 0.85);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    margin-bottom: 10px;
    font-size: 0.88rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#mic-select:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

#mic-select:focus {
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--text-sub);
    line-height: 1.45;
}

.checkbox-label input {
    width: 17px;
    height: 17px;
    margin-right: 10px;
    flex-shrink: 0;
    accent-color: var(--gaming-gold);
    cursor: pointer;
}

.echo-title {
    color: var(--text-main);
    font-weight: 600;
}

.echo-desc {
    font-size: 0.78rem;
    color: var(--text-sub);
    display: inline-flex;
    align-items: center;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--card-border);
    margin: 20px 0;
}

/* Accordion Triggers & Panels */
.btn-accordion {
    width: 100%;
    padding: 14px 16px;
    margin-top: 8px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.btn-main-text {
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sub-text {
    font-size: 0.68rem;
    opacity: 0.65;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.2px;
}

#accordion-trigger {
    background: rgba(30, 41, 59, 0.75);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--btn-top-highlight), 0 4px 12px rgba(0, 0, 0, 0.25);
}

#accordion-trigger:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(30, 41, 59, 0.95);
}

#create-btn {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.12) 100%);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: var(--btn-top-highlight), 0 4px 16px rgba(245, 158, 11, 0.12);
}

#create-btn:hover {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.26) 0%, rgba(217, 119, 6, 0.18) 100%);
    border-color: var(--gaming-gold);
    box-shadow: var(--btn-top-highlight), 0 6px 20px rgba(245, 158, 11, 0.2);
}

.accordion-content {
    padding: 18px;
    background: rgba(15, 23, 42, 0.65);
    border-radius: var(--radius-xl);
    margin-top: 10px;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--gaming-gold);
    animation: slideDown 0.22s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.listen-only-box {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--card-border);
    padding: 10px 12px;
    border-radius: var(--radius-xl);
    margin-bottom: 10px;
}

.listen-only-text {
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
}

.terms-label {
    margin-top: 14px;
    margin-bottom: 14px;
    background: rgba(17, 24, 39, 0.8);
    padding: 11px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
}

.terms-text {
    flex: 1;
    text-align: left;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
}

.terms-link-inline {
    color: var(--gaming-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-join, .btn-create-exec {
    width: 100%;
    padding: 13px 16px;
    margin-top: 10px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--btn-top-highlight), 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-join:hover:not(:disabled), .btn-create-exec:hover:not(:disabled) {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    box-shadow: var(--btn-top-highlight), 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-join:disabled, .btn-create-exec:disabled {
    background: rgba(30, 41, 59, 0.5) !important;
    color: #475569 !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.or-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 14px 0;
}

.full-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 10px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

/* Battle Mode Box */
.battle-mode-box {
    border: 1px solid #1f2937;
    background: linear-gradient(135deg, #111827 0%, #0b0f19 100%);
    padding: 14px;
    border-radius: var(--radius-xl);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #f8fafc;
}

.codec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.codec-title {
    color: var(--gaming-gold);
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.codec-desc {
    font-size: 0.72rem;
    color: var(--text-sub);
    margin-top: 4px;
}

.kbps-badge {
    background: var(--gaming-red);
    color: #fff;
    font-size: 0.68em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.pro-tag {
    display: inline-block;
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--gaming-gold);
    padding: 1px 6px;
    margin-left: 5px;
    font-size: 0.7rem;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.12);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.pro-locked-feature {
    opacity: 0.75;
    cursor: not-allowed;
}

.pro-locked-feature::after {
    content: "PRO LOCKED";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 0.9rem;
    z-index: 10;
    backdrop-filter: blur(3px);
}

.battle-mode-box.pro-unlocked {
    opacity: 1;
    filter: none;
    cursor: pointer;
}

.battle-mode-box.pro-unlocked::after {
    display: none;
}

.battle-mode-box:has(input:checked) {
    border-color: var(--gaming-red);
    background: linear-gradient(135deg, #3b0707 0%, #1a0000 100%);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

/* Sponsor Frame */
.ad-container {
    text-align: center;
    margin: 12px auto 20px auto;
    width: 100%;
    max-width: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sponsor-frame {
    width: 100%;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-2xl);
    padding: 14px 16px 16px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--btn-top-highlight);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 3px 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
}

.sponsor-icon {
    width: 12px !important;
    height: 12px !important;
    color: var(--gaming-gold);
}

.sponsor-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-container img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Briefing Section */
details.briefing {
    margin-top: 8px;
    width: 100%;
    max-width: 460px;
    color: var(--text-sub);
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
    text-align: left;
}

details.briefing summary {
    cursor: pointer;
    list-style: none;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-sub);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

details.briefing summary::-webkit-details-marker {
    display: none;
}

details.briefing summary:hover {
    color: var(--gaming-gold);
}

.briefing-content {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-2xl);
    margin-top: 14px;
    line-height: 1.8;
    font-size: 0.85rem;
    color: #e2e8f0;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.badge-pro-inline {
    display: inline-block;
    background: var(--gaming-gold);
    color: #0b0f19;
    font-size: 0.68em;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 900;
    margin-left: 6px;
    font-family: 'Orbitron', sans-serif;
}

.mission-start-text {
    display: block;
    margin-top: 14px;
    color: var(--gaming-gold);
    font-size: 1.1em;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
}

/* Footer Section */
.footer-links {
    margin-top: 28px;
    font-size: 0.78rem;
    color: var(--text-sub);
    text-align: center;
    line-height: 1.9;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    margin: 0 6px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gaming-gold);
}

.btn-share-x {
    background: rgba(17, 24, 39, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 20px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--btn-top-highlight), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-share-x:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(31, 41, 55, 0.95);
}

.telecom-number {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.telecom-number svg {
    color: var(--gaming-green);
}

.dev-container {
    margin-top: 10px;
    font-size: 0.85rem;
}

.text-gray {
    color: var(--text-muted);
}

.dev-link {
    color: var(--gaming-gold) !important;
    font-weight: 600;
}

.copyright-text {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mic Error Fallback Screen */
#mic-error-screen {
    max-width: 440px;
    margin: 40px auto;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.mic-error-title {
    color: #f87171;
    font-size: 1.2rem;
    margin-top: 0;
}

.mic-error-desc {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==========================================================================
   Mobile Optimization for Top Screen
   ========================================================================== */
@media screen and (max-width: 480px) {
    body { 
        padding: 14px 12px 220px 12px; 
    }
    .main-container { 
        padding: 20px 18px; 
    }
    .logo-area h1 { 
        font-size: 2.3rem; 
    }
    .trust-shield-bar { 
        padding: 10px; 
        gap: 6px; 
    }
    .trust-badge-item { 
        font-size: 0.68rem; 
        padding: 4px 8px; 
    }
    input[type="text"], input[type="password"] { 
        font-size: 16px !important; 
    }
}