.mobile-top-nav { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-fixed); flex-direction: column; background: var(--color-bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); padding-top: var(--safe-area-top); animation: slideInFromTop var(--duration-slow) var(--ease-out); } .nav-title-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-3); min-height: 44px; gap: var(--space-2); } .nav-title-left { display: flex; align-items: center; gap: var(--space-2); min-width: 0; flex: 1; } .nav-title-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; transition: all var(--duration-normal) var(--ease-spring); } .nav-title-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: navIconColorCycle 10s ease-in-out infinite; } .nav-title-icon svg circle { fill: currentColor; stroke: none; } @keyframes navIconColorCycle { 0%, 100% { stroke: rgba(255, 255, 255, 0.9); filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2)); } 33% { stroke: rgba(167, 139, 250, 1); filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.4)); } 66% { stroke: rgba(244, 114, 182, 1); filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.4)); } } .nav-title { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-text-primary); margin: 0; white-space: nowrap; letter-spacing: 0.02em; text-transform: uppercase; } .nav-title-right { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; } .nav-status { display: flex; align-items: center; gap: var(--space-1); } .nav-connection-dot { width: 10px; height: 10px; border-radius: var(--radius-full); background-color: var(--color-text-muted); flex-shrink: 0; transition: all var(--duration-normal) var(--ease-out); } .nav-connection-dot.is-online { background-color: var(--color-success); box-shadow: 0 0 6px var(--color-success), 0 0 12px var(--color-success); animation: statusDotPulse 2s ease-in-out infinite; } @keyframes statusDotPulse { 0%, 100% { box-shadow: 0 0 4px var(--color-success), 0 0 8px var(--color-success); transform: scale(1); } 50% { box-shadow: 0 0 8px var(--color-success), 0 0 16px var(--color-success), 0 0 24px rgba(34, 197, 94, 0.4); transform: scale(1.15); } } .nav-connection-label { font-size: var(--text-xs); color: var(--color-text-muted); transition: color var(--duration-fast) var(--ease-out); } .nav-connection-dot.is-online + .nav-connection-label { color: var(--color-success); } .nav-user-name { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--color-text-secondary); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: max-width var(--duration-normal) var(--ease-out); } .nav-action-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3) var(--space-2); } .nav-action-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-1); height: 38px; padding: 0 var(--space-3); min-width: 64px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-text-primary); font-size: var(--text-sm); font-weight: var(--font-medium); cursor: pointer; transition: all var(--duration-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; } .nav-action-btn:hover:not(:disabled) { background: var(--color-hover); border-color: var(--color-border-strong); } .nav-action-btn:active:not(:disabled) { transform: scale(0.96); animation: buttonPress var(--duration-fast) var(--ease-out); } .nav-action-btn:disabled { opacity: 0.4; cursor: not-allowed; } .nav-action-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); } #chatToggleBtnNav { overflow: visible; background: var(--color-bg-elevated); border: 2px solid var(--color-border); --led-color: #6366f1; --led-duration: 1s; box-shadow: none; } #chatToggleBtnNav.led-active { animation: ledStripProgress var(--led-duration) steps(8, end) forwards; } #chatToggleBtnNav:disabled { border-color: var(--color-border); animation: none; } #pipToggleBtnNav { overflow: visible !important; background: #1a1a1a; border: 2px solid #333; border-radius: 4px; min-width: 52px; height: 38px; padding: 0; position: relative; --led-color: #6366f1; --led-duration: 1s; } #pipToggleBtnNav.led-active { animation: ledStripProgress var(--led-duration) steps(8, end) forwards; } .pip-tv-antenna { position: absolute; width: 2px; height: 12px; background: linear-gradient(to top, #666, #999); top: -12px; border-radius: 1px; z-index: 10; } .pip-tv-antenna-left { left: 12px; transform: rotate(-25deg); transform-origin: bottom center; } .pip-tv-antenna-right { right: 12px; transform: rotate(25deg); transform-origin: bottom center; } .pip-tv-antenna::after { content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: radial-gradient(circle, #ccc, #888); border-radius: 50%; } .pip-tv-body { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; } .pip-tv-screen { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; border: 1px solid #444; border-bottom: none; margin: 2px 2px 0 2px; border-radius: 2px 2px 0 0; } .pip-tv-controls { height: 8px; background: linear-gradient(to bottom, #2a2a2a, #1a1a1a); display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 4px; margin: 0 2px 2px 2px; border-radius: 0 0 2px 2px; } .pip-tv-knob { width: 4px; height: 4px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #555, #222); box-shadow: inset 0 1px 1px rgba(255,255,255,0.1); } .pip-tv-knob.power { background: radial-gradient(circle at 30% 30%, #3a3, #151); } .pip-tv-video { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity var(--duration-normal) var(--ease-out); } .pip-tv-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: #666; background: linear-gradient(135deg, #111 25%, #1a1a1a 50%, #111 75%); } .pip-tv-fallback::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E"); opacity: 0.5; } .pip-tv-screen.has-video .pip-tv-fallback { opacity: 0; } .pip-eye { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5e6d3, #faf0e6); opacity: 0; pointer-events: none; transition: opacity var(--duration-normal) var(--ease-out); } .pip-tv-screen.pip-active .pip-eye { opacity: 1; } .pip-tv-screen.pip-active .pip-tv-video, .pip-tv-screen.pip-active .pip-tv-fallback { opacity: 0; } .eye-shape { width: 28px; height: 14px; background: #fff; border-radius: 70% 70% 60% 60% / 50% 50% 50% 50%; position: relative; overflow: hidden; animation: eyeBlinkReal 4s ease-in-out infinite; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), inset 0 -1px 2px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.2); background: linear-gradient(90deg, #fce4ec 0%, #fff 15%, #fff 85%, #fce4ec 100% ); } .eye-shape::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent); pointer-events: none; } .eye-iris { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #8B7355 0%, #6B5344 30%, #4a3728 60%, #2d1f14 100% ); box-shadow: inset 0 0 3px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.2); animation: eyeObserve 6s ease-in-out infinite; } .eye-iris::before { content: ''; position: absolute; inset: 1px; border-radius: 50%; background: repeating-conic-gradient( from 0deg, transparent 0deg 10deg, rgba(0,0,0,0.1) 10deg 12deg ); } .eye-pupil { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 4px; height: 4px; background: #000; border-radius: 50%; animation: pupilDilate 3s ease-in-out infinite; box-shadow: 0 0 2px rgba(0,0,0,0.8); } .eye-highlight { position: absolute; top: 2px; right: 2px; width: 3px; height: 2px; background: rgba(255, 255, 255, 0.95); border-radius: 50%; animation: eyeShimmer 2s ease-in-out infinite; } .eye-highlight-secondary { position: absolute; bottom: 3px; left: 2px; width: 2px; height: 1px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; } #pipToggleBtnNav:disabled { border-color: var(--color-border); animation: none; } #pipToggleBtnNav:disabled .pip-tv-body { opacity: 0.5; } #pipToggleBtnNav:disabled .pip-tv-antenna { opacity: 0.5; } .nav-action-contextual, .action-btn-contextual, .action-btn-desktop { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 90px; height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-md); font-weight: 500; font-size: var(--text-sm); cursor: pointer; overflow: visible; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; opacity: 1 !important; } .action-btn-desktop { min-width: 120px; height: 42px; font-size: var(--text-base); } .nav-action-contextual .action-state, .action-btn-contextual .action-state, .action-btn-desktop .action-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--space-2); opacity: 0; visibility: hidden; color: inherit; pointer-events: none; z-index: 1; } .nav-action-contextual .action-state.is-active, .action-btn-contextual .action-state.is-active, .action-btn-desktop .action-state.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; } .nav-action-contextual[data-state="start"], .action-btn-contextual[data-state="start"], .action-btn-desktop[data-state="start"], .btn.action-btn-contextual[data-state="start"], .btn.action-btn-desktop[data-state="start"] { background: var(--color-primary) !important; border: 2px solid var(--color-primary) !important; color: #fff !important; } .nav-action-contextual[data-state="start"]:not(:disabled), .action-btn-contextual[data-state="start"]:not(:disabled) { animation: startBtnBlink 2s ease-in-out infinite; } .action-btn-contextual[data-state="start"] .action-state, .action-btn-desktop[data-state="start"] .action-state, .action-btn-contextual[data-state="start"] .action-state .btn-icon, .action-btn-contextual[data-state="start"] .action-state .btn-text, .action-btn-desktop[data-state="start"] .action-state .btn-icon, .action-btn-desktop[data-state="start"] .action-state .btn-text { color: #fff !important; } .nav-action-contextual[data-state="start"]:hover:not(:disabled), .action-btn-contextual[data-state="start"]:hover:not(:disabled), .action-btn-desktop[data-state="start"]:hover:not(:disabled) { animation: none; background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: scale(1.02); } .nav-action-contextual[data-state="finding"], .action-btn-contextual[data-state="finding"], .action-btn-desktop[data-state="finding"] { background: var(--color-bg-surface); border: 2px solid var(--color-border); color: var(--color-text-secondary); } .action-spinner { width: 16px; height: 16px; border: 2px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; } .nav-action-contextual[data-state="next"], .action-btn-contextual[data-state="next"], .action-btn-desktop[data-state="next"] { background: var(--color-bg-elevated); border: 2px solid var(--color-border); color: var(--color-text-primary); } .nav-action-contextual[data-state="next"]:hover:not(:disabled), .action-btn-contextual[data-state="next"]:hover:not(:disabled), .action-btn-desktop[data-state="next"]:hover:not(:disabled) { background: var(--color-hover); border-color: var(--color-border-strong); transform: scale(1.02); } .nav-action-contextual.led-active[data-state="next"], .action-btn-contextual.led-active[data-state="next"], .action-btn-desktop.led-active[data-state="next"] { animation: ledStripProgress var(--led-duration, 1s) steps(8, end) forwards; } .nav-action-contextual:disabled, .action-btn-contextual:disabled, .action-btn-desktop:disabled { opacity: 0.6; cursor: not-allowed; animation: none !important; } .nav-action-contextual:disabled .action-state.is-active, .action-btn-contextual:disabled .action-state.is-active, .action-btn-desktop:disabled .action-state.is-active { opacity: 1; visibility: visible; } .nav-action-primary:disabled { background: var(--color-primary); opacity: 0.5; } .nav-action-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; } .nav-action-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: navActionIconColor 10s ease-in-out infinite; } @keyframes navActionIconColor { 0%, 100% { stroke: rgba(255, 255, 255, 0.9); filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.15)); } 33% { stroke: rgba(167, 139, 250, 1); filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.35)); } 66% { stroke: rgba(34, 211, 238, 1); filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.35)); } } .nav-action-label { font-size: var(--text-xs); } .nav-segment { display: flex; position: relative; background: var(--color-bg-base); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 3px; gap: 2px; margin: 0 auto; } .nav-segment::before { content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px); background: conic-gradient( from var(--border-angle, 0deg), #6366f1, #8b5cf6, #ec4899, #ef4444, #22c55e, #3b82f6, #6366f1 ); opacity: 0.4; z-index: -1; animation: rgbBorderRotate 4s linear infinite; will-change: transform; } .nav-segment::after { content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px); background: inherit; filter: blur(6px); opacity: 0.2; z-index: -2; animation: rgbBorderRotate 4s linear infinite; will-change: transform; } .nav-segment-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 34px; border: none; border-radius: calc(var(--radius-lg) - 2px); background: transparent; cursor: pointer; transition: all var(--duration-normal) var(--ease-out); -webkit-tap-highlight-color: transparent; } .segment-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 2s ease-in-out, filter 2s ease-in-out; } .segment-icon circle { fill: currentColor; stroke: none; } .nav-segment-btn:not(.nav-segment-active) .segment-icon { animation: segmentIconColorCycle 12s ease-in-out infinite; } @keyframes segmentIconColorCycle { 0%, 100% { stroke: rgba(255, 255, 255, 0.75); filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.15)); } 20% { stroke: rgba(167, 139, 250, 0.9); filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.2)); } 40% { stroke: rgba(244, 114, 182, 0.9); filter: drop-shadow(0 0 2px rgba(244, 114, 182, 0.2)); } 60% { stroke: rgba(34, 211, 238, 0.9); filter: drop-shadow(0 0 2px rgba(34, 211, 238, 0.2)); } 80% { stroke: rgba(52, 211, 153, 0.9); filter: drop-shadow(0 0 2px rgba(52, 211, 153, 0.2)); } } .nav-segment-btn:hover:not(.nav-segment-active) { background: var(--color-hover); } .nav-segment-btn:hover:not(.nav-segment-active) .segment-icon { stroke: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3)); animation-play-state: paused; } .nav-segment-btn.nav-segment-active { background: var(--color-primary); box-shadow: var(--shadow-md), 0 0 10px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.2); animation: popIn var(--duration-normal) var(--ease-spring); } .nav-segment-btn.nav-segment-active .segment-icon { stroke: #fff; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4)); animation: none; } .nav-segment-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .nav-contextual-btn { position: relative; width: 56px; height: 38px; flex-shrink: 0; margin-top: 8px; } .nav-context-pip, .nav-context-chat { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; transition: transform var(--duration-normal) var(--ease-spring), opacity var(--duration-normal) var(--ease-out); will-change: transform, opacity; display: flex; align-items: center; justify-content: center; } .nav-context-chat { padding: 0 var(--space-2); } .nav-context-pip { padding: 0; } .nav-context-pip { opacity: 1; transform: rotateY(0deg) scale(1); pointer-events: auto; } .nav-context-chat { opacity: 0; transform: rotateY(90deg) scale(0.8); pointer-events: none; } html[data-page="video"] .nav-context-pip { opacity: 0; transform: rotateY(-90deg) scale(0.8); pointer-events: none; } html[data-page="video"] .nav-context-chat { opacity: 1; transform: rotateY(0deg) scale(1); pointer-events: auto; } .nav-action-badge { display: none; position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--color-error); color: #fff; font-size: 0.6rem; font-weight: var(--font-bold); border-radius: var(--radius-full); align-items: center; justify-content: center; animation: popIn var(--duration-fast) var(--ease-spring); } .nav-action-badge:not(:empty) { display: flex; } .nav-game-only { display: flex; } html[data-page="video"] .nav-game-only { display: none; } .nav-video-only { display: none; } html[data-page="video"] .nav-video-only { display: flex; } .edge-swipe { display: none; position: fixed; top: 0; width: 24px; height: 100vh; height: 100dvh; z-index: var(--z-sticky); pointer-events: none; background: transparent; } .edge-swipe-left { left: 0; } .edge-swipe-right { right: 0; } @media (max-width: 767px), ((min-width: 768px) and (max-width: 899px) and (orientation: portrait)) { .app-container { display: flex; flex-direction: row; width: 200vw; height: 100vh; height: 100dvh; transform: translateX(var(--pager-x, 0)); transition: transform var(--duration-slow) var(--ease-out); grid-template-columns: unset; } .panel { flex: 0 0 100vw; width: 100vw; height: 100vh; height: 100dvh; border: none; padding: var(--space-2); padding-top: calc(var(--navbar-height) + var(--action-bar-height) + var(--safe-area-top) + var(--space-2)); } .mobile-top-nav { display: flex; } .game-panel { border-right: none; } .video-panel { border-left: 1px solid var(--color-border); } .edge-swipe { display: block; pointer-events: auto; } .pip { display: block; } html[data-page="video"] .pip { opacity: 0; pointer-events: none !important; visibility: hidden; } html[data-page="video"] { --pager-x: -100vw; } html[data-page="game"] { --pager-x: 0; } .mobile-only { display: flex !important; } .desktop-only { display: none !important; } .panel-header { display: none; } .panel-actions { display: none; } .call-controls { display: none !important; } .game-host { flex: 1; position: relative; border-radius: var(--radius-md); min-height: 0; overflow: hidden; } .game-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; } .video-grid { gap: var(--space-2); } .chat-drawer { width: 100%; max-width: 100%; } }