/* Ajar Hybrid v3 prototype shell. The screens carry their own inline styles (generated from the design kit). */
* { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #A9A6A2; font-family: 'Outfit', sans-serif; color: #1B1B1F; overscroll-behavior: none; }
body { display: flex; overflow: hidden; }
button { font-family: inherit; cursor: pointer; }
a { color: #5F5F68; }

.side { width: 280px; flex: none; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 28px 22px 40px; background: #FFFFFF; }
.side h1 { margin: 0 0 6px; font-size: 30px; font-weight: 300; }
.side p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #5F5F68; }
.side h2 { margin: 18px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5F5F68; }
.side nav a { display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 10px; font-size: 15px; color: #1B1B1F; text-decoration: none; }
.side nav a:hover { background: #F1F1F4; }
.side nav a[aria-current="page"] { background: #2A0A10; color: #FFFFFF; }
.side .old { margin-top: 24px; }

.stage { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fit { position: relative; width: 390px; height: 844px; flex: none; transform-origin: center center; }
.scr { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.scr[hidden] { display: none; }
.scr > div { width: 100% !important; height: 100% !important; }
.scr.in > div { animation: in 0.22s ease-out; }
@keyframes in { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scr.in > div { animation: none; } }

[data-row] { cursor: pointer; }
button:active { opacity: 0.75; }

#toast { position: absolute; left: 22px; right: 22px; top: 62px; z-index: 30; padding: 14px 18px; border-radius: 20px; background: #1B1B1F; color: #FFFFFF; font-size: 15px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
#toast.on { opacity: 1; transform: none; }

.cmenu { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 20; border-radius: 40px 0 0 0; background: #2A0A10; box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: space-around; padding: 6px 96px 0 14px; box-sizing: border-box; transform-origin: right bottom; animation: grow 0.2s ease-out; }
.cmenu button { width: 54px; height: 56px; border: none; background: transparent; padding: 0; color: #FFFFFF; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
@keyframes grow { from { transform: scaleX(0.25); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cmenu { animation: none; } }

/* Phones: no index, the screen fills the display. Installed to the home screen, the real island sits where the drawn one is. */
@media (max-width: 860px) {
  .side { display: none; }
  html, body { background: #000000; }
  .scr > div { border-radius: 0 !important; box-shadow: none !important; }
}
@media (display-mode: standalone) { [data-island] { visibility: hidden; } }
