/* Tato e Ecoico: capas, cartão grande do estímulo e tela de conclusão (lógica em scripts/features/training.js). */
/* Tato */
.module-grid .art-tactile {
  display: grid;
  place-items: center;
  background: #ffffff;
}

.module-grid .art-tactile img {
  object-fit: contain;
  padding: 4%;
}

.module-grid .art-echoic {
  display: grid;
  place-items: center;
  background: #ffffff;
}

.module-grid .art-echoic img {
  object-fit: contain;
  padding: 4%;
}

.trainer:has(.tactile-workspace) {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  justify-items: center;
  gap: clamp(12px, 2vh, 24px);
}

.tactile-workspace {
  width: min(100%, 920px);
  min-height: min(68vh, 760px);
  display: grid;
  place-items: center;
  align-self: stretch;
  margin-inline: auto;
}

.tactile-card {
  position: relative;
  width: min(100%, 760px);
  height: min(68vh, 760px);
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
.tactile-card:hover {
  transform: translateY(-2px);
}
}

.tactile-card:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.32);
  outline-offset: 5px;
}

.tactile-card.is-spoken {
  transform: scale(0.985);
}

.echoic-card.is-playing {
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18);
}

.tactile-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
}

.tactile-complete {
  min-height: min(62vh, 620px);
}

.tactile-finished {
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 52px);
  border: 3px solid #b9d9c3;
  border-radius: 8px;
  background: #f2fbf5;
  color: #101828;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.tactile-finished-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
}

.tactile-finished h2,
.tactile-finished p {
  margin: 0;
}

body[data-design="dark"] .tactile-finished {
  border-color: #35634b;
  background: #14251d;
  color: #f8fafc;
}

body.training-fullscreen .trainer:has(.tactile-workspace) {
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

body.training-fullscreen .tactile-workspace {
  width: min(100%, 1040px);
  min-height: 0;
  height: 100%;
}

body.training-fullscreen .tactile-card {
  width: min(100%, 820px, calc(100dvh - 48px));
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
}

@media (max-width: 720px) {
  .trainer:has(.tactile-workspace) {
    padding: 12px;
  }

  .tactile-workspace {
    width: 100%;
    min-height: min(68dvh, 620px);
  }

  .tactile-card {
    width: 100%;
    height: min(68dvh, 620px);
    min-height: 300px;
  }
}
