@font-face {
  font-family: "Share Tech Mono";
  src: url("/assets/fonts/ShareTechMono-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Share Tech";
  src: url("/assets/fonts/ShareTech-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

/* Teinte des caractères relevée sur la photo du Shanti Bowl. */
.device-lcd {
  --lcd-ink: #cfee44;
  position: relative;
  box-sizing: border-box;
  container-type: inline-size;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 3px solid #a58c59;
  border-radius: 4px;
  background: linear-gradient(115deg, #12150f, #000E38 70%, #101110);
  box-shadow: inset 0 0 0 1px #49483b, 0 1px 2px #000E38;
  color: var(--lcd-ink);
  font-variant-numeric: tabular-nums;
}
.device-lcd::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgb(0 0 0 / 6%) 2px 3px);
}
.carillon-display .clock-screen {
  background: transparent;
  color: inherit;
  text-shadow: none;
  box-shadow: none;
}
.carillon-display .clock-rule { box-shadow: none; }

.coherence-player {
  align-self: center;
  justify-self: start;
  width: min(100%, 340px);
}
.coherence-player[hidden], .breathing-method-content[hidden] { display: none; }
.coherence-lcd {
  font-family: "Share Tech Mono", monospace;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 3% 4.5% 0;
  line-height: 1.1;
}
.coherence-lcd > span, .lcd-countdown { font-size: 6.8cqw; }
.shanti-lcd { grid-template-rows: auto auto auto 1fr auto; }
.shanti-lcd > span, .shanti-lcd .lcd-countdown { font-size: 6cqw; }
.shanti-lcd .lcd-back { min-height: 0; }
.lcd-countdown { display: flex; justify-content: space-between; }
.lcd-countdown [role="timer"] { font-family: "Share Tech", Arial, sans-serif; }
.lcd-phase { align-self: center; text-align: center; font-size: 13cqw; font-weight: 600; }
.lcd-back {
  position: relative;
  width: clamp(48px, 17cqw, 64px); height: clamp(38px, 14cqw, 56px); padding: 0;
  display: grid; place-items: center;
  text-align: center; border: 0; color: inherit;
  background: transparent;
  font-family: inherit; font-size: clamp(15px, 5cqw, 21px); font-weight: 700; line-height: 1; cursor: pointer;
}
.lcd-back::before, .lcd-back::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%; translate: -50% -50%;
  height: 72%; aspect-ratio: 1; box-sizing: border-box;
  border-radius: 50%; pointer-events: none;
}
.lcd-back::before {
  border: 1px solid rgb(255 255 255 / 75%);
  box-shadow: 0 0 5px rgb(255 255 255 / 28%);
  animation: lcd-return-wave 2.35s ease-out infinite;
}
.lcd-back::after {
  height: 94%;
  border: 1.5px solid transparent;
  border-top-color: rgb(255 255 255 / 95%);
  border-right-color: rgb(255 255 255 / 55%);
  filter: drop-shadow(0 0 2px rgb(255 255 255 / 42%));
  animation: strike-orbit 4.2s linear infinite;
}
@keyframes lcd-return-wave {
  from { transform: scale(1); opacity: .85; }
  to { transform: scale(1.28); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lcd-back::before { animation: none; opacity: .5; }
  .lcd-back::after { animation-duration: 6s; }
}
.lcd-back:hover::before, .lcd-back:focus-visible::before { box-shadow: 0 0 6px rgb(255 255 255 / 60%); }
.lcd-back:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
.lcd-phase.is-error { font-size: 7cqw; }
.breathing-method-rail { align-content: center; gap: 24px; }
.breathing-related { width: min(100%, 340px); margin: clamp(48px, 8vh, 80px) auto 0; }
.breathing-related p { margin: 0 0 10px; text-align: center; color: var(--sb-ink); }
.breathing-related .breathing-choices { margin: 0; gap: 8px; }
.breathing-related a { min-height: 44px; padding: 10px 14px; }
.session-open .method-halo-button { display: none; }
.session-open .breathing-method-rail { position: static; width: 100%; height: auto; align-self: center; }
.coherence-player { margin-inline: auto; }
@media (min-width: 821px) {
  .breathing-method.session-open {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 76px);
    place-items: center;
    padding-block: 24px;
  }
  .session-open .coherence-player { width: min(100%, 460px, 130svh); }
}
