@charset "UTF-8";

/* ==========================================================================
   Mugi Talk - Base Styles & Global Utilities
   ========================================================================== */

:root {
    /* Brand & Status Colors */
    --gaming-gold: #f59e0b;
    --gaming-gold-dark: #d97706;
    --gaming-gold-glow: rgba(245, 158, 11, 0.25);
    --gaming-green: #10b981;
    --gaming-green-readable: #34d399;
    --gaming-red: #ef4444;
    --gaming-black: #0b0f19;

    /* Enterprise Dark Slate Palette (Default / Comm Mode) */
    --bg-main: radial-gradient(circle at 50% 0%, #172033 0%, #0f172a 45%, #0b0f19 100%);
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.78);
    --card-bg-elevated: rgba(31, 41, 55, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-strong: #1f2937;
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.04);
    --btn-top-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);

    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;

    --input-bg: rgba(15, 23, 42, 0.85);
    --input-border: #1f2937;

    --radius-2xl: 16px;
    --radius-xl: 12px;
    --radius-lg: 8px;

    --ui-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none;
    background-color: var(--bg-color);
}

body {
    background: var(--bg-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--ui-font);
    margin: 0;
    padding: 24px 20px 240px 20px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    overflow-anchor: none;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Lucide Vector Icons Global Alignment & Sizing
   ========================================================================== */
svg.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    flex-shrink: 0;
    vertical-align: middle;
}

.inline-icon {
    width: 17px !important;
    height: 17px !important;
    display: inline-block;
    vertical-align: -3px;
    margin-right: 4px;
}

.inline-icon-sm {
    width: 15px !important;
    height: 15px !important;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ==========================================================================
   Base Button Behaviors
   ========================================================================== */
button {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    font-family: var(--ui-font);
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    box-shadow: var(--btn-top-highlight);
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

button: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;
}

/* ==========================================================================
   News Ticker & System Toast
   ========================================================================== */
#news-ticker {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 36px;
    background: rgba(17, 24, 39, 0.96);
    color: var(--gaming-gold);
    z-index: 99999;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-family: var(--ui-font);
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(8px);
}

.ticker-content {
    display: inline-block;
    padding-left: 100vw;
    animation: ticker-scroll 25s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

#ticker-close {
    position: absolute;
    right: 0; top: 0;
    height: 36px; width: 40px;
    background: rgba(17, 24, 39, 0.95);
    color: var(--text-sub);
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

#ticker-close:hover {
    color: #ffffff;
}

#toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 100000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast-msg {
    background: rgba(17, 24, 39, 0.96);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: var(--radius-xl);
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), var(--btn-top-highlight);
    border: 1px solid rgba(245, 158, 11, 0.45);
    backdrop-filter: blur(12px);
    animation: slideInUp 0.25s ease, fadeOut 0.4s ease 3.5s forwards;
    text-align: center;
}

@keyframes slideInUp {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================================================
   Global Utility Classes
   ========================================================================== */
.text-gold { color: var(--gaming-gold) !important; }
.text-red { color: #f87171 !important; }
.text-green { color: var(--gaming-green) !important; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 5px; }