.olo-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 56px 0 calc(max(8px, env(safe-area-inset-bottom)) + 112px);
  color: var(--tool-text);
}

.olo-scene[hidden] {
  display: none;
}

.olo-turn {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 32px;
  background: rgb(17 17 17 / 0.78);
  color: white;
  text-align: center;
  font: 700 28px/1.3 ui-sans-serif, system-ui, sans-serif;
}

.olo-turn[hidden] {
  display: none;
}

.olo-board {
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.olo-note {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.olo-dock {
  position: absolute;
  right: 12px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.olo-dock button,
.olo-link-actions button {
  pointer-events: auto;
}

.olo-hint {
  max-width: 36rem;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--tool-line);
  border-radius: 999px;
  background: var(--tool-solid);
  color: var(--tool-text);
  font: var(--type-body);
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.olo-link-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.olo-link-actions button:disabled {
  border-color: var(--tool-line);
  background: var(--tool-bg);
  color: var(--tool-muted);
  cursor: default;
  opacity: 0.65;
}

.olo-link-panel {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
}

.olo-link-panel[hidden] {
  display: none;
}

.olo-link-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: min(100%, 420px);
}

.olo-link-title {
  margin: 0;
  font: var(--type-title);
  color: var(--ink);
}

.olo-link-body {
  margin: 0;
  font: var(--type-body);
  line-height: 1.45;
  color: var(--ink);
}

.olo-link-panel button:focus-visible,
.olo-play-together:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.olo-qr {
  width: min(100%, 320px);
  height: auto;
  align-self: center;
  border-radius: 12px;
  background: #ffffff;
}

.olo-scan {
  width: min(100%, 320px);
  aspect-ratio: 1;
  align-self: center;
  border-radius: 12px;
  object-fit: cover;
  background: #000000;
}

.olo-grab {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
