/* ============================================
   AGIENTS Football - Pages Styles
   赛博朋克风格页面样式（参照 AWS Agentic Football Cup）
   ============================================ */

/* === 页面容器 === */
#app {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  overflow: hidden;
}

.page {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--bg-deep) 0%, #060810 100%);
}

/* ============== LOGIN PAGE ============== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-bg {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}

.login-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: float-particle 4s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-30px); opacity: 0.8; }
}

.login-card {
  position: relative;
  width: 400px;
  max-width: 90vw;
  padding: 40px 32px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  text-align: center;
  animation: card-enter 0.5s var(--ease-out-expo);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.login-logo .accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 4px;
}

.login-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent-cyan);
  margin-top: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.login-tabs {
  display: flex;
  gap: 0;
  margin: 28px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.login-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.login-tab.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

.login-form {
  display: none;
  text-align: left;
}

.login-form.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input, .team-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .team-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.team-input.small {
  max-width: 80px;
}

.login-error {
  color: #ff4444;
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}

/* ============== MAIN MENU ============== */
.main-menu {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #060810 50%, var(--bg-deep) 100%);
}

.menu-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.menu-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  /* 给全局静音按钮（#mute-btn，固定右上角 36×36 + 16px 边距）留出位置，避免重叠 */
  padding-right: 52px;
}

.top-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.top-logo .accent {
  color: var(--accent-cyan);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.user-avatar {
  font-size: 20px;
}

.user-name {
  color: var(--text-primary);
}

.user-level {
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 3px;
  font-size: 11px;
  color: var(--accent-cyan);
}

.currency-display {
  display: flex;
  gap: 12px;
}

.currency-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.coin-icon, .diamond-icon {
  font-size: 14px;
}

.menu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.menu-hero {
  text-align: center;
  margin-bottom: 48px;
}

.menu-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.menu-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent-cyan);
  margin-top: 8px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.menu-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 500px;
}

.menu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  width: 100%;
}

@media (max-width: 768px) {
  .menu-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .menu-cards { grid-template-columns: 1fr; }
}

.menu-card {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 8px;
}

.menu-card.glow-cyan::before { background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.08), transparent); }
.menu-card.glow-gold::before { background: radial-gradient(ellipse at center, rgba(255, 200, 0, 0.08), transparent); }
.menu-card.glow-green::before { background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.08), transparent); }
.menu-card.glow-orange::before { background: radial-gradient(ellipse at center, rgba(255, 136, 0, 0.08), transparent); }
.menu-card.glow-purple::before { background: radial-gradient(ellipse at center, rgba(170, 102, 255, 0.08), transparent); }

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.menu-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.menu-footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 1px;
}

/* ============== TEAM PAGE ============== */
.team-page {
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

.team-create-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-create-card {
  width: 420px;
  max-width: 90vw;
  padding: 36px 32px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  text-align: center;
}

.create-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.create-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 8px 0 24px;
}

.color-picker, .badge-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.color-opt {
  width: 32px;
  height: 32px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-opt.selected {
  border-color: var(--text-primary);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  transform: scale(1.15);
}

.badge-opt {
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.badge-opt.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  transform: scale(1.1);
}

.team-error {
  color: #ff4444;
  font-size: 13px;
  margin-top: 12px;
}

/* 球队编辑界面 */
.team-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.team-left-panel {
  width: 220px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
}

.team-center-panel {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-right-panel {
  width: 320px;
  padding: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.player-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.player-list-item.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.2);
}

.player-number {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 28px;
  text-align: center;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.player-name {
  font-size: 14px;
  color: var(--text-primary);
}

.player-role {
  font-size: 11px;
  color: var(--text-secondary);
}

.player-prompt-badge {
  font-size: 16px;
}

.player-preview {
  width: 180px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
}

.pixel-player {
  position: relative;
  width: 60px;
  height: 120px;
}

.pixel-body {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  top: 10px;
  left: 15px;
}

.pixel-head {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #d4a574;
  border-radius: 3px;
  top: 0;
  left: 21px;
}

.pixel-leg {
  position: absolute;
  width: 8px;
  height: 20px;
  background: #d4a574;
  border-radius: 2px;
  top: 40px;
}

.pixel-leg.left { left: 17px; }
.pixel-leg.right { left: 35px; }

.prompt-editor {
  width: 100%;
  height: 160px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
}

.prompt-editor:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

.prompt-presets {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.preset-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.prompt-keywords {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  min-height: 24px;
}

.keyword-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  color: var(--accent-cyan);
  font-size: 10px;
  margin: 2px;
}

.prompt-stats {
  text-align: right;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.team-tactics-bar {
  display: flex;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.tactics-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tactics-item label {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tactics-options {
  display: flex;
  gap: 2px;
}

.tactics-btn {
  padding: 4px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tactics-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
}

.tactics-slider {
  width: 100px;
  accent-color: var(--accent-cyan);
  background: transparent;
}

/* ============== BUTTONS ============== */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--accent-cyan);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background: #33f5ff;
  transform: translateY(-1px);
}

.btn-primary.glow-btn {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary.glow-btn:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-primary.small {
  padding: 8px 16px;
  font-size: 12px;
  width: auto;
}

.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link-btn:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

/* ============== VOICE CONTROL ============== */
.voice-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 50;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 2px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  pointer-events: auto;
}

.voice-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  transform: scale(1.05);
}

.voice-btn.listening {
  background: rgba(0, 240, 255, 0.35);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  animation: pulse-voice 0.5s ease-in-out infinite;
}

@keyframes pulse-voice {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.6); }
}

.voice-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.voice-icon {
  font-size: 24px;
}

.voice-label {
  font-size: 8px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.voice-wave {
  display: none;
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.2);
  animation: wave-expand 1s ease-out infinite;
}

.voice-btn.listening .voice-wave {
  display: block;
}

@keyframes wave-expand {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.voice-command-display {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 20px;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.voice-command-display.show {
  opacity: 1;
}

.voice-command-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
}

.text-command-input {
  position: fixed;
  bottom: 80px;
  right: 110px;
  z-index: 50;
  display: flex;
  gap: 4px;
  pointer-events: auto;
}

.text-command-input input {
  width: 160px;
  padding: 8px 12px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.text-command-input input:focus {
  border-color: var(--accent-cyan);
}

.text-command-input button {
  padding: 8px 12px;
  background: var(--accent-cyan);
  border: none;
  border-radius: 4px;
  color: var(--bg-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.training-exit-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.training-exit-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* ============== MATCH RESULT ============== */
.match-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s var(--ease-out-expo);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.result-container {
  text-align: center;
  animation: card-enter 0.5s var(--ease-out-expo);
}

.result-badge {
  padding: 40px 60px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.result-badge.victory {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 200, 0, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.15);
}

.result-badge.defeat {
  background: linear-gradient(135deg, rgba(255, 50, 50, 0.10), rgba(255, 50, 50, 0.03));
  border: 2px solid rgba(255, 50, 50, 0.2);
}

.result-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 20px;
}

.result-badge.victory .result-title {
  color: #FFD700;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.result-badge.defeat .result-title {
  color: #ff4444;
  text-shadow: 0 0 30px rgba(255, 50, 50, 0.3);
}

.result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-display);
}

.score-team {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.score-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 4px;
}

.result-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}

.stat-item {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.result-actions .btn-primary, .result-actions .btn-secondary {
  width: auto;
  min-width: 160px;
}

/* ============== GOAL EFFECT ============== */
.goal-effect {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 150;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  text-shadow: 0 0 40px currentColor;
  animation: goal-pop 2s ease-out forwards;
  pointer-events: none;
}

@keyframes goal-pop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

.match-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 150;
  padding: 16px 32px;
  background: rgba(10, 14, 26, 0.9);
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  animation: fade-in 0.3s ease-out;
  pointer-events: none;
}

.player-feedback {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  font-size: 28px;
  animation: feedback-pop 0.8s ease-out forwards;
}

@keyframes feedback-pop {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-40px) scale(1.5); opacity: 0; }
}

/* ============== SCROLLBAR ============== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============== MATCH DIALOG ============== */
.match-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  animation: fade-in 0.3s var(--ease-out-expo);
}

.match-dialog {
  text-align: center;
  padding: 40px 48px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  animation: card-enter 0.5s var(--ease-out-expo);
  min-width: 320px;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.dialog-search-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  animation: search-pulse 1.5s ease-out infinite;
}

.search-icon {
  font-size: 36px;
  animation: search-rotate 2s linear infinite;
}

@keyframes search-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes search-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dialog-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.dialog-team-info {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.dialog-team-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.dialog-team-rating {
  font-size: 12px;
  color: var(--text-secondary);
}

.coming-soon-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  padding: 16px 32px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  animation: toast-pop 2s ease-out forwards;
  pointer-events: none;
}

@keyframes toast-pop {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  85% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

/* ============== STORE PAGE ============== */
.store-page {
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

.store-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  background: rgba(10, 14, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.store-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.store-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.store-tab .tab-icon { font-size: 16px; }
.store-tab .tab-label { font-size: 12px; }

.store-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.store-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.store-grid.active {
  display: grid;
}

.store-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.store-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.store-item-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  font-size: 40px;
}

.store-item-info {
  padding: 12px 14px;
}

.store-item-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.store-item-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.store-item-footer {
  padding: 8px 14px 12px;
}

.store-buy-btn {
  width: 100%;
  padding: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.store-buy-btn:hover {
  background: rgba(0, 240, 255, 0.2);
}

.store-buy-btn.premium {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  color: #FFD700;
}

.store-buy-btn.owned {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
  color: var(--accent-green);
  cursor: default;
}

.price-icon { font-size: 12px; }

/* ============== TASK PAGE ============== */
.task-page {
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

.task-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.task-section {
  margin-bottom: 32px;
}

.task-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-refresh {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.task-icon {
  font-size: 28px;
  min-width: 44px;
  text-align: center;
}

.task-info {
  flex: 1;
}

.task-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.task-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.task-progress-bar {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.task-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.task-progress-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.task-reward {
  text-align: center;
  min-width: 80px;
}

.reward-icon { font-size: 14px; }
.reward-amount {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #FFD700;
  display: block;
  margin: 4px 0;
}

.task-claim-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.task-claim-btn.ready {
  background: var(--accent-cyan);
  color: var(--bg-deep);
}

.task-claim-btn.ready:hover {
  background: #33f5ff;
}

.task-claim-btn.locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: default;
}

/* ============== COMING SOON TOAST ============== */
.coming-soon-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  padding: 16px 32px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  animation: toast-pop 2s ease-out forwards;
  pointer-events: none;
}

@keyframes toast-pop {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  85% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .login-card {
    padding: 28px 20px;
  }

  .team-main {
    flex-direction: column;
  }

  .team-left-panel {
    width: 100%;
    max-height: 120px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .team-right-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .team-tactics-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .voice-btn {
    width: 60px;
    height: 60px;
    bottom: 72px;
  }

  .result-title {
    font-size: 42px;
  }

  .result-badge {
    padding: 24px 32px;
  }
}