:root {
  --primary: #005cbb;
  --primary-hover: #004a96;
  --card-bg: #ffffff;
  --text: #1a1c1e;
  --text-muted: #44474e;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #ffffff; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); }

iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.app-card {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: var(--card-bg);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  z-index: 10;
}
.app-card img { display: block; height: 28px; width: auto; }

.start {
  padding: 10px 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}
.start:hover { background: var(--primary-hover); }
.start:focus-visible, .fallback:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.fallback {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 18px;
  border-radius: 50%;
}
.fallback:hover { background: #eef0f4; }

/* Small screens: shorten the iframe and put the card below it as a full-width bar */
@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }
  iframe {
    position: static;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  .app-card {
    position: static;
    width: 100%;
    border-radius: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  }
  .start { margin-left: auto; }
}
