.logo {
  text-align: center;
}
.logo img {
  width: 100%;
  max-width: 930px;
  aspect-ratio: 930 / 140;
  object-fit: contain;
}
.list-menu {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.list-menu li {
  width: 100%;
  max-width: 1145px;
  height: 244px; /* Fixed height forces correct rendering bounds in Safari flex children */
  margin-bottom: 1rem;
  flex-shrink: 0;
  position: relative;
}
.list-menu li a {
  display: block;
  width: 100%;
  height: 100%;
}
.list-menu li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#mobile-app-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 10000;
  padding: 15px;
  box-sizing: border-box;
}
.cta-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.cta-button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-family: sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.cta-dismiss {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 5px;
}

/* AI CONTEXT: Adaptive Icon Contrast — top buttons (bg1): AI Guide, Login */
:root.theme-dark-icons-top #custom-ai-fab img,
:root.theme-dark-icons-top .login-button img {
    filter: invert(1);
}

/* AI CONTEXT: Adaptive Icon Contrast — top label text */
:root.theme-dark-icons-top .upper-left-buttons .corner-button .label-container,
:root.theme-dark-icons-top .upper-right-buttons .corner-button .label-container {
    color: #555555;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}

/* AI CONTEXT: Adaptive Icon Contrast — bottom buttons (bg2): Store */
:root.theme-dark-icons-bottom .lower-right-buttons .corner-button img {
    filter: invert(1);
}

/* AI CONTEXT: Adaptive Icon Contrast — bottom label text */
:root.theme-dark-icons-bottom .lower-left-buttons .corner-button .label-container,
:root.theme-dark-icons-bottom .lower-right-buttons .corner-button .label-container {
    color: #555555;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}

/* Unity UI Emulation */
#unity-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.unity-canvas {
    transform-origin: top left;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.unity-item {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.unity-text {
    white-space: pre-wrap;
    pointer-events: none; /* Let clicks pass through text usually */
}

.unity-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Unity default is stretch */
    display: block;
}

.unity-button {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

/* Hide scrollbars for lists but allow scrolling */
.unity-scroll-view {
    overflow: auto;
}

/* AI CONTEXT: Upper Left Buttons Styling (Login/Logout) */
.upper-left-buttons {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 75px; /* Matches Prefab width */
}

.login-button .icon-container {
    width: 75px;
    height: 75px;
    margin-bottom: 5px;
}

.login-button .icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-button .label-container {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #8A8A89; /* Matches Prefab Text Color */
    text-shadow: 0px 0px 2px rgba(255,255,255,0.8); /* Ensure visibility on dark/light backgrounds */
}

/* Reusable UI Components */
.action-chip {
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.4);
    border-radius: 16px;
    padding: 5px 14px;
    color: #a8c8f0;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
}

.action-chip:hover {
    background: rgba(74, 144, 226, 0.35);
    border-color: rgba(74, 144, 226, 0.8);
    color: #ffffff;
}

/* Utility Animations */
@keyframes pulse {
    from { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 74, 74, 0.7); }
    to { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(226, 74, 74, 0); }
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
