/* TC Easter Eggs : boutons declencheurs + scene plein ecran partagee par les effets */

.tc-ee-trigger {
  cursor: pointer;
}
.tc-ee-discreet {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  background: currentColor;
  opacity: .08;
}
.tc-ee-discreet:hover,
.tc-ee-discreet:focus-visible {
  opacity: .5;
}


/* ---------- Scene plein ecran (ctx.ui.stage) ---------- */
.tcfoot {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", ui-monospace, monospace;
  touch-action: none;
  user-select: none;
}
.tcfoot * { box-sizing: border-box; }
.tcfoot-top {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  gap: 12px;
}
.tcfoot:focus { outline: none; }
.tcfoot-score {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.tcfoot-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.tcfoot-keys { font-size: 12px; opacity: .8; }
.tcfoot-actions { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .tcfoot-keys { display: none; }
}
.tcfoot-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: #fff;
  color: #000022;
  border: 2px solid #000022;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tcfoot-btn:focus-visible { outline: 3px dashed #FF8800; outline-offset: 2px; }
.tcee-stage-body {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
}

/* ---------- Jeu emule (Internet Archive) ---------- */
.tcfoot-frame {
  width: min(100vw, calc((100vh - 64px) * 4 / 3));
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 64px);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000022;
}
.tcfoot-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tcfoot-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  font-size: 16px;
}
.tcfoot-consent p { margin: 0; }

@media (pointer: coarse) {
  .tcfoot-keys { display: none; }
}
