/* Compact layout for the X Player Card iframe (~480x480, may be scaled down). */
html, body { height: 100%; overflow: hidden; font-size: 16px; }

#app {
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  padding: 40px 16px 12px;
}

.embed-brand {
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 50;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #6b6b80;
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid #dddde4;
  border-radius: 999px;
  background: #fff;
}

/* Title screen */
.embed .daily-hdr { margin-bottom: 8px; }
.embed .daily-done { margin: 8px 0; padding: 10px; }
.embed .daily-done-score { font-size: 26px; }
.embed .daily-hub-link { margin-top: 8px; padding: 10px 24px; font-size: 14px; }
.embed .title-icon { font-size: inherit; margin: 0; }
.embed .game-title { font-size: clamp(26px, 8.5vmin, 40px); letter-spacing: 3px; white-space: nowrap; }
.embed .tagline { font-size: 12px; letter-spacing: 2px; margin-top: 4px; }
.embed-example { display: flex; gap: 8px; justify-content: center; margin: 18px 0 6px; }
.embed-example .help-cue {
  background: var(--color-tile);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}
.embed-example-answer { font-size: 13px; color: #6b6b80; margin-bottom: 18px; }
.embed-example-answer strong { color: var(--color-accent); letter-spacing: 1px; }
.embed .btn-main { min-height: 52px; font-size: 16px; }

/* Game screen */
.embed #game-screen { justify-content: center; overflow: hidden; }
.embed #cue-area { flex-direction: row; gap: 8px; margin: 0 0 10px; }
.embed .cue-card {
  flex: 1;
  min-width: 0;
  padding: 18px 4px;
  font-size: clamp(14px, 4.6vmin, 22px);
  letter-spacing: 1.5px;
  overflow-wrap: anywhere;
}
.embed #link-area { flex-direction: row; justify-content: center; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.embed .link-row { font-size: 13px; }
.embed #input-area { margin: 4px 0; }
.embed #guess-input { padding: 12px 14px; font-size: 16px; }
.embed .btn { padding: 12px 18px; font-size: 14px; }
.embed #status-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.embed #mistakes { font-size: 13px; gap: 4px; }
.embed .dot { width: 11px; height: 11px; }
.embed #hint-display { padding: 0; font-size: 18px; letter-spacing: 4px; }
.embed .btn-hint { padding: 6px 14px; font-size: 13px; }
.embed #score-display { font-size: 13px; padding-top: 10px; }

/* Result overlay */
.embed #overlay { padding: 12px; align-items: center; }
.embed #overlay-content { padding: 16px 18px; max-height: 100%; overflow-y: auto; }
.embed #overlay-title { font-size: 20px; margin-bottom: 4px; }
.embed #overlay-answer { font-size: 28px; margin-bottom: 6px; }
.embed #overlay-links { margin-bottom: 6px; }
.embed .overlay-link-row { padding: 3px 0; font-size: 13px; }
.embed #overlay-score { margin: 0; }
.embed #overlay-score .big-score { font-size: 36px; }
.embed #overlay-stats { font-size: 13px; margin-bottom: 4px; }
.embed-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.embed-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.embed-more { background: var(--color-tile); color: var(--color-text); }
.embed #next-cd { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #5e81ac; margin-top: 10px; }

.embed #toast { top: 44px; font-size: 13px; padding: 8px 18px; }

/* Small iframes (X scales the card down on narrow timelines) */
.embed #guess-input { min-width: 0; }
.embed #title-screen { overflow-y: auto; min-height: 0; }
.embed #title-screen:has(.daily-done) .embed-example,
.embed #title-screen:has(.daily-done) .embed-example-answer { display: none; }
@media (max-height: 400px) {
  #app { padding-top: 34px; }
  .embed .cue-card { padding: 12px 4px; }
  .embed-example { margin-top: 10px; }
  .embed-example-answer { margin-bottom: 10px; }
}
