/* Main screen styles: same palette and card as the SIM menu (Tailwind zinc + emerald), Default look only. */
:root {
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-700: #047857;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--zinc-950);
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.game-card { width: 100%; max-width: 366px; background: var(--zinc-900); border-radius: 1.5rem; padding-bottom: 0.75rem; }
.game-head { padding: 0.75rem 1rem; border-bottom: 1px solid var(--zinc-800); text-align: center; }
.title-row { display: flex; align-items: center; justify-content: center; gap: 0.625rem; }
.head-logo { flex: none; width: 5.25rem; height: auto; }
.game-title { margin: 0; text-align: left; font-size: 1.2rem; line-height: 1.5rem; font-weight: 800; }
.game-title .tl { display: block; white-space: nowrap; }
.game-sub { margin: 0.25rem 0 0; color: var(--zinc-400); font-size: 0.875rem; font-weight: 800; }
.play-area {
  margin: 0.5rem 0;
  padding: 1.25rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border: 2px solid var(--zinc-700);
  border-radius: 1rem;
  background: var(--zinc-950);
}
.app-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 0.875rem;
  border-radius: 0.75rem;
  background: var(--emerald-700);
  border: 2px solid var(--emerald-600);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}
a.app-btn:active { background: #065f46; transform: scale(0.98); }
.app-btn:focus-visible { outline: 3px solid var(--emerald-300); outline-offset: 3px; }
.app-btn[disabled] { background: var(--zinc-800); border-color: var(--zinc-700); color: var(--zinc-200); box-shadow: none; cursor: not-allowed; }
.icon { flex: none; width: 3rem; height: 3rem; }
/* SIM: 2x2 game tiles */
.icon.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.3rem; }
.icon.sim i { border-radius: 0.3rem; background: rgba(255, 255, 255, 0.4); }
.icon.sim i:first-child { background: #fde047; box-shadow: 0 0 6px rgba(253, 224, 71, 0.8); }
/* Dash: three bars */
.icon.dash { display: flex; align-items: flex-end; justify-content: center; gap: 0.3rem; padding: 0.45rem; }
.icon.dash i { width: 0.55rem; border-radius: 0.15rem; background: var(--zinc-400); }
.icon.dash i:nth-child(1) { height: 40%; }
.icon.dash i:nth-child(2) { height: 75%; }
.icon.dash i:nth-child(3) { height: 55%; }
/* Manager: a person (head + shoulders) */
.icon.manager { position: relative; }
.icon.manager i { position: absolute; left: 50%; top: 0.45rem; width: 1.05rem; height: 1.05rem; margin-left: -0.525rem; border-radius: 50%; background: var(--zinc-400); }
.icon.manager b { position: absolute; left: 50%; bottom: 0.45rem; width: 2rem; height: 1rem; margin-left: -1rem; border-radius: 1rem 1rem 0.3rem 0.3rem; background: var(--zinc-400); }
.txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.name { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; line-height: 1.7rem; }
.desc { font-size: 0.85rem; line-height: 1.15rem; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { font-size: 2rem; font-weight: 300; line-height: 1; }
.soon { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.45rem; border: 1.5px solid var(--zinc-400); border-radius: 999px; color: var(--zinc-400); }
.lang-picker { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.25rem; }
.cap { flex: 0 0 5.6rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zinc-200); }
.lang-wrap { position: relative; flex: 1; display: flex; }
.lang-select {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(24, 24, 27, 0.92);
  color: #fff;
  border: 2px solid var(--emerald-600);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.lang-select:focus-visible { outline: 3px solid var(--emerald-300); outline-offset: 2px; }
.lang-select option { background: var(--zinc-900); color: #fff; text-transform: none; }
.caret {
  position: absolute; right: 0.95rem; top: 50%; margin-top: -0.4rem; pointer-events: none;
  width: 0.55rem; height: 0.55rem;
  border-right: 2.5px solid var(--emerald-400); border-bottom: 2.5px solid var(--emerald-400);
  transform: rotate(45deg);
}
.note { margin: -0.4rem 0 0 6.2rem; font-size: 0.75rem; color: var(--zinc-400); }
.brand { margin: 0.5rem 0 0; text-align: center; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--zinc-400); }
.brand a { color: var(--zinc-400); text-decoration: underline; }
@media (max-width: 360px) {
  .app-btn { gap: 0.5rem; padding: 0.9rem 0.625rem; }
  .desc { font-size: 0.75rem; }
}
