/* v8 only. The earlier local/practice/shared screen themes stay frozen. */
.ac-immersive-portal .clear-view-v8-game {
  background: #071421 url('game-art/clear-view-v6-background.webp') center / cover no-repeat;
  color: #e8f7f1;
}
.clear-view-v8-game .ac-field,
.clear-view-v8-game canvas { background: transparent; }
.clear-view-v8-game.ac-compact-controls .ac-hud {
  background: none;
  border: 0;
  box-shadow: none;
  padding-top: 5px;
  padding-bottom: 3px;
}
.clear-view-v8-game .ac-board-title,
.clear-view-v8-game [data-ac-score],
.clear-view-v8-game [data-ac-label],
.clear-view-v8-game .ac-hud small,
.clear-view-v8-game .ac-status {
  background: none;
  text-shadow: none;
  font-size: 0;
}
.clear-view-v8-game.ac-compact-controls .ac-top { min-height: 56px; }
.clear-view-v8-game.ac-compact-controls .ac-board-title { flex: 1 1 0; width: auto; max-width: none; min-width: 0; }
.clear-view-v8-game.ac-compact-controls .ac-hud { grid-template-columns: 70px minmax(0,1fr) 96px; min-height: 56px; gap: 5px; }
.clear-view-v8-game .ac-hud > span { min-width: 0; max-width: none; }
.clear-view-v8-game .ac-hud > span:nth-child(2) { max-width: none; }
.clear-view-v8-game .ac-hud [data-ac-label],
.clear-view-v8-game .ac-hud [data-ac-detail] { overflow: visible; text-overflow: clip; white-space: normal; }
.clear-view-v8-game .ac-hud b { display: flex; align-items: center; min-height: 38px; line-height: 0; }
.clear-view-v8-game .ac-hud small { display: block; min-height: 16px; line-height: 0; }
.clear-view-v8-game .ac-hud .cv8-lettering,
.clear-view-v8-game .ac-board-title .cv8-lettering { width: 100%; }
.clear-view-v8-game .ac-status { min-height: 0; margin: 0; }
.clear-view-v8-game .ac-board-control {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #d8f5e8;
}
.clear-view-v8-game .ac-board-control:active { background: #619b9826; }
.clear-view-v8-game .ac-life-eye { stroke: #e4d2a6; }
.clear-view-v8-game .ac-life-eye circle { fill: #94e5d5; }
.clear-view-v8-game .ac-help { background: #071723fa; }
.clear-view-v8-game .ac-board-result { background: #071723e8; border-color: #e4d2a65c; }
.clear-view-v8-game .ac-board-result h3,
.clear-view-v8-game .ac-result-score,
.clear-view-v8-game .ac-board-result-detail,
.clear-view-v8-game .ac-primary,
.clear-view-v8-game .ac-countdown { font-size: 0; }
.clear-view-v8-game .ac-result-score { min-height: 50px; }
.clear-view-v8-game .ac-board-result .ac-primary { min-height: 48px; }
.clear-view-v8-game .cv8-lettering { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; max-width: 100%; }
.clear-view-v8-game .cv8-lettering canvas { display: block; max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .clear-view-v8-game * { animation: none !important; transition: none !important; }
}

/* Match the legacy compact-screen specificity: no serif title mask or shadow
   may paint through the generated glyphs when both version classes are present. */
.clear-view-v8-game.ac-compact-controls .ac-board-title {
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-shadow: none;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: transparent;
  filter: none;
}
.clear-view-v8-game.ac-compact-controls [data-ac-score],
.clear-view-v8-game.ac-compact-controls [data-ac-label],
.clear-view-v8-game.ac-compact-controls .ac-hud small {
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-shadow: none;
  filter: none;
}

/* Earned extra lives stay inside their compact column, with up to two rows. */
.clear-view-v8-game.ac-compact-controls .ac-hud [data-ac-time] { flex-wrap: wrap; column-gap: 2px; row-gap: 2px; align-content: center; }


/* The current anatomical scene owns the full-width title row. */
.clear-view-v8-game.ac-compact-controls .ac-top { display: grid; grid-template-columns: repeat(4,minmax(44px,1fr)); grid-template-rows: 108px 44px; gap: 2px 4px; min-height: 154px; }
.clear-view-v8-game.ac-compact-controls .ac-board-title { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: center; height: 108px; }
.clear-view-v8-game.ac-compact-controls .ac-top > .ac-board-control { grid-row: 2; justify-self: center; }
.clear-view-v8-game .cv8-stage-title { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; }
.clear-view-v8-game.ac-compact-controls .ac-hud [data-ac-label] { display: none; }
.clear-view-v8-game.ac-compact-controls .ac-hud > span:nth-child(2) { justify-content: center; }
.clear-view-v8-game.ac-compact-controls .ac-hud b { min-height: 29px; }
.clear-view-v8-game.ac-compact-controls .ac-life-eye { width: 28px; height: 28px; background: url('game-art/eye-breaker-lives-v1.webp') center / contain no-repeat; stroke: none; fill: none; }
.clear-view-v8-game.ac-compact-controls .ac-life-eye > * { display: none; }
.clear-view-v8-game.ac-compact-controls .ac-hud [data-ac-time] { min-height: 29px; }

.clear-view-v8-game .ac-board-paused > span { display: block; width: 100%; min-width: 0; max-width: 100%; text-align: center; font-size: 0; line-height: 0; }

/* Approved frame geometry: v8/v9 Tear Film, and all six v10 scenes. */
.ac-immersive-portal .clear-view-v8-game.cv8-tear-frame { background: #020d14; padding-top: env(safe-area-inset-top,0px); }
.clear-view-v8-game.ac-compact-controls.cv8-tear-frame .ac-top {
  display: block; min-height: 0; padding: 0; margin: 0; gap: 0;
  background: var(--cv8-frame-header,url('game-art/eye-breaker-tear-header-v1.webp')) center / 100% 100% no-repeat;
}
.clear-view-v8-game.ac-compact-controls.cv8-tear-frame .ac-board-title {
  position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0;
  padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
}
.clear-view-v8-game.ac-compact-controls.cv8-tear-frame .ac-hud { display: none; }
.clear-view-v8-game.ac-compact-controls.cv8-tear-frame .ac-board-control {
  position: absolute; display: grid; place-items: center; min-height: 44px;
  right: auto; bottom: auto; justify-self: auto; align-self: auto; grid-row: auto; grid-column: auto;
  padding: 0; margin: 0; border: 0; background: none; box-shadow: none;
}
.clear-view-v8-game.cv8-tear-frame .ac-top > [data-ac="back"] > *,
.clear-view-v8-game.cv8-tear-frame .ac-top > [data-ac="info"] > * { visibility: hidden; }
.clear-view-v8-game.cv8-tear-frame .ac-board-control:focus-visible { outline: 2px solid #fff0b9; outline-offset: -2px; }
.clear-view-v8-game.cv8-tear-frame .cv8-frame-control { display: block; width: 34px; height: 34px; object-fit: contain; pointer-events: none; }
.clear-view-v8-game.cv8-tear-frame [data-ac-score] {
  position: absolute; display: flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0; margin: 0; padding: 0; overflow: hidden;
}
.clear-view-v8-game.cv8-tear-frame [data-ac-score] > .cv8-lettering { width: 100%; }
.clear-view-v8-game.cv8-tear-frame .cv8-tear-footer {
  position: relative; flex: none; width: 100%; min-height: 44px;
  background: var(--cv8-frame-footer,url('game-art/eye-breaker-tear-footer-v1.webp')) center / 100% 100% no-repeat;
}
.clear-view-v8-game.cv8-tear-frame .cv8-tear-footer [data-ac-time] {
  position: absolute; display: flex; flex-direction: row; align-items: center; justify-content: flex-end;
  gap: 2px; margin: 0; padding: 0; font-size: 0; line-height: 0;
}
.clear-view-v8-game.cv8-tear-frame .cv8-tear-footer .ac-life-eye { width: 28px; height: 28px; flex: none; }
.clear-view-v8-game.cv8-tear-frame .cv8-tear-footer[aria-hidden="true"] { visibility: hidden; }
.clear-view-v8-game.cv8-tear-frame .cv8-frame-control { transform: translateX(var(--cv8-icon-offset-x,0px)); }
.clear-view-v8-game.cv8-tear-frame .cv8-frame-music { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; fill: #ead8a8; stroke: #08202b; stroke-width: .8px; pointer-events: none; }
/* The native gameplay canvas keeps its ratio. Its quiet field artwork also
   fills the few spare flex pixels and remains visible while gameplay is hidden. */
.clear-view-v8-game.ac-compact-controls.cv8-tear-frame .ac-field {
  background: #020d14 var(--cv8-frame-field,url('game-art/eye-breaker-tear-field-v1.webp')) center / 100% 100% no-repeat;
}
