:root {
  --color-kupu-bg: rgba(0, 85, 165, 0.08);
  --color-kupu-hover-bg: rgba(0, 85, 165, 0.2);
  --color-kupu-pop-border: rgba(0, 0, 0, 0.08);
  --color-kupu-pop-shadow: rgba(0, 0, 0, 0.12);
  --color-kupu-pop-small: #555;
}

html[data-theme=dark] {
  --color-kupu-bg: rgba(165, 170, 255, 0.2);
  --color-kupu-hover-bg: rgba(165, 170, 255, 0.5);
  --color-kupu-pop-border: rgba(255, 255, 255, 0.08);
  --color-kupu-pop-shadow: rgba(255, 255, 255, 0.12);
  --color-kupu-pop-small: #bbb;
}

#kupu-popover {
  position: absolute;
  z-index: 9999;
  background: var(--color-bg);
  border: 1px solid var(--color-kupu-pop-border);
  border-radius: 6px;
  box-shadow: 0 6px 20px var(--color-kupu-pop-shadow);
  padding: 8px 10px;
  max-width: 280px;
  font-size: 0.9rem;
  line-height: 1.3;
  display: none;
}

#kupu-popover a {
  text-decoration: none;
}

#kupu-popover small {
  color: var(--color-kupu-pop-small);
  display: block;
  margin-bottom: 6px;
}

.kupu {
  position: relative;
  cursor: help;
  background-color: var(--color-kupu-bg);
  border-radius: 3px;
  padding: 0 2px;
}
.kupu:hover, .kupu:focus {
  background-color: var(--color-kupu-hover-bg);
  outline: none;
}

:root {
  --color-tp: #1a1a1a;
  --color-tp-bg: #f1f3f5;
}

html[data-theme=dark] {
  --color-tp: #f1f1f1;
  --color-tp-bg: #211;
}

.txt-learn {
  color: var(--color-tp);
  background-color: var(--color-tp-bg);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: normal;
  font-family: inherit;
  padding: 1rem;
  margin: 0 1rem 1rem 1rem;
}
.txt-learn p {
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}
.txt-learn p.not-yet {
  opacity: 0.3;
  font-weight: normal;
}
.txt-learn p:last-child {
  margin-bottom: 0;
}

.tp-row {
  display: none;
}

.tp-row.show {
  display: flex;
  gap: 1rem;
}

.tp-phrase-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tp-row {
  display: none;
}
.tp-row .tp-answer {
  display: none;
}

.tp-row.rvl .tp-answer {
  display: block;
  font-size: 1.8em;
}
.tp-row.rvl .tp-phrase {
  display: none;
}

.tp-phrase {
  display: flex;
  flex-direction: row;
}
.tp-phrase .letter {
  align-items: center;
  background-image: url("practice/letter.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
  justify-content: center;
  line-height: 1.8rem;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
  user-select: none;
  height: 2rem;
  width: 2rem;
}
.tp-phrase .letter span {
  color: white;
}
.tp-phrase .letter span, .tp-phrase .letter img {
  visibility: hidden;
}
.tp-phrase .mouth-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
  width: auto;
  pointer-events: none;
  z-index: 1;
}
.tp-phrase .punct {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
  justify-content: center;
  line-height: 1.8rem;
  text-align: center;
  user-select: none;
  height: 2rem;
  width: 1rem;
}

.tp-phrase.w-vwl-shape .vwl {
  background-image: url("practice/vwl.png");
}
.tp-phrase.w-vwl-shape .lvwl {
  background-image: url("practice/lvwl.png");
  width: 3rem;
}

.tp-phrase.w-cons-color .cons.c-h {
  background-image: url("practice/cons-h.png");
}
.tp-phrase.w-cons-color .cons.c-k {
  background-image: url("practice/cons-k.png");
}
.tp-phrase.w-cons-color .cons.c-m {
  background-image: url("practice/cons-m.png");
}
.tp-phrase.w-cons-color .cons.c-n {
  background-image: url("practice/cons-n.png");
}
.tp-phrase.w-cons-color .cons.c-p {
  background-image: url("practice/cons-p.png");
}
.tp-phrase.w-cons-color .cons.c-r {
  background-image: url("practice/cons-r.png");
}
.tp-phrase.w-cons-color .cons.c-t {
  background-image: url("practice/cons-t.png");
}
.tp-phrase.w-cons-color .cons.c-w {
  background-image: url("practice/cons-w.png");
}
.tp-phrase.w-cons-color .cons.c-ng {
  background-image: url("practice/cons-ng.png");
}
.tp-phrase.w-cons-color .cons.c-wh {
  background-image: url("practice/cons-wh.png");
}

.tp-phrase.w-mouth img {
  visibility: visible;
}

.tp-phrase.w-cons .cons span {
  visibility: visible;
}

.tp-phrase.w-vwl .vwl span, .tp-phrase.w-vwl .lvwl span {
  visibility: visible;
}

#tp-input-row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 1rem;
}

#tp-input {
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  height: 2.5rem;
  margin: 0;
  padding: 0.5rem;
  flex: 1;
}

:root {
  --color-activity-bg: #fcfff5;
  --color-activity-text: #000;
}

html[data-theme=dark] {
  --color-activity-bg: #101418;
}

#go {
  font-size: 2rem;
  position: absolute;
  text-transform: uppercase;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem;
  z-index: 99;
}

#act-feedback {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
}

#activity {
  background: var(--color-activity-bg);
  border: rgba(0, 0, 0, 0.1) 1px solid;
  border-radius: 8px;
  padding: 3.5rem 1rem 1rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
  min-height: 30vh;
}
#activity #act-svg svg {
  visibility: hidden;
  margin-bottom: 1rem;
  max-height: 40vh;
  width: auto;
  background: #fff;
}
#activity button.help {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  z-index: 999;
}

#act-top {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
}

#act-pg {
  visibility: hidden;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}
#act-pg button {
  padding: 0.5rem;
  font-weight: bold;
}
#act-pg span {
  font-size: 1rem;
  opacity: 0.5;
  margin: 0 1rem;
}

.act-row {
  visibility: hidden;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
}
.act-row:last-child {
  margin-bottom: 0;
}

#bksp {
  align-self: start;
  padding: 9px 12px 6px 12px;
}

#ctrls1 button {
  background: #e8b464;
}

#act-check {
  background: #a8f163;
}

#act-show {
  background: #999bf6;
}

#wordbank {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
#wordbank button.wb-match {
  outline: 2px solid #a5b4fc;
}
#wordbank button.wb-focus {
  outline: 3px solid #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.obj {
  display: none;
}

.act-text {
  align-items: center;
  color: var(--color-activity-text);
  display: flex;
  font-size: 1.5em;
  justify-content: center;
  overflow: hidden;
  position: absolute;
}

.act-after {
  display: none;
}

.toggle-btns {
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 1rem;
}
.toggle-btns span {
  font-size: 0.75rem;
  font-weight: bold;
  width: 10em;
  text-align: right;
}
.toggle-btns button {
  color: #fff;
  background: #777aa4;
  font-size: 0.75rem;
  padding: 0.5rem;
  outline: none;
  border: none;
  border-radius: 0;
}
.toggle-btns button.active {
  background: #6366f1;
}
.toggle-btns button:hover {
  background: #3233ff;
}

:root {
  --color-fc-card-bg: #fff;
}

html[data-theme=dark] {
  --color-fc-card-bg: #080503;
}
html[data-theme=dark] .fc-play {
  filter: invert(1);
}

/* Container that clips and centers the stack of cards */
#flashcard {
  position: relative;
  display: grid;
  /* easy centering baseline */
  place-items: center;
  overflow: hidden;
  /* hide sliding cards */
  min-height: 320px;
  perspective: 1200px;
  /* 3D for the flip */
  -webkit-perspective: 1200px;
  visibility: hidden;
}
#flashcard .act-back {
  position: absolute;
  transform: translateX(-10em);
}
#flashcard .act-fwd {
  position: absolute;
  transform: translateX(10em);
}

/* Each server-rendered card is stacked in the same spot */
.fc-card {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Compose slide + flip via CSS variables */
  --tx: 0;
  --ry: 0deg;
  transform: translate(-50%, -50%) translateX(var(--tx)) rotateY(var(--ry));
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  width: 15em;
  height: 15em;
  border-radius: 1rem;
  background: var(--color-fc-card-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Disable animation temporarily (used when snapping flip back) */
.fc-card.no-anim {
  transition: none !important;
}

/* Flip: just set the rotation variable */
.fc-card.is-flipped {
  --ry: 180deg;
}

/* Faces (your existing rules; keep backface hidden) */
.fc-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  font-size: 1.5em;
}

.fc-front {
  transform: rotateY(0deg);
}

.fc-back {
  transform: rotateY(180deg);
}

/* Slide positions controlled by classes (change only --tx) */
.fc-card.enter-from-right {
  --tx: 50vw;
}

.fc-card.enter-from-left {
  --tx: -50vw;
}

.fc-card.exit-to-left {
  --tx: -50vw;
}

.fc-card.exit-to-right {
  --tx: 50vw;
}

.fc-play {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: url("../../images/speaker.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
  border: 8px solid transparent;
  border-radius: 4px;
}
.fc-play:hover {
  background-color: var(--color-hover-bg);
}

/* Optional: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fc-card {
    transition: none !important;
  }
}

/*# sourceMappingURL=maori.css.map */
