* {
      box-sizing: border-box;
      user-select: none;
      -webkit-user-select: none;
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background-color: #040917;
      font-family: 'Plus Jakarta Sans', sans-serif;
      color: #F8FAFC;
    }

    /* Deep Midnight Radial Background */
    .bg-arena {
      background:
        radial-gradient(circle at 50% 48%, rgba(16, 48, 106, 0.55) 0%, rgba(7, 18, 42, 0.85) 52%, #030712 100%);
    }

    /* Stylized 2026 Mattel Tabletop Surface */
    .table-surface {
      background:
        radial-gradient(ellipse at 50% 46%, #133168 0%, #0B1F47 48%, #071430 82%, #040C1E 100%);
      box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.85),
        inset 0 0 80px rgba(0, 140, 255, 0.14),
        inset 0 2px 6px rgba(255, 215, 0, 0.25),
        0 0 0 6px rgba(15, 29, 61, 0.95),
        0 0 0 8px rgba(255, 200, 60, 0.22),
        0 0 55px rgba(0, 110, 255, 0.2);
      position: relative;
    }

    /* Subtle Felt/Weave & Wood Grain Texture Overlay */
    .table-texture {
      background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 2px, transparent 2px, transparent 6px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 2px, transparent 2px, transparent 8px);
    }

    /* Glassmorphism UI Panels */
    .glass-panel {
      background: linear-gradient(135deg, rgba(13, 25, 52, 0.82) 0%, rgba(7, 15, 34, 0.9) 100%);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.11);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .glass-pill {
      background: rgba(10, 21, 46, 0.78);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    /* UNO Card Base Styling */
    .uno-card {
      position: relative;
      width: 112px;
      height: 166px;
      border-radius: 15px;
      background: #FFFFFF;
      padding: 6px;
      box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.65),
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  filter 0.25s ease;
      transform-style: preserve-3d;
      cursor: pointer;
      flex-shrink: 0;
    }

    @media (max-height: 820px), (max-width: 1280px) {
      .uno-card {
        width: 96px;
        height: 142px;
        border-radius: 13px;
        padding: 5px;
      }
    }

    /* Selected / Hovered Card in Player Hand */
    .player-card-wrapper {
      transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), z-index 0s;
      transform-origin: bottom center;
    }

    .player-card-wrapper:hover,
    .player-card-wrapper.is-selected {
      z-index: 60 !important;
    }

    .player-card-wrapper:hover .uno-card,
    .player-card-wrapper.is-selected .uno-card {
      transform: translateY(-28px) scale(1.11);
      box-shadow:
        0 0 0 3px #FFD700,
        0 0 28px rgba(255, 215, 0, 0.78),
        0 22px 40px rgba(0, 0, 0, 0.85);
    }

    .player-card-wrapper.is-playable .uno-card::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 16px;
      border: 1.5px solid rgba(255, 215, 0, 0.45);
      pointer-events: none;
    }

    .player-card-wrapper.not-playable .uno-card {
      filter: brightness(0.76) saturate(0.88);
    }

    .player-card-wrapper.not-playable:hover .uno-card {
      transform: translateY(-10px) scale(1.03);
      box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.35),
        0 14px 28px rgba(0, 0, 0, 0.7);
      filter: brightness(0.92);
    }

    /* Discard & Draw Stack 3D Depth */
    .draw-stack-card {
      box-shadow:
        -2px 2px 0 #d9e2ec,
        -4px 4px 0 #1e293b,
        -6px 6px 0 #d9e2ec,
        -8px 8px 0 #1e293b,
        -10px 10px 0 #cbd5e1,
        -14px 18px 34px rgba(0, 0, 0, 0.85);
      transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    }

    .draw-stack-card:hover {
      transform: translateY(-6px) scale(1.04) rotate(-2deg);
      box-shadow:
        0 0 0 2.5px #FFD700,
        0 0 26px rgba(255, 180, 0, 0.6),
        -2px 2px 0 #d9e2ec,
        -4px 4px 0 #1e293b,
        -6px 6px 0 #d9e2ec,
        -8px 8px 0 #1e293b,
        -14px 24px 40px rgba(0, 0, 0, 0.9);
    }

    /* Bot Mini Cards */
    .bot-mini-card {
      width: 44px;
      height: 66px;
      border-radius: 7px;
      padding: 2.5px;
      background: #f8fafc;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65);
      transition: transform 0.3s ease;
    }

    /* Orbit Direction Ring Animation */
    @keyframes spinClockwise {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    @keyframes spinCounterClockwise {
      0% { transform: rotate(360deg); }
      100% { transform: rotate(0deg); }
    }

    .orbit-cw {
      animation: spinClockwise 26s linear infinite;
    }
    .orbit-ccw {
      animation: spinCounterClockwise 26s linear infinite;
    }

    /* UNO Alert Pulse */
    @keyframes unoPulse {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 28, 35, 0.7), 0 0 22px rgba(255, 215, 0, 0.75);
      }
      50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(229, 28, 35, 0), 0 0 36px rgba(255, 215, 0, 1);
      }
    }

    .uno-btn-active {
      animation: unoPulse 1.35s infinite ease-in-out;
    }

    /* End Turn Ready Pulse */
    @keyframes endTurnPulse {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75), 0 0 26px rgba(52, 211, 153, 0.85);
      }
      50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 0 0 40px rgba(52, 211, 153, 1);
      }
    }

    .end-turn-ready {
      animation: endTurnPulse 1.3s infinite ease-in-out;
    }

    /* Bot Thinking Dots */
    @keyframes dotBounce {
      0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
      40% { transform: translateY(-5px); opacity: 1; }
    }
    .dot-1 { animation: dotBounce 1.2s infinite ease-in-out 0s; }
    .dot-2 { animation: dotBounce 1.2s infinite ease-in-out 0.2s; }
    .dot-3 { animation: dotBounce 1.2s infinite ease-in-out 0.4s; }

    /* Card Play Entrance Animation */
    @keyframes discardPop {
      0% {
        transform: scale(1.38) translateY(-28px) rotate(-10deg);
        filter: drop-shadow(0 28px 36px rgba(0,0,0,0.85));
      }
      70% {
        transform: scale(0.96) translateY(2px) rotate(var(--card-rot, 4deg));
      }
      100% {
        transform: scale(1) translateY(0) rotate(var(--card-rot, 4deg));
      }
    }

    .discard-animate {
      animation: discardPop 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Active Turn Avatar Spinning Ring Animation */
    @keyframes activeTurnRingSpin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    @keyframes activeTurnGlowPulse {
      0%, 100% {
        box-shadow: 0 0 14px rgba(255, 215, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.45);
      }
      50% {
        box-shadow: 0 0 24px rgba(255, 215, 0, 1), 0 0 42px rgba(56, 189, 248, 0.85);
      }
    }
    .active-turn-avatar-ring {
      position: relative;
      border-radius: 16px;
      animation: activeTurnGlowPulse 1.8s ease-in-out infinite;
    }
    .active-turn-avatar-ring::before {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 18px;
      padding: 3px;
      background: conic-gradient(from 0deg, #FFD700, #38BDF8, #10B981, #FFD700);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      animation: activeTurnRingSpin 2.1s linear infinite;
      pointer-events: none;
      z-index: 20;
    }

    /* Smooth Flying Card Layer */
    @keyframes flyCardToCenter {
      0% {
        opacity: 0.95;
        transform: translate(var(--start-x, 0px), var(--start-y, 160px)) scale(0.85) rotate(-12deg);
      }
      75% {
        opacity: 1;
        transform: translate(0px, -8px) scale(1.06) rotate(4deg);
      }
      100% {
        opacity: 0;
        transform: translate(0px, 0px) scale(1) rotate(2deg);
      }
    }
    .flying-card-fx {
      animation: flyCardToCenter 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Golden Shimmer Text */
    .gold-gradient-text {
      background: linear-gradient(180deg, #FFF7CC 0%, #FFD700 45%, #D99B00 85%, #FFF099 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 4px 18px rgba(255, 195, 0, 0.38));
    }

    /* Fortnite-Style Rank Badges (Diamond -> Unreal) */
    .rank-badge-diamond1 {
      background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 50%, #38bdf8 100%);
      border: 1px solid #bae6fd;
      box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
    }
    .rank-badge-diamond2 {
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
      border: 1px solid #bfdbfe;
      box-shadow: 0 0 16px rgba(96, 165, 250, 0.65);
    }
    .rank-badge-diamond3 {
      background: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 55%, #a5f3fc 100%);
      border: 1px solid #ffffff;
      box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
    }
    .rank-badge-elite {
      background: linear-gradient(135deg, #064e3b 0%, #10b981 50%, #a7f3d0 100%);
      border: 1px solid #d1fae5;
      box-shadow: 0 0 20px rgba(16, 185, 129, 0.75);
    }
    .rank-badge-champion {
      background: linear-gradient(135deg, #7f1d1d 0%, #ea580c 48%, #facc15 100%);
      border: 1px solid #fef08a;
      box-shadow: 0 0 24px rgba(245, 158, 11, 0.85);
    }
    @keyframes unrealShimmer {
      0% { background-position: 0% 50%; box-shadow: 0 0 20px rgba(168, 85, 247, 0.85), 0 0 35px rgba(34, 211, 238, 0.5); }
      50% { background-position: 100% 50%; box-shadow: 0 0 28px rgba(236, 72, 153, 0.9), 0 0 45px rgba(56, 189, 248, 0.8); }
      100% { background-position: 0% 50%; box-shadow: 0 0 20px rgba(168, 85, 247, 0.85), 0 0 35px rgba(34, 211, 238, 0.5); }
    }
    .rank-badge-unreal {
      background: linear-gradient(270deg, #3b0764, #7e22ce, #ec4899, #06b6d4, #6366f1);
      background-size: 300% 300%;
      animation: unrealShimmer 4s ease infinite;
      border: 1px solid #f5d0fe;
    }

    /* Toast Notification Animation */
    @keyframes slideInToast {
      from { transform: translateY(-20px) scale(0.95); opacity: 0; }
      to { transform: translateY(0) scale(1); opacity: 1; }
    }
    .toast-enter {
      animation: slideInToast 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Custom Scrollbar for Modals */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: rgba(15, 23, 42, 0.4);
      border-radius: 8px;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 215, 0, 0.35);
      border-radius: 8px;
    }

    :focus-visible {
      outline: 2px solid rgba(125, 211, 252, 0.95);
      outline-offset: 3px;
    }

    .table-surface {
      isolation: isolate;
      background:
        radial-gradient(ellipse at 50% 46%, #16415f 0%, #0c2d4b 48%, #081c34 82%, #061326 100%);
      box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.78),
        inset 0 0 90px rgba(45, 212, 191, 0.1),
        inset 0 2px 6px rgba(255, 228, 150, 0.35),
        0 0 0 6px rgba(15, 29, 48, 0.96),
        0 0 0 8px rgba(255, 200, 60, 0.34),
        0 0 48px rgba(14, 165, 233, 0.2);
      transition: box-shadow 0.35s ease, filter 0.35s ease;
    }

    .table-surface::before,
    .table-surface::after {
      content: '';
      position: absolute;
      border-radius: inherit;
      pointer-events: none;
    }

    .table-surface::before {
      inset: -15px;
      border: 1px solid rgba(255, 215, 0, 0.2);
      box-shadow: 0 0 24px rgba(255, 190, 60, 0.08), inset 0 0 16px rgba(255, 215, 0, 0.05);
    }

    .table-surface::after {
      inset: 0;
      background:
        radial-gradient(ellipse at 12% 50%, rgba(56, 189, 248, 0.12), transparent 25%),
        radial-gradient(ellipse at 88% 50%, rgba(251, 191, 36, 0.1), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.025));
      mix-blend-mode: screen;
    }

    #mainMenuModal > .glass-panel {
      width: min(97vw, 1840px);
      max-width: none;
      min-height: min(90vh, 1100px);
      padding: clamp(28px, 3.2vw, 54px);
      border-color: rgba(255, 215, 0, 0.28);
      background:
        radial-gradient(ellipse at 12% 0%, rgba(37, 99, 235, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(15, 28, 54, 0.96), rgba(5, 11, 25, 0.97));
      box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    #mainMenuModal > .glass-panel > .grid {
      gap: clamp(24px, 2.4vw, 44px);
    }

    #mainMenuModal #menuMiniLeaderboard {
      max-height: min(54vh, 660px);
      gap: 15px;
    }

    #mainMenuModal #menuMiniLeaderboard > div {
      min-height: 92px;
      padding: 17px;
      border-radius: 22px;
      gap: 14px;
    }

    #mainMenuModal #menuMiniLeaderboard img {
      width: 56px;
      height: 56px;
      border-radius: 16px;
    }

    #mainMenuModal > .glass-panel > .grid > div > .p-5 {
      padding: clamp(24px, 2vw, 34px);
      border-radius: 28px;
    }

    #mainMenuModal h1 {
      font-size: clamp(1.8rem, 2.15vw, 2.65rem);
    }

    #mainMenuModal > .glass-panel > .grid > div {
      min-width: 0;
    }

    #mainMenuModal > .glass-panel > .grid > div:nth-child(2) > button,
    #mainMenuModal > .glass-panel > .grid > div:nth-child(2) > div > button {
      min-height: 58px;
      font-size: 0.9rem;
    }

    .beta-notice {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 30px;
      margin: -12px 0 18px;
      padding: 5px 12px;
      border: 1px solid rgba(148, 163, 184, 0.12);
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.45);
      color: rgba(203, 213, 225, 0.72);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.045em;
      animation: betaNoticeGlow 5.5s ease-in-out infinite;
    }

    .beta-notice-dot {
      width: 6px;
      height: 6px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: #fbbf24;
      box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
    }

    @keyframes betaNoticeGlow {
      0%, 100% { border-color: rgba(148, 163, 184, 0.1); }
      50% { border-color: rgba(251, 191, 36, 0.24); }
    }

    .menu-opening {
      animation: menuPanelEnter 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    @keyframes menuPanelEnter {
      from { opacity: 0; transform: translateY(18px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .modal-pop {
      animation: rulesPanelEnter 0.38s cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    @keyframes rulesPanelEnter {
      from { opacity: 0; transform: translateY(12px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .network-safety-panel {
      border: 1px solid rgba(56, 189, 248, 0.18);
      background: linear-gradient(110deg, rgba(14, 116, 144, 0.12), rgba(15, 23, 42, 0.7));
    }

    .network-safety-icon {
      display: grid;
      width: 34px;
      height: 34px;
      flex: 0 0 auto;
      place-items: center;
      border: 1px solid rgba(56, 189, 248, 0.22);
      border-radius: 11px;
      background: rgba(14, 165, 233, 0.12);
      color: #7dd3fc;
    }

    #mainMenuModal .navuno-logo-menu {
      width: 100%;
      height: 100%;
    }

    #mainMenuModal .grid > div > div,
    #mainMenuModal .grid > div > div > div {
      transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
    }

    #mainMenuModal .grid > div > div:hover {
      border-color: rgba(125, 211, 252, 0.22);
    }

    #rulesModal .grid > div {
      background: linear-gradient(145deg, rgba(17, 29, 51, 0.95), rgba(7, 15, 30, 0.92));
      border-color: rgba(255, 255, 255, 0.09);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    #rulesModal .grid > div:hover {
      transform: translateY(-2px);
      border-color: rgba(251, 191, 36, 0.3);
    }

    .settings-panel {
      background:
        radial-gradient(ellipse at 10% 0%, rgba(14, 165, 233, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(15, 28, 54, 0.98), rgba(5, 11, 25, 0.98));
    }

    .settings-icon {
      background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.25));
      border: 1px solid rgba(125, 211, 252, 0.25);
      box-shadow: 0 10px 24px rgba(14, 165, 233, 0.16);
    }

    .settings-row {
      min-height: 72px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 18px;
      background: rgba(3, 10, 24, 0.55);
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .settings-row:hover {
      border-color: rgba(125, 211, 252, 0.28);
      background: rgba(8, 20, 42, 0.78);
    }

    .settings-row-icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      color: #7dd3fc;
      background: rgba(14, 165, 233, 0.12);
      border: 1px solid rgba(125, 211, 252, 0.15);
    }

    .settings-toggle {
      width: 48px;
      height: 28px;
      padding: 3px;
      border-radius: 999px;
      background: rgba(71, 85, 105, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.12);
      transition: background 0.2s ease, border-color 0.2s ease;
      flex: 0 0 auto;
    }

    .settings-toggle span {
      display: block;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #e2e8f0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .settings-toggle[aria-pressed="true"] {
      background: linear-gradient(90deg, #0284c7, #6366f1);
      border-color: rgba(125, 211, 252, 0.55);
    }

    .settings-toggle[aria-pressed="true"] span {
      transform: translateX(20px);
      background: #fff;
    }

    .settings-hint {
      background: rgba(14, 165, 233, 0.08);
      border: 1px solid rgba(125, 211, 252, 0.13);
    }

    .settings-account-row {
      display: flex;
      min-height: 72px;
      align-items: center;
      gap: 12px;
      margin-top: 14px;
      padding: 12px 14px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 18px;
      background: rgba(3, 10, 24, 0.55);
    }

    .settings-account-login,
    .settings-account-logout {
      display: inline-flex;
      min-height: 42px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 15px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 13px;
      font-size: 12px;
      font-weight: 800;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .settings-account-login {
      background: rgba(255, 255, 255, 0.07);
      color: #fcd34d;
    }

    .settings-account-login:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.12);
      box-shadow: 0 0 18px rgba(251, 191, 36, 0.12);
    }

    .settings-account-username {
      min-width: 0;
      margin-left: auto;
      overflow: hidden;
      color: #f8fafc;
      font-size: 13px;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .settings-account-connection {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 7px;
      padding: 7px 10px;
      border: 1px solid rgba(148, 163, 184, 0.14);
      border-radius: 999px;
      background: rgba(71, 85, 105, 0.12);
      color: #94a3b8;
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
      transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .settings-account-connection-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #64748b;
    }

    .settings-account-connection.is-connected {
      border-color: rgba(74, 222, 128, 0.5);
      background: rgba(34, 197, 94, 0.1);
      color: #86efac;
      box-shadow: 0 0 14px rgba(34, 197, 94, 0.16);
    }

    .settings-account-connection.is-connected .settings-account-connection-dot {
      background: #4ade80;
      box-shadow: 0 0 10px #4ade80;
      animation: connectedPulse 1.8s ease-in-out infinite;
    }

    @keyframes connectedPulse {
      50% { opacity: 0.55; transform: scale(0.82); }
    }

    .settings-account-logout {
      border-color: rgba(248, 113, 113, 0.28);
      background: rgba(239, 68, 68, 0.12);
      color: #fecaca;
    }

    .settings-account-logout:hover:not(:disabled) {
      transform: translateY(-1px);
      background: rgba(239, 68, 68, 0.2);
      box-shadow: 0 0 18px rgba(239, 68, 68, 0.14);
    }

    .settings-account-logout:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .reduce-motion *,
    .reduce-motion *::before,
    .reduce-motion *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    @media (max-width: 700px) {
      .table-surface::before {
        inset: -10px;
      }

      #mainMenuModal > .glass-panel {
        width: 100%;
        min-height: 0;
        padding: 20px;
      }

      .settings-account-row {
        flex-wrap: wrap;
      }

      .settings-account-username {
        margin-left: 0;
        flex: 1 1 100%;
        order: -1;
      }

      #mainMenuModal .glass-panel {
        border-radius: 24px;
      }

      #mainMenuModal #menuMiniLeaderboard {
        max-height: 34vh;
      }
    }

    @media (min-width: 701px) and (max-height: 760px) {
      #mainMenuModal > .glass-panel {
        min-height: calc(100vh - 24px);
        padding: 16px 22px;
      }

      #mainMenuModal > .glass-panel > .beta-notice {
        min-height: 24px;
        margin: -4px 0 10px;
        font-size: 9px;
      }

      #mainMenuModal > .glass-panel > div:first-of-type:not(.beta-notice) {
        margin-bottom: 12px;
        padding-bottom: 12px;
      }

      #mainMenuModal > .glass-panel > .grid {
        gap: 14px;
      }

      #mainMenuModal > .glass-panel > .grid > div > .p-5 {
        padding: 16px;
      }

      #mainMenuModal #menuMiniLeaderboard {
        max-height: 42vh;
        gap: 8px;
      }

      #mainMenuModal #menuMiniLeaderboard > div {
        min-height: 64px;
        padding: 10px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
      }

      .beta-notice,
      .menu-opening,
      .modal-pop,
      .settings-account-connection.is-connected .settings-account-connection-dot {
        animation: none !important;
      }
    }

    .navuno-logo {
      display: block;
      object-fit: contain;
      mix-blend-mode: screen;
    }

    .navuno-logo-loading {
      width: min(320px, 72vw);
      max-height: 250px;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
    }

    .navuno-logo-menu {
      width: 100%;
      height: 100%;
      border-radius: 12px;
    }

    .navuno-logo-table {
      width: min(340px, 42vw);
      max-height: 230px;
      opacity: 0.76;
      filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.3));
    }

    .transport-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: rgba(191, 219, 254, 0.75);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .transport-status i {
      color: #7dd3fc;
    }

    #friendRequestsContainer:not(.hidden) {
      animation: slideInToast 0.24s ease-out;
    }

    #mainMenuModal .grid > div > div > .grid.grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @media (max-width: 720px) {
      #gameFooterBar > div:last-child {
        max-width: 100%;
      }

      .transport-status {
        font-size: 8px;
      }
    }