/* ACCESS Practice Lab — Language Game Studio game styles (games-k). */
/* Evidence Hunt: a manila case file with a magnifying-glass tab, sentences as tappable evidence strips
   (found evidence gets a highlighter stripe, misses are dashed out) and a cork case board that fills
   with proven evidence. Motion is a single settle on the newest strip and stops under reduced motion. */
.eh {
  display: grid;
  gap: 0.9rem;
  --eh-ink: var(--gs-navy, #17324d);
  --eh-manila: #f6e9cc;
  --eh-paper: #fffdf6;
  --eh-cork: #e9d3a8;
  --eh-hi: #f2c15b;
}
.eh-desk {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.eh-file {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--gs-r, 18px);
  background: var(--eh-manila);
  border: var(--gs-line, 2px solid #17324d);
  box-shadow: var(--gs-shadow, none);
}
.eh-file::before {
  content: "";
  position: absolute;
  top: -0.65rem;
  left: 1.2rem;
  width: 6rem;
  height: 0.95rem;
  border-radius: 8px 8px 0 0;
  background: var(--eh-manila);
  border: inherit;
  border-bottom: 0;
}
.eh-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eh-lens {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: #d6ecf8;
  border: 3px solid var(--eh-ink);
  color: var(--eh-ink);
  position: relative;
}
.eh-lens::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  bottom: -0.45rem;
  width: 0.9rem;
  height: 0.32rem;
  border-radius: 3px;
  background: var(--eh-ink);
  transform: rotate(45deg);
}
.eh-lens .ico {
  width: 1.4rem;
  height: 1.4rem;
}
.eh-head-t {
  min-width: 0;
}
.eh-tab {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #126e6c;
}
.eh-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: var(--eh-ink);
}
.eh-claim {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--eh-paper);
  border: 2px dashed #c94f3b;
}
.eh-claim-l {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c94f3b;
}
.eh-claim-t {
  margin: 0.15rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--eh-ink);
  overflow-wrap: anywhere;
}
.eh-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}
.eh-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eh-keys li {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--eh-paper);
  border: 1px solid var(--line-strong, #9aa9b8);
  font-size: 0.92rem;
}
.eh-keys li span {
  color: var(--ink-2, #3a4d60);
}
.eh-keys-tap summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  min-height: 44px;
}
.eh-keys-tap[open] .eh-keys {
  margin-top: 0.35rem;
}
.eh-text {
  display: grid;
  gap: 0.4rem;
}
.eh-note {
  margin: 0;
  font-weight: 700;
  color: var(--eh-ink);
}
.eh-strips {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eh-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  width: 100%;
  min-height: 2.9rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem 1.1rem;
  text-align: left;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink, #14263d);
  background: var(--eh-paper);
  border: 2px solid var(--line-strong, #9aa9b8);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 2px 0 rgba(23, 50, 77, 0.18);
  cursor: zoom-in;
  position: relative;
  overflow-wrap: anywhere;
}
.eh-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.35rem;
  border-radius: 4px 0 0 4px;
  background: #9aa9b8;
}
.eh-strip:hover:not(:disabled) {
  border-color: var(--eh-ink);
  transform: translateY(-1px);
}
.eh-strip:focus-visible {
  outline: 3px solid var(--eh-hi);
  outline-offset: 2px;
}
.eh-strip:disabled {
  cursor: default;
}
.eh-strip-t {
  flex: 1 1 16rem;
  min-width: 0;
}
.eh-strip.is-proof {
  border-color: var(--right, #2b7447);
  background:
    linear-gradient(
      transparent 58%,
      rgba(242, 193, 91, 0.55) 58%,
      rgba(242, 193, 91, 0.55) 92%,
      transparent 92%
    ),
    var(--eh-paper);
  animation: eh-settle 0.35s ease-out;
}
.eh-strip.is-proof::before {
  background: var(--right, #2b7447);
}
.eh-strip.is-miss {
  border-style: dashed;
  background: var(--surface-2, #f1f4f7);
  color: var(--ink-2, #3a4d60);
}
.eh-strip.is-miss .eh-strip-t {
  text-decoration: line-through;
  text-decoration-color: rgba(201, 79, 59, 0.6);
}
.eh-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #fff0e8;
  color: #7a2e1f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.eh-tag.is-proof {
  background: var(--right, #2b7447);
  color: #fff;
}
.eh-tag .ico {
  width: 0.9rem;
  height: 0.9rem;
}
.eh-board {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
  border-radius: var(--gs-r, 18px);
  background: var(--eh-cork);
  border: var(--gs-line, 2px solid #17324d);
  background-image: radial-gradient(rgba(138, 90, 47, 0.18) 1px, transparent 1.5px);
  background-size: 9px 9px;
}
.eh-board-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1rem;
  color: var(--eh-ink);
}
.eh-count {
  margin-left: auto;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--eh-paper);
  font-size: 0.85rem;
}
.eh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eh-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  align-content: start;
  min-height: 5.5rem;
  padding: 1rem 0.65rem 0.6rem;
  border-radius: 6px;
  background: var(--eh-paper);
  box-shadow: 0 3px 6px rgba(23, 50, 77, 0.18);
  transform: rotate(var(--tilt, 0deg));
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.eh-card::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 50%;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: -0.375rem;
  border-radius: 50%;
  background: #c94f3b;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}
.eh-card-n {
  position: absolute;
  top: 0.2rem;
  left: 0.4rem;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--ink-3, #5b6b7c);
}
.eh-card-claim {
  margin: 0;
  font-weight: 700;
  color: var(--eh-ink);
}
.eh-card-proof {
  margin: 0;
  padding: 0.25rem 0.4rem;
  border-left: 3px solid var(--right, #2b7447);
  background: rgba(242, 193, 91, 0.35);
}
.eh-card.is-shown .eh-card-proof {
  border-left-color: #1fa6a2;
  background: #e5f5f1;
}
.eh-card.is-now {
  outline: 3px solid var(--eh-hi);
  outline-offset: 2px;
}
.eh-card-lens {
  justify-self: end;
  color: #126e6c;
}
.eh-card-lens .ico {
  width: 1.5rem;
  height: 1.5rem;
}
.eh-card.is-wait {
  place-items: center;
  background: #f3e3c2;
}
.eh-card-q {
  font-size: 1.8rem;
  font-weight: 800;
  color: #b9814a;
}
.eh-step {
  display: grid;
  gap: 0.7rem;
}
.eh-step-h {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  color: var(--eh-ink);
}
.eh-step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--eh-ink);
  color: #fff;
  font-size: 0.9rem;
}
.eh-reason {
  text-align: left;
  line-height: 1.45;
}
.eh-write {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: var(--gs-r, 18px);
  background: var(--eh-paper);
  border: 2px solid var(--line-strong, #9aa9b8);
}
.eh-write-l {
  font-weight: 700;
}
.eh-write-box {
  width: 100%;
  min-height: 5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm, 10px);
  border: 2px solid var(--line-strong, #9aa9b8);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
  background: #fff;
  color: var(--ink, #14263d);
  resize: vertical;
  box-sizing: border-box;
}
.eh-write-box:focus-visible {
  outline: 3px solid var(--eh-hi);
  outline-offset: 2px;
  border-color: var(--eh-ink);
}
.eh-wfb-you {
  margin: 0;
  overflow-wrap: anywhere;
}
.eh-wfb-list {
  display: grid;
  gap: 0.3rem;
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}
.eh-wfb-list li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}
.eh-wfb-list .ico {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}
.eh-wfb-list .is-ok .ico {
  color: var(--right, #2b7447);
}
.eh-wfb-list .is-next .ico {
  color: #d99a22;
}
@keyframes eh-settle {
  from {
    transform: translateX(-6px);
  }
  to {
    transform: none;
  }
}
@media (min-width: 880px) {
  .eh-desk {
    grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 1fr);
  }
  .eh-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .eh * {
    animation: none !important;
    transition: none !important;
  }
  .eh-strip:hover:not(:disabled) {
    transform: none;
  }
}
