:root {
      --app-viewport-width: 100vw;
      --app-viewport-height: 100vh;
      --app-viewport-top: 0px;
      --app-viewport-left: 0px;
    }
    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden !important;
    }
    *{margin:0;padding:0;box-sizing:border-box;}
    body{background:#2b2f3a;font-family:'Cabin',Arial,sans-serif;}
    body.in-game { background: #000000; }
    
    /* Original Braains.io Menu Layout Styles */
    #menu-wrapper {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      overflow: hidden !important;
      background: transparent !important;
    }
    #menu-wrapper.hidden { display: none; }
    
    /* Ensure Phaser canvas is behind menu */
    canvas {
      position: fixed;
      top: var(--app-viewport-top);
      left: var(--app-viewport-left);
      width: var(--app-viewport-width);
      height: var(--app-viewport-height);
      margin: 0;
      padding: 0;
      background: #000000;
      z-index: 1;
      touch-action: none;
    }
    
    /* Preserve the extracted three-column lobby while keeping the requested
       slightly enlarged desktop presentation within the viewport. */
    #right-menu {
      position: absolute;
      top: 42%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.90);
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex-grow: 1;
      padding: 0;
      width: 100%;
    }
    
    #menu-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 28px;
      max-width: 96vw;
      width: 100%;
      padding: 0 28px;
    }
    
    /* Requested lobby sizing adjustment; source ordering and identifiers stay unchanged. */
    .land-page-container {
      transform: scale(0.97);
      transform-origin: top center;
    }
    
    /* Scale up fonts in menu containers */
    .land-page-container h3 {
      font-size: 1.2rem !important;
    }
    
    .land-page-container h5 {
      font-size: 0.95rem !important;
    }
    
    .land-page-container .key-bg {
      font-size: 13px !important;
      padding: 5px 8px !important;
    }
    
    /* Scale up center panel elements */
    #menu-column-main-container {
      transform: scale(1) !important;
      transform-origin: top center;
    }
    
    #menu-column-main-container .white-bg {
      padding: 16px !important;
    }
    
    #play-game-button {
      font-size: 16px !important;
      padding: 10px 30px !important;
    }

    .braains-io-games-link {
      display: flex;
      justify-content: center;
      margin-top: 10px;
    }

    .braains-io-games-link a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 32px;
      padding: 6px 14px;
      border: 1px solid #20242b;
      border-radius: 5px;
      background: #343a40;
      color: #ffffff;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      text-decoration: none;
      transition: background-color 0.15s, border-color 0.15s;
    }

    .braains-io-games-link a:hover,
    .braains-io-games-link a:focus-visible {
      border-color: #117a8b;
      background: #138496;
      color: #ffffff;
      text-decoration: none;
    }

    /* Custom scrollbar for instructions panel */
    #menu-column-left-container {
      max-height: 57vh !important;
      display: flex;
      flex-direction: column;
      overflow: hidden !important;
    }
    #menu-column-left-container .white-bg {
      max-height: 57vh !important;
      display: flex;
      flex-direction: column;
      overflow-x: hidden !important;
      overflow-y: auto !important;
    }
    #instructions-keyboard,
    #instructions-joystick {
      overflow: visible !important;
      height: auto;
      max-height: none !important;
      padding-right: 10px;
    }
    #menu-column-left-container .white-bg::-webkit-scrollbar {
      width: 6px !important;
      display: block !important;
    }
    #menu-column-left-container .white-bg::-webkit-scrollbar-button {
      display: block !important;
      height: 12px !important;
      background-size: contain !important;
      background-repeat: no-repeat !important;
      background-position: center !important;
    }
    #menu-column-left-container .white-bg::-webkit-scrollbar-button:start:decrement {
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" viewBox="0 0 24 24" fill="black"><path d="M7 14l5-5 5 5z"/></svg>') !important;
    }
    #menu-column-left-container .white-bg::-webkit-scrollbar-button:end:increment {
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    }
    #menu-column-left-container .white-bg::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.45) !important;
      border-radius: 4px !important;
    }
    #menu-column-left-container .white-bg::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.05) !important;
      border-radius: 4px !important;
    }
    
    #braains-logo-title {
      max-width: 295px !important;
      width: 100%;
      height: auto;
    }
    
    /* Hide HUD by default in lobby */
    #hud {
      display: none !important;
    }
    
    #timer {
      display: none !important;
    }
    
    #status {
      display: none !important;
    }
    
    .white-bg, .menu-div {
      background: #fff;
      border-radius: 8px;
      padding: 12px;
      box-shadow: 0 0 15px rgba(0,0,0,0.5);
    }
    
    .menu-row { padding: 0 16px; }
    
    #play-game-button { 
      transition: opacity 0.15s; 
      cursor: pointer;
    }
    #play-game-button:hover { opacity: 0.9; }
    
    .margin-auto { margin: auto; }
    
    #menu-form { padding: 8px; }
    
    .dark-bg { background: rgba(0,0,0,0.7); padding: 8px; border-radius: 4px; }
    
    .key-bg {
      background-color: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(0, 0, 0, 0.3);
      border-radius: 5px;
      padding-right: 5px;
      padding-left: 5px;
      line-height: 1.4;
    }
    
    /* Instructions panel spacing fixes */
    #menu-column-left-container div[style*="overflow-y: scroll"] {
      line-height: 1.6;
      padding: 8px 12px;
    }
    
    #menu-column-left-container div[style*="overflow-y: scroll"] br {
      display: block;
      margin-bottom: 10px;
      content: "";
    }
    
    #menu-column-left-container span {
      display: inline-block;
      margin-bottom: 4px;
    }
    
    #menu-column-left-container h5 {
      margin: 12px 0 8px 0;
      padding-top: 8px;
      border-top: 1px solid #ddd;
    }
    
    /* Hide default scrollbar in instructions */
    #menu-column-left-container div[style*="overflow-y: scroll"]::-webkit-scrollbar {
      display: none;
    }
    
    #menu-column-left-container div[style*="overflow-y: scroll"] {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    
    /* Add premium glassmorphism styling to instructions panel */
    #menu-column-left-container .white-bg {
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.85) !important;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
      padding: 16px;
    }
    
    #braains-logo-title {
      width: 100%;
      max-width: 260px;
      height: auto;
    }
    
    /* Flex utilities */
    .flex-column { display: flex; flex-direction: column; }
    .d-flex { display: flex; }
    .justify-content-center { justify-content: center; }
    .align-items-center { align-items: center; }
    .flex-grow-1 { flex-grow: 1; }
    .w-100 { width: 100%; }
    .text-center { text-align: center; }
    .mb-3 { margin-bottom: 1rem; }
    .mt-2 { margin-top: 0.5rem; }
    .p-3 { padding: 1rem; }
    .pl-3 { padding-left: 1rem; }
    .flex-shrink-0 { flex-shrink: 0; }
    .d-none { display: none; }
    .d-sm-block { display: none; }
    
    @media (min-width: 576px) {
      .d-sm-block { display: block; }
      .hide-on-mobile { display: flex !important; }
    }
    
    @media (max-width: 575px) {
      html.phone-client .hide-on-mobile { display: none !important; }
      html.phone-client #menu-column-left-container,
      html.phone-client #menu-column-right-container { display: none !important; }
      html.phone-client #menu-column-main-container { width: 90vw !important; max-width: 90vw !important; }
    }

    @media (max-width: 1024px) {
      html.phone-client #left-menu,
      html.phone-client #menu-column-left-container,
      html.phone-client #menu-column-right-container {
        display: none !important;
      }

      html.phone-client #right-menu {
        top: 47% !important;
        transform: translate(-50%, -50%) scale(0.88) !important;
      }

      html.phone-client #menu-container {
        gap: 10px !important;
        max-width: 100vw !important;
        padding: 0 10px !important;
      }

      html.phone-client #menu-column-main-container {
        min-width: 0 !important;
        width: min(90vw, 430px) !important;
        max-width: min(90vw, 430px) !important;
        padding-left: 0 !important;
        transform: scale(0.98) !important;
      }

      html.phone-client #menu-column-main-container .white-bg {
        padding: 14px !important;
      }

      html.phone-client #braains-logo-title {
        max-width: 285px !important;
      }

      html.phone-client #server-list {
        height: 38px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        font-size: 14px !important;
      }

      html.phone-client #play-game-button {
        padding: 9px 18px !important;
        font-size: 15px !important;
      }

      html.phone-client #menu-column-main-container center:last-child {
        font-size: 10px !important;
      }
    }
    
    .land-page-container { width: 20vw; }
    
    /* Button styles */
    .btn {
      display: inline-block;
      font-weight: 400;
      text-align: center;
      vertical-align: middle;
      user-select: none;
      border: 1px solid transparent;
      padding: 0.375rem 0.75rem;
      font-size: 1rem;
      line-height: 1.5;
      border-radius: 0.25rem;
      transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    }
    
    .btn-block { display: block; width: 100%; }
    
    .btn-success {
      color: #fff;
      background-color: #28a745;
      border-color: #28a745;
    }
    .btn-success:hover { background-color: #218838; border-color: #1e7e34; }
    
    .btn-outline-primary {
      color: #007bff;
      background-color: transparent;
      border-color: #007bff;
    }
    .btn-outline-primary:hover { background-color: #007bff; color: #fff; }
    
    .form-control {
      display: block;
      width: 100%;
      padding: 0.375rem 0.75rem;
      font-size: 1rem;
      line-height: 1.5;
      color: #495057;
      background-color: #fff;
      border: 1px solid #ced4da;
      border-radius: 0.25rem;
    }
    
    .form-group { margin-bottom: 1rem; }

    .server-list-container {
      position: relative;
      width: 100%;
    }

    #server-dropdown-container {
      position: relative;
      width: 100%;
    }

    #server-list.custom-select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-image: none;
      padding-right: 30px;
      padding-left: 12px;
    }

    #server-list.custom-select option {
      text-transform: lowercase;
    }

    .custom-select-arrows {
      position: absolute;
      top: 50%;
      right: 12px;
      display: flex;
      flex-direction: column;
      gap: 1px;
      align-items: center;
      justify-content: center;
      color: #555;
      pointer-events: none;
      transform: translateY(-50%);
    }

    .custom-select-arrows .arrow-up,
    .custom-select-arrows .arrow-down {
      display: block;
      font-size: 8px;
      line-height: 1;
    }
    
    /* HUD Styles */
    #hud{
      display:none;
    }
    
    #timer{
      position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:1000;
      color:#fff;font-size:15px;font-weight:bold;
      text-shadow:1px 1px 4px #000;pointer-events:none;
      display:none;
    }
    #status{
      position:fixed;top:46%;left:50%;transform:translate(-50%,-50%);z-index:1000;
      color:#fff;font-size:30px;font-weight:bold;
      text-shadow:2px 2px 8px #000;text-align:center;
      pointer-events:none;
      opacity:0;
      transition:opacity 0.35s ease;
    }
    #status.visible{opacity:1;}
    .ui-text-top {
      display: none;
      padding: 10px;
      border-radius: 5px;
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      font-size: 18px;
    }

    #counter {
      position: absolute;
      top: 10px;
      right: 0;
      left: 0;
      z-index: 1000;
      display: flex;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .highscore-text {
      z-index: 1030;
      font-size: 4rem;
    }

    .ui-text-center-lg {
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 1000;
      display: none;
      color: white;
      font-size: 3em;
      transform: translate(-50%, -50%);
    }

    .pointer-events-none,
    #ui-text-center-lg-id {
      pointer-events: none !important;
    }

    @media (max-width: 768px) {
      .ui-text-top {
        padding: 5px 10px;
        font-size: 15px;
      }
    }
    
    /* Loading Screen */
    .standalone-loading-overlay {
      position: fixed;
      inset: 0;
      z-index: 119900;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      background: rgba(15, 19, 24, 0.22);
      opacity: 1;
      visibility: visible;
      transition: opacity 0.24s ease, visibility 0.24s ease;
    }
    .standalone-loading-overlay.is-hidden {
      opacity: 0;
      visibility: hidden;
    }
    .standalone-loading-overlay[hidden] {
      display: none !important;
    }
    .standalone-loading-card {
      display: grid;
      width: min(360px, 82vw);
      justify-items: center;
      align-items: center;
      gap: 14px;
      padding: 12px;
      background: transparent;
      color: #f1f3f5;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.35;
      text-shadow: 0 1px 5px rgba(0, 0, 0, .75);
    }
    .standalone-loading-logo {
      display: block;
      width: min(330px, 76vw);
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .58));
    }
    .standalone-loading-meter {
      width: min(220px, 62vw);
      height: 4px;
      overflow: hidden;
      border-radius: 2px;
      background: rgba(230, 234, 239, .25);
      box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    }
    .standalone-loading-meter span {
      display: block;
      width: 38%;
      height: 100%;
      border-radius: inherit;
      background: #e7ebef;
      animation: standalone-loading-sweep 1.35s ease-in-out infinite alternate;
    }
    .standalone-loading-label {
      color: #eef0f3;
    }
    @keyframes standalone-loading-sweep { to { transform: translateX(165%); } }
    @media (prefers-reduced-motion: reduce) {
      .standalone-loading-overlay { transition-duration: 0.01ms; }
      .standalone-loading-meter span { animation-duration: 3s; }
    }
    
    /* ═══════════════════════════════════════════════════════════
       SHOP MODAL — 100% Authentic Braains.io (modd.io) production look
       Single authority for shop styling. All previous inline styles in
       shop-overlay.js were purged so nothing fights this block.
       ═══════════════════════════════════════════════════════════ */
    .hidden { display: none !important; }

    /* Backdrop layer — never intercepts game loop, pure DOM compositing */
    #modd-item-shop {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.55);
      font-family: 'Cabin', Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      pointer-events: none; /* Allow clicks to pass through to game canvas */
    }

    /* Bootstrap-like modal dialog structure */
    #modd-item-shop .modal-dialog {
      pointer-events: auto; /* Re-enable clicks for the shop window itself */
    }
    #modd-item-shop .modal-lg {
      max-width: 620px;
    }
    #modd-item-shop .modal-dialog-centered {
      display: flex;
      align-items: center;
      min-height: calc(100% - 1rem);
    }

    /* Card panel — breathing room so the grid never touches the borders */
    #modd-item-shop .modal-content {
      background: rgba(30, 32, 36, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 10px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
      max-width: 620px;
      width: min(92vw, 620px);
      max-height: 86vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #modd-item-shop .modal-content-new {
      background: rgba(30, 32, 36, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 10px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
    }

    /* Header — title left, close pinned crisp top-right */
    #modd-item-shop .modal-header {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px 12px 24px;
      background: transparent;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      flex-shrink: 0;
    }
    #modd-item-shop .modal-header-new {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px 12px 24px;
      background: transparent;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      flex-shrink: 0;
    }
    #modd-item-shop .modal-title {
      color: #ffffff;
      margin: 0;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 0.3px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    }
    #modd-item-shop .close {
      position: absolute;
      top: 12px;
      right: 14px;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      border-radius: 6px;
      color: #c8ccd2;
      cursor: pointer;
      opacity: 0.85;
      transition: background 0.12s, color 0.12s, opacity 0.12s;
    }
    #modd-item-shop .close:hover {
      opacity: 1;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.10);
    }
    #modd-item-shop .close:focus-visible {
      outline: 2px solid #7dd3fc;
      outline-offset: 2px;
    }
    #modd-item-shop .text-white {
      color: #ffffff !important;
    }

    /* Subtitle strip */
    #modd-item-shop-description,
    #modd-item-shop .shop-description {
      padding: 10px 24px;
      color: #b9bec6;
      font-size: 14px;
      line-height: 1.45;
      text-align: center;
      flex-shrink: 0;
    }

    /* Body — real padding so items never feel squeezed against edges */
    #modd-item-shop .modal-body {
      padding: 8px 24px 24px 24px;
      overflow-y: auto;
      flex: 1 1 auto;
    }
    #modd-item-shop .modal-body-new {
      padding: 8px 24px 24px 24px;
      overflow-y: auto;
      flex: 1 1 auto;
    }
    #modd-item-shop .modal-body::-webkit-scrollbar,
    #modd-item-shop .modal-body-new::-webkit-scrollbar { width: 8px; }
    #modd-item-shop .modal-body::-webkit-scrollbar-thumb,
    #modd-item-shop .modal-body-new::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 4px;
    }

    /* Bootstrap utility classes */
    #modd-item-shop .d-flex {
      display: flex !important;
    }
    #modd-item-shop .align-items-center {
      align-items: center !important;
    }
    #modd-item-shop .container {
      width: 100%;
      padding-right: 15px;
      padding-left: 15px;
      margin-right: auto;
      margin-left: auto;
    }
    #modd-item-shop .row {
      display: flex;
      flex-wrap: wrap;
      margin-right: -15px;
      margin-left: -15px;
    }
    #modd-item-shop .col {
      flex: 1 0 0%;
      padding-right: 15px;
      padding-left: 15px;
    }
    #modd-item-shop .mt-0 {
      margin-top: 0 !important;
    }
    #modd-item-shop .mt-md-3 {
      margin-top: 1rem !important;
    }
    #modd-item-shop .text-center {
      text-align: center !important;
    }
    #modd-item-shop .bottom-radius {
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }

    /* Responsive item grid with comfortable gutters */
    #item-shop-modal { padding: 0; max-width: none; }
    #item-shop-modal .shop-grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
      gap: 12px;
      padding: 6px 2px;
    }

    /* Item card — dark translucent panel, authentic grey border */
    #modd-item-shop .item-shop-button {
      background: rgba(255, 255, 255, 0.045);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 6px;
      padding: 10px 8px 8px;
      cursor: pointer;
      text-align: center;
      user-select: none;
      transition: background 0.12s, border-color 0.12s, transform 0.08s;
    }
    #modd-item-shop .btn-purchase-item {
      background: rgba(255, 255, 255, 0.045);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 6px;
      padding: 10px 8px 8px;
      cursor: pointer;
      text-align: center;
      user-select: none;
      transition: background 0.12s, border-color 0.12s, transform 0.08s;
    }
    #modd-item-shop .grey-bordered {
      border: 1px solid rgba(255, 255, 255, 0.16);
    }
    #modd-item-shop .rounded {
      border-radius: 6px;
    }
    #modd-item-shop .align-bottom {
      align-self: flex-end;
    }
    #modd-item-shop .item-shop-button:hover,
    #modd-item-shop .item-shop-button:focus-visible,
    #modd-item-shop .btn-purchase-item:hover,
    #modd-item-shop .btn-purchase-item:focus-visible {
      background: rgba(255, 255, 255, 0.10);
      border-color: rgba(255, 255, 255, 0.38);
      outline: none;
    }
    #modd-item-shop .item-shop-button:active,
    #modd-item-shop .btn-purchase-item:active { transform: scale(0.97); }
    #modd-item-shop .unpurchasble-item,
    #modd-item-shop .item-shop-button[disabled] {
      cursor: not-allowed;
      opacity: 0.55;
    }
    #modd-item-shop .unpurchasble-item:hover {
      background: rgba(255, 255, 255, 0.045);
      border-color: rgba(255, 255, 255, 0.16);
      transform: none;
    }

    /* Legendary rarity accent (Shotgun) */
    #modd-item-shop .rarity-legendary {
      border-color: rgba(255, 200, 60, 0.55);
    }
    #modd-item-shop .rarity-legendary:hover {
      border-color: rgba(255, 214, 0, 0.9);
      box-shadow: 0 0 12px rgba(255, 214, 0, 0.18);
    }

    /* Item art tile */
    #modd-item-shop .item-shop-button-div {
      min-height: 138px;
      /* BUG FIX #10: authentic layout padding for every equipment slot */
      padding: 10px 8px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    /* BUG FIX #10: high-contrast, clean item description label rendered
       directly under every equipment slot (Pill, Stick, Baseball Bat,
       Potato Gun, ...). Kept compact so the grid stays authentic. */
    #modd-item-shop .item-shop-desc {
      font-size: 11px;
      line-height: 1.35;
      color: #f1f5f9;                 /* high contrast on dark slot bg */
      background: rgba(0, 0, 0, 0.35);
      border-radius: 4px;
      padding: 3px 6px;
      margin: 2px 4px 0;
      text-align: center;
      min-height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }
    #modd-item-shop .unpurchasble-item .item-shop-desc { opacity: 0.55; }
    #modd-item-shop .item-shop-button img {
      width: 72px;
      height: 72px;
      object-fit: contain;
      background: #4B5563;
      padding: 8px;
      margin-top: 4px;
      border-radius: 4px;
      pointer-events: none;
    }

    /* Item label — high contrast, bold, readable over dark panels */
    #modd-item-shop .item-shop-button .no-selection {
      padding: 8px 4px 2px;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.15;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
      overflow-wrap: break-word;
    }

    /* Price tag under the label */
    #modd-item-shop .item-shop-price {
      font-size: 12px;
      font-weight: 600;
      color: #ffd600;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
      padding-bottom: 4px;
    }
    #modd-item-shop .text-success {
      color: #28a745 !important;
    }
    #modd-item-shop .text-danger {
      color: #dc3545 !important;
    }
    #modd-item-shop .unpurchasble-item .item-shop-price { color: #ef9a9a; }

    #modd-item-shop .lowered-visibility { opacity: 0.35; }

    @media (max-width: 480px) {
      #modd-item-shop .modal-content,
      #modd-item-shop .modal-content-new { width: 96vw; max-height: 92vh; }
      #modd-item-shop .modal-body,
      #modd-item-shop .modal-body-new { padding: 6px 14px 16px; }
      #item-shop-modal .shop-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 8px;
      }
    }
