/* workspace/starcode2/shell/base.css */
/* Reset, colour tokens, the title screen, the menu grid, the top bar, the
   prototype root and the toast. The capture overlay lives in capture.css. */
:root {
  --bg: #0b0f14;
  --bg2: #141b24;
  --bg3: #1c2530;
  --fg: #e8eef5;
  --muted: #8a98a8;
  --accent: #4fd1c5;
  --accent-ink: #06211e;
  --line: #243040;
  --warn: #f6ad55;
  --tap: 48px;
  --radius: 12px;
  color-scheme: dark;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] {
  display: none !important;
}
button, input {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
h1 {
  font-size: inherit;
}
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#app.app-fixed {
  height: 100dvh;
  overflow: hidden;
}
/* Title screen */
.title-tap {
  flex: 1;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  color: var(--fg);
  animation: title-in 300ms ease-out;
}
.title-name {
  font-size: clamp(40px, 12vw, 88px);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.title-sub {
  font-size: clamp(14px, 4vw, 22px);
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.title-hint {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}
@keyframes title-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Menu */
.menu {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
}
.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: var(--tap);
  padding: 0 4px 8px;
}
.menu-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.menu-count {
  color: var(--muted);
  font-size: 14px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  min-height: 120px;
}
.card:active {
  background: var(--bg3);
}
.card:disabled {
  opacity: 0.6;
}
.card-title {
  font-weight: 700;
  font-size: 17px;
}
.card-pitch {
  font-size: 13px;
  opacity: 0.85;
}
.card-feel {
  margin-top: auto;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Top bar and prototype root */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--tap);
  padding-top: env(safe-area-inset-top);
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.topbar-btn {
  min-height: var(--tap);
  min-width: 64px;
  padding: 0 14px;
  color: var(--accent);
  font-weight: 600;
}
.topbar-title {
  text-align: center;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proto {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}
