/* Mobile-specific styles for cybreco games page */
/* Add games page mobile styles here. */

@media (max-width: 768px) {
  .container {
    display: none !important;
  }
  .mobile-container {
    display: flex !important;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
  }
  .mobile-horizon-vertical-full {
    position: absolute;
    left: 36%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #fff;
    z-index: 5;
    transform: translateX(-50%);
  }
  .mobile-header {
    text-align: center;
    padding: 50px 20px 20px 20px; /* Move GAMES title down */
    z-index: 15;
    position: relative;
  }
  .mobile-games-title {
    color: #fff;
    font-family: 'Dogica', monospace;
    font-size: 18px;
    letter-spacing: 3px;
    text-align: left;
    padding-left: 10px;
  }
  .mobile-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0 0 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-content::-webkit-scrollbar {
    display: none;
  }
  .mobile-boxes-container {
    position: absolute;
    left: 36%;
    top: 40px; /* Move boxes down */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    min-height: 100%;
    z-index: 10;
    gap: 20px;
    padding-bottom: 60px;
  }  .mobile-content-box {
    width: 90px;
    height: 90px;
    background-color: #222;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    left: auto !important;
    top: auto !important;
    z-index: 20;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }
  .mobile-content-box:active {
    transform: scale(0.95);
    border-color: #666;
    background-color: #333;
  }  .mobile-content-box img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.2) brightness(0.9);
    border-radius: 0;
    border: none;
    display: block;
    box-sizing: border-box;
    position: absolute;
    top: 2px;
    left: 2px;
    margin: 0;
  }.mobile-box-title {
    display: block;
    position: absolute;
    left: 110px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-family: 'Dogica', monospace;
    font-size: 9px;
    white-space: pre-line;
    word-break: break-word;
    pointer-events: none;
    padding: 0 6px;
    max-width: 120px;
    overflow: visible;
    text-overflow: unset;
    text-align: left;
    box-sizing: border-box;
  }
  .mobile-game-year-label {
    display: block;
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    min-width: 40px;
    margin-right: 12px;
    color: #fff;
    font-family: 'Dogica', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    word-break: normal;
    opacity: 0.7;
    text-align: right;
    z-index: 16;
    background: none;
    padding-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-content-box.placeholder {
    background-color: #111;
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 9px;
    text-align: center;
  }  
  .mobile-box-number {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    font-family: 'Dogica', monospace;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    pointer-events: none;
    user-select: none;
    box-sizing: border-box;
    top: -7px;
    left: -7px;
  }
  
  .mobile-games-back-link {
    position: fixed !important;
    right: 18px !important;
    bottom: 20px !important;
    color: #fff;
    font-family: 'Dogica', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-decoration: none;
    z-index: 30;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
  }
  
  .mobile-detail-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .mobile-detail-content {
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
    max-width: 90%;
    position: relative;
    text-align: center;
  }
  
  .mobile-detail-name {
    color: #fff;
    font-family: 'Dogica', monospace;
    font-size: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #666;
    transition: color 0.3s;
  }
  
  .mobile-detail-name:hover {
    color: #ccc;
  }
  
  .mobile-detail-description {
    color: #aaa;
    font-family: 'Dogica', monospace;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: pre-line;
  }
  
  .mobile-detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
  }
  
  .mobile-detail-close:hover {
    color: #fff;
  }
}
