@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap);
:root {
  --primary-color: #005959;
  --secondary-color: #ffa500;
  --text-color: #005959;
  --bg-color: #f4f4f4;
  --card-bg: #ffffff;
  --border-radius: 8px;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
header {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 5px solid var(--secondary-color);
}
header h1 {
  margin: 0;
  font-size: 3.8em;
}
header p {
  font-size: 1.2em;
  opacity: 0.9;
}
section {
  background-color: var(--card-bg);
  margin: 20px 0;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h2 {
  color: #fff var(--primary-color);
  border-bottom: 0 solid var(--secondary-color);
  padding-bottom: 10px;
  margin-top: 0;
}
.task p {
  font-weight: 700;
}
input[type="number"] {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 120px;
}
.slider-container {
  position: relative;
  padding: 10px 0;
}
#saleMarker {
  position: absolute;
  left: 33.3%;
  top: 5px;
  height: 25px;
  border-left: 3px solid red;
  display: none;
}
#saleMarker::after {
  content: "33.3%";
  position: absolute;
  left: 5px;
  top: 0;
  color: red;
  font-weight: 700;
  font-size: 0.9em;
}
button {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
}
button:hover {
  background-color: #e69500;
  transform: translateY(-2px);
}
.answer {
  background-color: #e8f4f4;
  border-left: 5px solid var(--primary-color);
  padding: 15px;
  margin-top: 15px;
  display: none;
}
.doors {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}
.door {
  width: 100px;
  height: 150px;
  border: 5px solid #005959;
  background-color: #ff9500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3em;
  color: #005959;
  font-weight: 700;
  transition: transform 0.3s, border-color 0.3s;
}
.accordion .item {
  border-bottom: 1px solid #ddd;
}
.accordion .title {
  padding: 15px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}
.accordion .title:hover {
  background-color: #f0f8ff;
}
.accordion .title::after {
  content: "+";
  font-size: 1.5em;
  color: var(--primary-color);
  transition: transform 0.3s;
}
.accordion .item.active .title::after {
  transform: rotate(45deg);
}
.accordion .content {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion .content p {
  margin: 15px 0;
}
footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  color: #777;
}
.wason-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}
.wason-card {
  width: 70px;
  height: 100px;
  background: #005959;
  border: 3px solid var(--primary-color, #005959);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  font-weight: 700;
  color: #ff9500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 89, 89, 0.08);
}
.wason-card.selected {
  border-color: var(--secondary-color, orange);
  box-shadow: 0 0 12px var(--secondary-color, orange);
  background: #ff9500;
  color: #005959;
}
.card-container {
  width: 100%;
  max-width: 370px;
  height: auto;
  aspect-ratio: 37/32;
  perspective: 1200px;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  box-sizing: border-box;
}
.card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 2, 0.3, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}
.flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.15em;
  padding: 32px 24px;
  box-sizing: border-box;
  word-break: break-word;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
.card-front {
  background: #005959;
  color: #ff9500;
  font-weight: 600;
}
.card-back {
  background: #ff9500;
  color: #005959;
  transform: rotateY(180deg);
  font-weight: 500;
}
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
#memocard .nav-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 0.6rem 1rem;
  font-weight: 600;
  box-sizing: border-box;
}
#montyhall {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#montyhall .dk-forma {
  width: 100%;
}
.mh-board {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}
.mh-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0 1.2rem;
}
.mh-board .door {
  display: block;
  aspect-ratio: 2/3;
  background: 0 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  transform-style: preserve-3d;
}
.mh-board .door:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 89, 89, 0.35);
  border-radius: 10px;
}
.mh-board .door::before {
  z-index: 0;
  content: "";
  inset: 0;
  background-blend-mode: overlay;
  transform-origin: left center;
}
.mh-board .door::after {
  z-index: 1;
}
.mh-board .door.open::before {
  transform: rotateY(-100deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    inset 0 0 18px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.35);
}
.mh-board .door::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 16%;
  bottom: 16%;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0,
    rgba(0, 0, 0, 0.12) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 10px 12px rgba(0, 0, 0, 0.15);
}
.mh-board .door .handle {
  z-index: 2;
  position: absolute;
  right: 18%;
  top: 45%;
  width: 12px;
  height: 38px;
  border-radius: 6px;
  pointer-events: none;
  background: linear-gradient(180deg, #e6e6e6 0, #bfbfbf 40%, #7a7a7a 100%);
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.35);
}
.mh-board .door .handle::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
  box-shadow: 1px 0 3px rgba(255, 255, 255, 0.45);
}
#bayes .bayes-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 0.75rem;
  align-items: center;
}
#bayes .bayes-form label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  white-space: normal;
}
#bayes .bayes-form input[type="number"] {
  max-width: 110px;
  width: 100%;
  box-sizing: border-box;
}
#bayes .bayes-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
#bayes .bayes-table td,
#bayes .bayes-table th {
  border: 1px solid #ddd;
  padding: 0.4rem 0.5rem;
  text-align: right;
}
#bayes .bayes-table th:first-child {
  text-align: left;
}
#dk .dk-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 0.75rem;
  align-items: center;
}
#dk .dk-summary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
#dk .dk-feedback {
  max-width: 60ch;
}
h3 {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  margin: 1.5rem 0 1rem;
}
.block .task > div > p:first-child,
.block h1,
.block h2,
.block h3,
.block h4 {
  text-align: center;
  color: #005959;
  font-weight: 700;
  text-decoration: none;
  border: none;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.block h1 a,
.block h2 a,
.block h3 a,
.block h4 a {
  color: inherit;
  text-decoration: none !important;
}
:root {
  --brand: #483d8b;
  --accent: #005959;
  --door-w: 140px;
  --door-h: 220px;
  --brand: #005959;
  --accent: #005959;
  --bg-card: #ffffff;
  --text: #005959;
  --muted: #5b5b66;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  color: var(--text);
  font: 500 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  background: #fafbfe;
}
.block {
  max-width: 980px;
  margin: 2rem auto;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.block h2 {
  color: var(--primary-color);
  border-bottom: 4px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}
button {
  appearance: none;
  border: 2px solid var(--accent);
  color: var(--accent);
}
button:hover:not(:disabled) {
  background: color-mix(in oklab, var(--accent) 8%, #fff);
}
button:disabled {
  opacity: 0.7;
}
button:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 35%, #fff);
  outline-offset: 2px;
  outline-offset: 3px;
  outline: rgba(0, 89, 89, 0.35) solid 3px;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 89, 89, 0.15);
}
#montyhall .mh-message {
  margin: 0.25rem 0 1rem;
  color: #005959;
  text-decoration-skip: spaces;
}
#montyhall .mh-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
  margin: 0.5rem 0 0.75rem;
}
#montyhall canvas {
  display: block;
  margin: 0.25rem auto 0;
}
.mh-board .door.selected {
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 55%, #fff 45%);
}
#bayes .bayes-results {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}
#bayes .hint {
  color: #005959;
}
#dk .dk-summary {
  margin: 0.75rem 0 1rem;
}
#dk {
  --dk-green: #005959;
  --dk-orange: #ff8c00;
}
#dk .dk-feedback,
#dk .dk-summary strong,
#dk h2,
#dk label {
  color: var(--dk-green);
}
#dk input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--dk-green), #a8d5d5);
  outline: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
#dk input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dk-orange);
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
#dk input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
#dk input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dk-orange);
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
#dk input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}
#dk canvas {
  display: block;
  margin: 1rem auto;
}
.section-hero {
  background: #005959;
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  max-width: 980px;
  margin: 2rem auto 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.section-hero h1,
.section-hero h2,
.section-hero h3,
.section-hero p {
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}
.section-hero .emoji {
  font-size: 1.8rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}
#lsn .lsn-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0.25rem 0 1rem;
}
#lsn .lsn-form label {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
#lsn .lsn-buttons {
  display: flex;
  gap: 0.6rem;
}
#lsn .lsn-stats {
  display: flex; /* 'grid'-ről 'flex'-re váltás */
  flex-wrap: wrap; /* Törés engedélyezése kis képernyőn */
  justify-content: center; /* Ez végzi a horizontális középre zárást */
  gap: 1rem 1.5rem; /* Térköz az elemek között */
  margin: 0.5rem 0;
  text-align: center; /* A szöveget is középre igazítjuk a diveken belül */
}
#lsn canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.25rem auto 0;
}
#fr .fr-scenario {
  margin: 0.25rem 0 1rem;
}
#fr .fr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}
#fr .fr-charts {
  display: grid;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#fr .chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
#fr canvas {
  display: block;
  background: 0 0;
}
@media (max-width: 800px) {
  #fr .fr-charts {
    flex-direction: column;
    align-items: center;
  }
}
#fr .fr-charts {
  gap: 16px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#fr .fr-charts canvas {
  display: block;
  margin: 0;
  padding: 0;
}
#mh-stats-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 2rem;
  align-items: end;
}
#fr .fr-actions,
#fr .fr-actions button,
#fr .fr-scenario,
#fr .fr-scenario p {
  color: #005959 !important;
}
#mh-stats-grid strong {
  color: #005959;
}
.mh-explanation {
  padding: 15px;
  background-color: #e8f4f4;
  color: #005959;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  text-align: left;
  max-width: 760px;
  border-left: 5px solid var(--primary-color);
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
}
.mh-explanation h4 {
  margin-top: 0;
  color: #005959;
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mh-explanation p {
  line-height: 1.5;
  margin: 0;
}
/* Monty Hall Statisztika Rács - Két Oszlopos Elrendezés */
.mh-stats-grid {
  background: var(--color-surface, #fff); /* Háttér változóval */
  border: 1px solid var(--color-border, #e0e0e0); /* Keret változóval */
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: grid;
  /* Két egyenlő szélességű oszlopot hoz létre, mobilon is */
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem; /* Függőleges és vízszintes rés */
  text-align: left; /* Oszlopon belüli igazítás */
  margin-top: 1rem; /* Térköz a cím felett */
}

/* Az egyes statisztika oszlopok */
.mh-stats-col {
  display: flex;
  flex-direction: column; /* Elemek egymás alatt */
  gap: 0.5rem; /* Térköz az elemek között */
}

/* Részösszeg sorok stílusa (pl. "Váltás előnyös") */
.mh-subtotal {
  margin-top: 0.5rem; /* Kis térköz felette */
  padding-top: 0.5rem; /* Térköz a vonal felett */
  border-top: 1px dashed var(--color-border, #ccc); /* Elválasztó vonal */
  font-weight: 700; /* Kiemelés */
}

.mh-subtotal span {
  font-weight: 700; /* Az érték is legyen félkövér */
}

/* Az arány sor alul, teljes szélességben */
.mh-total-ratio {
  grid-column: 1 / -1; /* Átfogja mindkét oszlopot */
  text-align: center; /* Középre igazítás */
  margin-top: 0.5rem; /* Térköz felette */
  padding-top: 0.75rem; /* Térköz a vonal felett */
  border-top: 1px solid var(--color-border, #ddd); /* Elválasztó vonal */
}

/* Dark mód felülírások (színek igazítása) */
body.dark-mode .mh-stats-grid {
  background: var(--card-bg, #1f2937);
  border-color: var(--color-border, #4b5563);
}

body.dark-mode .mh-subtotal {
  border-top-color: var(--color-border, #4b5563);
}

body.dark-mode .mh-total-ratio {
  border-top-color: var(--color-border, #4b5563);
}

/* Opcionális: A kis magyarázó szöveg színének finomítása sötét módban */
body.dark-mode .mh-total-ratio div[style*="color:var(--color-text-secondary)"] {
  color: var(--color-text-secondary, #9ca3af) !important;
}
#anchoring .anch-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
#anchoring .anch-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 12px;
}
#anchoring .anch-box {
  flex: 1 1 260px;
  background: #f8fbfb;
  border: 1px solid #e3f0f0;
  border-radius: 10px;
  padding: 12px;
}
#anchoring .anch-label {
  font-size: 0.9rem;
  color: #4b4b57;
  margin-bottom: 6px;
}
#anchoring .anch-anchor {
  font-size: 2rem;
  font-weight: 700;
  color: #005959;
  line-height: 1;
  margin-bottom: 4px;
}
#anchoring .anch-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f0f0;
  color: #005959;
  font-weight: 600;
  font-size: 0.85rem;
}
#anchoring .anch-question {
  font-weight: 600;
}
#anchoring .anch-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0 14px;
}
#anchoring .anch-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
#anchoring input#anch-estimate {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid #d7e6e6;
  border-radius: 8px;
  outline: 0;
}
#anchoring button {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #005959;
  color: #fff;
}
#anchoring button.ghost {
  background: 0 0;
  color: #005959;
  border: 1px solid #005959;
}
#anchoring .anch-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
}
#anchoring .anch-col {
  background: #f9fdfd;
  border: 1px solid #e6f1f1;
  border-radius: 10px;
  padding: 10px;
}
#anchoring .anch-col-title {
  color: #005959;
  font-weight: 700;
  margin-bottom: 6px;
}
#anchoring .anch-col-wide {
  grid-column: 1 / span 3;
}
@media (max-width: 860px) {
  #anchoring .anch-stats {
    grid-template-columns: 1fr;
  }
  #anchoring .anch-col-wide {
    grid-column: auto;
  }
}
.collapsible .exp-toggle {
  display: block;
  width: 100%;
  text-align: center;
  background: #ffffff22;
  color: #fff;
  border: 2px solid #ffffff55;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.collapsible .exp-toggle:hover {
  background: #ffffff33;
  border-color: #ffffff88;
}
.mh-explanation.collapsible .exp-toggle {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mh-explanation.collapsible .exp-toggle:hover {
  background: color-mix(in oklab, var(--accent) 85%, #fff 15%);
  border-color: currentColor;
}
#cf .cf-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
#cf .cf-case {
  margin-bottom: 0.5rem;
}
#cf .cf-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
#cf .cf-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: #f8fbfb;
  border: 1px solid #e3f0f0;
  border-radius: 10px;
  padding: 8px 10px;
}
#cf .cf-option input {
  margin-top: 0.2rem;
}
#cf .cf-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
#cf .cf-actions .ghost {
  background: 0 0;
  color: var(--accent);
  border: 1px solid var(--accent);
}
#cf .cf-feedback {
  color: var(--accent);
  min-height: 1.2em;
  margin: 0.25rem 0;
}
#cf .cf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
#cf em {
  font-style: italic;
}
#rep .rep-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
#rep .rep-case {
  margin-bottom: 0.5rem;
}
#rep .rep-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
#rep .rep-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: #f8fbfb;
  border: 1px solid #e3f0f0;
  border-radius: 10px;
  padding: 8px 10px;
}
#rep .rep-option input {
  margin-top: 0.2rem;
}
#rep .rep-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
#rep .rep-actions .ghost {
  background: 0 0;
  color: var(--accent);
  border: 1px solid var(--accent);
}
#rep .rep-feedback {
  color: var(--accent);
  min-height: 1.2em;
  margin: 0.25rem 0;
}
#rep .rep-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
#avail .avail-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
#avail .avail-case {
  margin-bottom: 0.5rem;
}
#avail .avail-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
#avail .avail-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: #f8fbfb;
  border: 1px solid #e3f0f0;
  border-radius: 10px;
  padding: 8px 10px;
}
#avail .avail-option input {
  margin-top: 0.2rem;
}
#avail .avail-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
#avail .avail-actions .ghost {
  background: 0 0;
  color: var(--accent);
  border: 1px solid var(--accent);
}
#avail .avail-feedback {
  color: var(--accent);
  min-height: 1.2em;
  margin: 0.25rem 0;
}
#avail .avail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
#math-timer {
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}
#math-timer-msg {
  text-align: center;
  font-style: italic;
  color: var(--secondary);
  min-height: 1.2em;
}
#math-retry {
  display: none;
  margin: 0.5rem auto 0;
}
.hx-shell {
  margin: 0 0 1rem;
}
.hx-hero {
  background: linear-gradient(135deg, #005959 0, #0a7a7a 60%);
}
.hx-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hx-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}
.hx-hero p {
  margin: 0 0 0.6rem;
}
.hx-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hx-hero-badges span {
  background: #ffffff22;
  border: 1px solid #ffffff55;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: 0.6s both hx-fadeup;
}
@keyframes hx-fadeup {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hx-nav {
  position: sticky;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1px solid #e7e7ef;
  padding: 6px 8px;
  max-width: 980px;
}
.hx-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.hx-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.hx-card {
  display: block;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e7e7ef;
  color: #005959;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.2s;
}
.hx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #cfe3e3;
}
.hx-card-title {
  font-weight: 800;
}
.hx-card-sub {
  font-size: 0.9rem;
  opacity: 0.8;
}
html {
  scroll-behavior: smooth;
}
.hx-nav {
  position: sticky;
  position: sticky;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
}
.hx-logo {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.hx-logo:hover {
  transform: scale(1.06);
}
.hx-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}
@media (max-width: 700px) {
  .hx-nav ul {
    justify-content: center;
  }
}
.hx-logo {
  flex-shrink: 0;
}
.hx-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}
.hx-nav li {
  display: block;
}
.hx-nav a {
  display: block;
}
@media (max-width: 700px) {
  .hx-logo {
    height: 36px;
  }
  .hx-nav ul {
    justify-content: center;
  }
}
.hx-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #dbe8e8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.hx-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}
.hx-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hx-logo {
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.hx-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  flex: 1;
}
.hx-menu-toggle {
  display: none; /* Mobilon felülírjuk */
  appearance: none;
  background: transparent; /* Ne legyen háttér alapból */
  border: none; /* Ne legyen keret alapból */
  padding: 8px; /* Kisebb belső tér */
  margin: 0; /* Ne legyen külső tér */
  cursor: pointer;
  width: 38px; /* Fix szélesség */
  height: 34px; /* Fix magasság */
  position: relative; /* Pozicionáláshoz */
  justify-content: center; /* Flexbox központosítás */
  align-items: center; /* Flexbox központosítás */
  /* Távolítsd el a korábbi keret, háttér, szín beállításokat innen, ha voltak */
}
.hx-menu-toggle .hx-bar {
  display: block;
  width: 22px; /* Vonal szélessége */
  height: 3px; /* Vonal vastagsága */
  background-color: #005959; /* Vonal színe (világos mód) */
  border-radius: 2px;
  position: absolute; /* Abszolút pozíció a gombon belül */
  left: 50%; /* Vízszintesen középre */
  transform: translateX(-50%); /* Pontos vízszintes középre igazítás */
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out,
    top 0.3s ease-in-out, background-color 0.3s; /* Animációk */
  /* Távolítsd el a margin-top szabályt innen */
}

/* A három vonal pozicionálása */
.hx-menu-toggle .hx-bar:nth-child(1) {
  top: 8px; /* Felső vonal */
}
.hx-menu-toggle .hx-bar:nth-child(2) {
  top: 15px; /* Középső vonal */
}
.hx-menu-toggle .hx-bar:nth-child(3) {
  top: 22px; /* Alsó vonal */
}
@media (max-width: 700px) {
  .hx-menu-toggle {
    display: inline-flex;
  }
  .hx-nav #hx-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 8px 10px;
    margin: 4px 0 0;
    padding: 6px 0 0;
    border-top: 1px solid #e8f1f1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.2s;
  }
  .hx-nav.is-open #hx-menu {
    max-height: 320px;
    opacity: 1;
  }
  .hx-nav #hx-menu a {
    padding: 10px 14px;
  }
}
.hx-menu-toggle {
  position: relative;
  width: 38px;
  height: 34px;
  justify-content: center;
}
/* Nyitott állapotban (X formáció) */
.hx-nav.is-open .hx-menu-toggle .hx-bar:nth-child(1) {
  top: 15px; /* Középre mozgatás */
  transform: translateX(-50%) rotate(45deg); /* Forgatás */
}
.hx-nav.is-open .hx-menu-toggle .hx-bar:nth-child(2) {
  opacity: 0; /* Középső vonal eltüntetése */
}
.hx-nav.is-open .hx-menu-toggle .hx-bar:nth-child(3) {
  top: 15px; /* Középre mozgatás */
  transform: translateX(-50%) rotate(-45deg); /* Forgatás */
}
.hx-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.hx-nav #hx-menu li + li::before {
  content: " ";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #cfdede;
  margin: 0 8px;
  vertical-align: middle;
}
.hx-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  line-height: 1;
  border-radius: 8px;
  color: #005959;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #dbe8e8;
  background: #f6fbfb;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hx-nav a:hover {
  background: #eef8f8;
}
.hx-nav a.is-active {
  background: #005959;
  color: #fff;
  border-color: #005959;
}
.menu-group-title {
  color: #666;
  text-transform: uppercase;
  border: none;
  background: 0 0;
  pointer-events: none;
  position: relative;
  padding-left: 0;
  pointer-events: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  pointer-events: none;
  margin: 4px 0 2px;
}
.menu-group-title + li::before {
  display: none;
}
.extra-menu a {
  background: rgba(243, 156, 18, 0.15);
  border-color: rgba(243, 156, 18, 0.25);
  color: #8a5500;
}
.extra-menu a:hover {
  background: rgba(243, 156, 18, 0.25);
  border-color: rgba(243, 156, 18, 0.45);
}
.extra-menu a.is-active {
  background: #f39c12;
  color: #fff;
  border-color: #f39c12;
}
@media (prefers-color-scheme: light) {
  .menu-group-title:nth-of-type(2) {
    color: #d98200;
    border-top-color: rgba(243, 156, 18, 0.2);
  }
}
.menu-group-title:first-of-type {
  color: #005959;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  border: none;
}
.menu-group-title:nth-of-type(2) {
  color: #f39c12;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4px;
  border-top: 1px solid rgba(243, 156, 18, 0.25);
  padding-top: 3px;
}
.green-title {
  color: #005959;
}
.orange-title {
  border-top: 1px solid rgba(243, 156, 18, 0.25);
  color: #f39c12;
  padding-top: 3px;
  text-shadow: 0 0 4px rgba(243, 156, 18, 0.35),
    0 0 8px rgba(243, 156, 18, 0.25);
}
@media (prefers-color-scheme: dark) {
  .orange-title {
    text-shadow: 0 0 6px rgba(255, 180, 60, 0.6),
      0 0 10px rgba(255, 160, 20, 0.4);
  }
}
.hx-footer-intro {
  background: linear-gradient(180deg, #f6fbfb 0, #fff 100%);
  border-top: 1px solid #dbe8e8;
  padding: 1rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}
.hx-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  color: #005959;
  line-height: 1.6;
  font-size: 1rem;
}
.hx-footer-inner h2 {
  color: #005959;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.hx-footer-inner .heureka {
  color: #f39c12;
  font-weight: 700;
}
#math-start {
  margin: 1rem 0;
}
#math-start:hover {
  background: #017373;
}
.hx-cards-section {
  text-align: center;
  margin: 4rem auto 2rem;
  max-width: 1100px;
  padding: 0 1rem;
}
.hx-cards-title {
  color: #005959;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 4px rgba(0, 89, 89, 0.2);
}
#about,
section[id] {
  scroll-margin-top: 140px;
}
#shuffleBtn {
  background: #005959;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
#shuffleBtn:hover {
  background: #017373;
}
.exp-toggle {
  background: #005959;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  margin: 0.5rem 0;
}
.exp-toggle:hover {
  background: #f39c12;
  color: #fff;
}
.exp-content.open {
  animation: 0.4s slideDown;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#contact-panel[aria-hidden="false"] {
  display: block;
}
#contact-panel .cp-wrap {
  max-width: 760px;
  margin: 12px auto;
  background: #fff;
  border: 1px solid #dbe8e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 18px;
}
#contact-panel h3 {
  margin: 0 0 8px;
  color: #005959;
}
#contact-panel form {
  display: grid;
  gap: 10px;
}
#contact-panel label {
  font-weight: 600;
  color: #005959;
}
#contact-panel input[type="email"],
#contact-panel input[type="text"],
#contact-panel textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cfe3e3;
  border-radius: 8px;
  box-sizing: border-box;
}
#contact-panel button[type="submit"] {
  background: #005959;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
#contact-close {
  background: 0 0;
  border: 1px solid #dbe8e8;
  color: #005959;
  border-radius: 10px;
  padding: 8px 12px;
}
.cp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px) {
  .cp-row {
    grid-template-columns: 1fr;
  }
}
.cp-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cp-msg {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #005959;
}
.cp-error {
  color: #a14a00;
}
#hx-toasts {
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  max-width: min(92vw, 420px);
  pointer-events: none;
}
.hx-toast {
  --hx-bg: #005959;
  --hx-accent: #f39c12;
  background: var(--hx-bg);
  color: #fff;
  border-left: 6px solid var(--hx-accent);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 12px 14px 10px;
  display: grid;
  gap: 6px;
  font: 500 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  transform: translateY(14px);
  opacity: 0;
  animation: 0.28s ease-out forwards hx-slide-in;
  pointer-events: auto;
}
.hx-toast__title {
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hx-toast__msg {
  opacity: 0.95;
}
.hx-toast__close {
  appearance: none;
  border: 0;
  background: 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: auto;
  opacity: 0.9;
}
.hx-toast__close:hover {
  opacity: 1;
}
.hx-toast__bar {
  position: relative;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.hx-toast__bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  opacity: 0.9;
  transform-origin: left;
  animation: 4.2s linear forwards hx-bar;
}
@keyframes hx-slide-in {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes hx-fade-out {
  to {
    transform: translateY(6px);
    opacity: 0;
  }
}
@keyframes hx-bar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
.heureka-anim {
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}
.heureka-anim .bulb {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5);
  margin: 0 4px;
  transition: 0.8s ease-in-out;
}
.heureka-anim .heureka-text {
  color: #f39c12;
  opacity: 0;
  transform: translateY(4px);
  transition: 1s ease-in-out 0.3s;
}
.heureka-anim.active .bulb {
  opacity: 1;
  transform: scale(1.2) rotate(-10deg);
  text-shadow: 0 0 6px #ffd54f;
}
.heureka-anim.active .heureka-text {
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 8px rgba(243, 156, 18, 0.5);
}
.summary-cards .card {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.summary-cards .card canvas,
.summary-cards .card img {
  display: block;
  max-width: 100%;
  height: auto;
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  overflow: hidden;
}
@media (max-width: 420px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
}
.hx-nav .hx-logo-link,
body.dark-mode .hx-nav .hx-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: 0 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}
.hx-nav .hx-logo-link:focus,
.hx-nav .hx-logo-link:hover,
body.dark-mode .hx-nav .hx-logo-link:focus,
body.dark-mode .hx-nav .hx-logo-link:hover {
  background: 0 0 !important;
}
.hx-nav .hx-logo-link img.hx-logo {
  max-height: 100%;
  width: auto;
}
.hx-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}
.lang-tab {
  --peek: 35px;
  --top: 100px;
  --bg: #005959;
  --fg: #fff;
  --hover: #f39c12;
  position: fixed;
  top: var(--top);
  right: 0;
  transform: translateX(calc(100% - var(--peek)));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s, background 0.15s, box-shadow 0.15s;
}
.lang-tab::before {
  content: "🌐";
  font-size: 0.95em;
  opacity: 0.95;
}
.lang-tab:focus-visible,
.lang-tab:hover {
  transform: translateX(0);
  background: var(--hover);
  color: #005959;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}
@media (max-width: 640px) {
  .lang-tab {
    --top: 92px;
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  .lang-tab,
  .mh-board .door::before {
    transition: none;
  }
}
a {
  color: #005959;
  text-decoration: none;
  transition: color 0.2s, font-weight 0.2s;
}
a:hover {
  color: #f39c12;
  font-weight: 700;
  text-decoration: none;
}
a:visited {
  color: #005959;
}
a:active {
  color: #e69500;
}
.fft-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}
.fft-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.fft-q {
  font-weight: 700;
  color: #005959;
}
.fft-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.1rem;
}
.fft-actions .fft-btn {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 2px solid var(--accent, #005959);
  background: #fff;
  color: #005959;
  font-weight: 700;
  cursor: pointer;
}
.fft-actions .fft-btn:hover {
  background: color-mix(in oklab, #005959 8%, #fff);
}
.fft-out {
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 5px solid #005959;
  background: #e8f4f4;
  border-radius: 10px;
  min-height: 2.2rem;
  color: #005959;
}
.fft-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.6rem 0 0;
}
#fft-reset {
  background: #f6fbfb;
}
#fft-reset:hover {
  background: #eef8f8;
}
.fft-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.4rem auto 0.6rem;
  max-width: 800px;
}
.fft-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.fft-switch input {
  display: none;
}
.fft-switch-ui {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #dbe8e8;
  position: relative;
  transition: background 0.2s;
  border: 1px solid #cfe3e3;
}
.fft-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.fft-switch input:checked + .fft-switch-ui {
  background: #005959;
}
.fft-switch input:checked + .fft-switch-ui::after {
  transform: translateX(16px);
}
.fft-switch-label {
  font-weight: 700;
  color: #005959;
}
.fft-badge {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #dbe8e8;
  background: #f6fbfb;
  color: #005959;
  font-weight: 800;
}
.fft-badge.low {
  animation: 0.8s ease-in-out infinite fft-pulse;
}
@keyframes fft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(243, 156, 18, 0.05);
  }
}
.fft-out.shake {
  animation: 0.35s fft-shake;
}
@keyframes fft-shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }
  40%,
  60% {
    transform: translateX(4px);
  }
}
#fft .exp-content {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  transition: max-height 0.45s ease-in-out, opacity 0.3s ease-in-out;
}
#fft .exp-content.open {
  max-height: 900px !important;
  opacity: 1 !important;
}
#ttb .ttb-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: 0 auto;
}
#ttb .ttb-cues {
  margin-bottom: 1rem;
}
#ttb .ttb-decision button {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 2px solid #005959;
  background: #fff;
  color: #005959;
  font-weight: 700;
  cursor: pointer;
  margin: 0.25rem 0.4rem;
}
#ttb .ttb-decision button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#ttb .ttb-decision button:hover:not(:disabled) {
  background: color-mix(in oklab, #005959 8%, #fff);
}
#ttb .ttb-controls button {
  border: 1px solid #dbe8e8;
  background: #f6fbfb;
  color: #005959;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
#ttb .ttb-controls button:hover {
  background: #eef8f8;
}
#ttb #ttb-feedback {
  min-height: 2.2rem;
  color: #005959;
}
#triage .triage-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: 0 auto;
}
#triage .triage-cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
#triage .case {
  border: 1px solid #e9f0f0;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fbfefe;
}
#triage .case-h {
  font-weight: 800;
  color: #005959;
  margin-bottom: 0.25rem;
}
#triage .case-vitals {
  margin: 0.25rem 0 0.5rem 1rem;
}
#triage .triage-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#triage .fft-btn {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 2px solid #005959;
  background: #fff;
  color: #005959;
  font-weight: 700;
  cursor: pointer;
}
#triage .fft-btn:hover {
  background: color-mix(in oklab, #005959 8%, #fff);
}
#triage .triage-out {
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 5px solid #005959;
  background: #e8f4f4;
  border-radius: 10px;
  min-height: 2.2rem;
  color: #005959;
}
#triage .triage-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.6rem 0 0;
}
#triage #triage-reset {
  border: 1px solid #dbe8e8;
  background: #f6fbfb;
  color: #005959;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
}
#triage #triage-reset:hover {
  background: #eef8f8;
}
.collapsible .exp-toggle,
.mh-explanation.collapsible {
  margin-bottom: 0;
}
.exp-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s, opacity 0.3s;
}
.exp-content.open {
  padding-top: 15px;
  padding-bottom: 15px;
  border-width: initial;
  max-height: 800px;
  opacity: 1;
}
.exp-content > :first-child {
  margin-top: 0;
}
.exp-content > :last-child {
  margin-bottom: 0;
}
.hj-feedback {
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 5px solid #005959;
  background: #e8f4f4;
  border-radius: 10px;
  min-height: 2.2rem;
  color: #005959;
  font-weight: 700;
}
.hx-card-test {
  display: block;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  justify-content: center;
  background: #fff;
  border: 1px solid #e7e7ef;
  color: #005959;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.2s;
  max-width: 1100px;
  margin: 1.5rem auto 2rem;
  text-align: center;
}
.hx-card-test-title {
  font-weight: 800;
}
.hx-card-test-sub {
  font-size: 0.9rem;
  opacity: 0.8;
}
.hx-card-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #cfe3e3;
}
#cb-feedback,
#ob-feedback,
.cb-feedback hint {
  background: #e8f4f4;
  border-left: 5px solid #005959;
  color: #005959;
  font-weight: 700;
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  min-height: 2.2rem;
  text-align: center;
}
.cb-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9em;
  color: #005959 !important;
  font-weight: 700;
}
.cb-stats strong {
  color: #005959;
  font-weight: 700;
}
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #005959, #a8d5d5);
  outline: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #005959;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #017373;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #005959;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #017373;
}
#montyhall h2 {
  width: 100%;
  align-self: stretch;
}
#fr .fr-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: 0 auto;
}
#fr .fr-scenario {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 500;
}
#fr .fr-actions {
  text-align: center;
  margin-top: 1rem;
}
#fr .fr-actions #fr-choose-A,
#fr .fr-actions #fr-choose-B {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 2px solid #005959;
  background: #fff;
  color: #005959;
  font-weight: 700;
  cursor: pointer;
  margin: 0.4rem;
}
#fr .fr-actions #fr-choose-A:disabled,
#fr .fr-actions #fr-choose-B:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#fr .fr-actions #fr-choose-A:hover:not(:disabled),
#fr .fr-actions #fr-choose-B:hover:not(:disabled) {
  background: color-mix(in oklab, #005959 8%, #fff);
}
#fr .fr-actions #fr-next,
#fr .fr-actions #fr-reset {
  border: 1px solid #dbe8e8;
  background: #f6fbfb;
  color: #005959;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0.4rem;
}
#fr .fr-actions #fr-next:hover,
#fr .fr-actions #fr-reset:hover {
  background: #eef8f8;
}
#fr #fr-feedback {
  margin: 0.25rem 0 !important;
  min-height: 2.2rem;
  text-align: center;
  color: #005959;
  font-weight: 600;
}
#fr .fr-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#fr .chart-box {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
#fr .chart-box canvas {
  border-radius: 12px;
}
#fr .fr-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
}
#fr .chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#fr .fr-card > .hint:last-of-type {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0;
  color: #003b3b;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}
#recognition .recog-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: 0 auto;
}
#recognition .recog-feedback {
  min-height: 2.2rem;
  text-align: center;
  color: #005959;
  font-weight: 600;
  margin-top: 0.5rem;
}
.legal-notice-wrapper {
  margin: 1.5rem 0;
}
.legal-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.legal-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.legal-toggle:active {
  transform: translateY(0);
}
.legal-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}
.legal-toggle[aria-expanded="true"] .legal-arrow {
  transform: rotate(180deg);
}
.legal-content {
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #005959;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: 0.3s slideDown;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  #bayes .bayes-form input[type="number"] {
    max-width: 90px;
  }
  .legal-toggle {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  .legal-content {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
.ob-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.85em;
  color: #005959 !important;
  font-weight: 700;
}
.ob-stats div {
  white-space: nowrap;
}
.ob-stats strong {
  color: #005959;
  font-weight: 700;
}
@media (max-width: 600px) {
  .ob-stats {
    flex-direction: column;
    align-items: center;
  }
}
button:not(.door) {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s, transform 0.15s, box-shadow 0.15s,
    color 0.2s;
}
button:not(.door):hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 89, 89, 0.25);
}
button:not(.door):active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 89, 89, 0.2);
  transition: transform 80ms;
}
button:not(.door)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}
button:not(.door):active::before {
  width: 300px;
  height: 300px;
  opacity: 0.3;
  transition: width, height, opacity 0.6s;
}
.mh-board .door {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s,
    background-color 0.3s;
  position: relative;
}
.mh-board .door:hover:not(.open) {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 89, 89, 0.25);
}
.mh-board .door:active:not(.open) {
  transform: scale(0.98);
}
.mh-board .door.selected:not(.open) {
  border: 3px solid #005959;
  box-shadow: 0 0 20px rgba(0, 89, 89, 0.4);
}
.mh-board .door.open {
  background-color: rgba(0, 0, 0, 0.03) !important;
  pointer-events: none;
  font-size: 5.5rem !important;
  color: inherit !important;
  opacity: 1 !important;
  filter: brightness(1.6) saturate(1.5) contrast(1.1) !important;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
.ghost,
button.ghost {
  background: 0 0;
  border: 2px solid currentColor;
  transition: 0.25s;
}
.ghost:hover:not(:disabled),
button.ghost:hover:not(:disabled) {
  background: rgba(0, 89, 89, 0.08);
  border-color: #005959;
  transform: translateY(-2px);
}
button.success {
  background: #00b894;
  color: #fff;
  animation: 0.6s success-pulse;
}
@keyframes success-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.5);
  }
}
button.error {
  background: #d63031;
  color: #fff;
  animation: 0.4s shake;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}
button.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: 0.6s linear infinite spin;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.wason-card {
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wason-card:hover {
  transform: translateY(-6px) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 89, 89, 0.2);
}
.wason-card:active {
  transform: translateY(-2px) rotate(0);
}
.wason-card.selected {
  animation: 0.4s card-select;
}
@keyframes card-select {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
#bronzeMedal,
#goldMedal,
#silverMedal {
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.switch-wrap {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
  cursor: pointer;
  margin-left: 10px;
}
.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: background-color 0.3s;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='orange' width='16px' height='16px'%3E%3Cpath d='M12 9c-1.65 0-3 1.35-3 3s1.35 3 3 3 3-1.35 3-3-1.35-3-3-3zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm8-4h-2.09c-.45-1.12-1.17-2.1-2.08-2.89L17.66 4.34 16.24 2.93 14.31 4.85C13.53 4.3 12.78 3.86 12 3.54V1h-2v2.54c-.78.32-1.53.76-2.31 1.31L5.76 2.93 4.34 4.34l1.74 1.74C5.25 6.9 4.53 7.88 4.09 9H2v2h2.09c.45 1.12 1.17 2.1 2.08 2.89L4.34 17.66l1.41 1.41 1.93-1.93c.78.55 1.53.99 2.31 1.31V21h2v-2.54c.78-.32 1.53-.76 2.31-1.31l1.93 1.93 1.41-1.41-1.74-1.74c.91-.79 1.63-1.77 2.08-2.89H22v-2zm-8 7c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.switch-wrap input:checked + .switch-slider {
  background-color: #005959;
}
.switch-wrap input:checked + .switch-slider::before {
  transform: translateX(24px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2332b8c6' width='16px' height='16px'%3E%3Cpath d='M11.5 2c-5.25 0-9.5 4.25-9.5 9.5S6.25 21 11.5 21c.83 0 1.63-.11 2.4-.31-.3-.43-.53-.9-.69-1.4-.18-.58-.28-1.19-.28-1.82 0-3.31 2.69-6 6-6 .63 0 1.24.1 1.82.28.5.16.97.39 1.4.69.2-.77.31-1.57.31-2.4C21 6.25 16.75 2 11.5 2z'/%3E%3C/svg%3E");
}
body.dark-mode {
  --primary-color: #4dd4e4;
  --secondary-color: #ffc24d;
  --text-color: #e8f4f4;
  --bg-color: #0a1f1f;
  --card-bg: #142d2d;
  background-color: var(--bg-color);
  color: var(--text-color);
}
body.dark-mode nav a {
  color: #5fe8f2;
}
body.dark-mode nav a:hover {
  color: #ffc24d;
}
body.dark-mode section {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(77, 212, 228, 0.2);
}
body.dark-mode button:hover {
  box-shadow: 0 4px 12px rgba(77, 212, 228, 0.3);
}
body.dark-mode input::placeholder {
  color: #7db8b8;
}
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: #5fe8f2;
  box-shadow: 0 0 0 3px rgba(77, 212, 228, 0.2);
}
body.dark-mode a:hover {
  color: #ffc24d;
}
body.dark-mode .accordion .title {
  background-color: #0f2626;
  color: #5fe8f2;
}
body.dark-mode .accordion .title:hover {
  background-color: #142d2d;
}
body.dark-mode #progressContainer {
  background: #0f2626;
  border-bottom: 1px solid rgba(77, 212, 228, 0.3);
}
body.dark-mode .chart-box {
  background: #162c2c !important;
  box-shadow: 0 4px 18px rgba(60, 195, 190, 0.07) !important;
}
body.dark-mode .hx-footer-intro,
body.dark-mode .hx-hero,
body.dark-mode header {
  background: #0f2626 !important;
  color: #e8f4f4 !important;
  border-bottom-color: #4dd4e4 !important;
}
body.dark-mode .hx-nav {
  background: rgba(15, 38, 38, 0.95) !important;
  border-bottom: 1px solid rgba(77, 212, 228, 0.3) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .hx-nav a {
  background: #142d2d !important;
  border-color: rgba(77, 212, 228, 0.3) !important;
  color: #5fe8f2 !important;
}
body.dark-mode .hx-nav a:hover {
  background: #1c3c3c !important;
  color: #ffc24d !important;
}
body.dark-mode .hx-nav a.is-active {
  background: #4dd4e4 !important;
  color: #0a1f1f !important;
}
body.dark-mode .block,
body.dark-mode section.block {
  border: 1px solid rgba(77, 212, 228, 0.2) !important;
}
body.dark-mode takehome h1,
body.dark-mode takehome h3,
body.dark-mode takehome p {
  color: #e8f4f4 !important;
  text-shadow: none !important;
}
body.dark-mode takehome .grid-container div {
  box-shadow: 0 0 12px rgba(77, 212, 228, 0.3) !important;
}
body.dark-mode .green-title,
body.dark-mode .menu-group-title,
body.dark-mode .orange-title {
  color: #5fe8f2 !important;
  border-top-color: rgba(77, 212, 228, 0.25) !important;
  text-shadow: none !important;
}
body.dark-mode footer {
  background: #050f0f !important;
  color: #b8d8d8 !important;
  border-top-color: rgba(77, 212, 228, 0.3) !important;
}
body.dark-mode footer a {
  color: #5fe8f2 !important;
}
body.dark-mode footer a:hover {
  color: #ffc24d !important;
}
body.dark-mode .avail-card,
body.dark-mode .block,
body.dark-mode .cf-card,
body.dark-mode .dk-forma,
body.dark-mode .fft-card,
body.dark-mode .rep-card,
body.dark-mode .triage-card,
body.dark-mode section.block {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}
body.dark-mode #summary,
body.dark-mode .section-hero,
body.dark-mode .summary-cards,
body.dark-mode .summary-cards .card,
body.dark-mode .summary-reflect {
  background: #163636 !important;
  color: #e8f4f4 !important;
  border-left: 6px solid #4dd4e4 !important;
}
body.dark-mode .card,
body.dark-mode .summary-cards .card {
  background: #194848 !important;
  color: #e8f4f4 !important;
  border-radius: 12px !important;
  border-color: #32c0c0 !important;
}
body.dark-mode .summary-cards .card[style*="f39c12"],
body.dark-mode .summary-cards .card[style*="ffa500"] {
  border-left: 6px solid #ffc24d !important;
}
body.dark-mode #takehome,
body.dark-mode takehome {
  background: linear-gradient(135deg, #101e20 10%, #244444 90%) !important;
  color: #e8f4f4 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.15) !important;
}
body.dark-mode #takehome .grid-container div,
body.dark-mode takehome .grid-container div {
  background: #183d3d !important;
  color: #e8f4f4 !important;
  border-left-color: #4dd4e4 !important;
  box-shadow: 0 0 8px rgba(77, 212, 228, 0.18) !important;
}
body.dark-mode #takehome .closing-thought,
body.dark-mode takehome .closing-thought {
  background: linear-gradient(135deg, #203a3a, #2c5353) !important;
  color: #e8f4f4 !important;
}
body.dark-mode .summary-reflect {
  background: #1b3535 !important;
  border: 1px solid #4dd4e4 !important;
  color: #e8f4f4 !important;
}
body.dark-mode .summary-reflect[style*="f39c12"] {
  border-color: #ffc24d !important;
}
body.dark-mode .avail-card,
body.dark-mode .block,
body.dark-mode .cf-card,
body.dark-mode .dk-forma,
body.dark-mode .fft-card,
body.dark-mode .fr-card,
body.dark-mode .recog-card,
body.dark-mode .rep-card,
body.dark-mode .triage-card,
body.dark-mode .ttb-card,
body.dark-mode section.block {
  background: #162c2c !important;
  color: #e8f4f4 !important;
  border-color: #4dd4e4 !important;
  box-shadow: 0 4px 18px rgba(60, 195, 190, 0.07) !important;
}
body.dark-mode .avail-form input,
body.dark-mode .avail-option,
body.dark-mode .cf-form input,
body.dark-mode .cf-option,
body.dark-mode .dk-forma input,
body.dark-mode .fft-card .fft-q,
body.dark-mode .fft-card input,
body.dark-mode .rep-form input,
body.dark-mode .rep-option,
body.dark-mode .triage .case,
body.dark-mode .triage-card input {
  background: #1c3434 !important;
  color: #e8f4f4 !important;
  border-color: #5fe8f2 !important;
}
body.dark-mode .answer,
body.dark-mode .avail-feedback,
body.dark-mode .cb-feedback,
body.dark-mode .cf-feedback,
body.dark-mode .fft-out,
body.dark-mode .hj-feedback,
body.dark-mode .rep-feedback {
  background: #243e3e !important;
  color: #e8f4f4 !important;
  border-left: 5px solid #ffae3f !important;
}
body.dark-mode .fft-btn,
body.dark-mode .triage .fft-btn,
body.dark-mode button {
  background-color: #4dd4e4 !important;
  color: #0a1f1f !important;
  border-color: #5fe8f2 !important;
}
body.dark-mode .fft-btn:hover,
body.dark-mode .triage .fft-btn:hover {
  background-color: #5fe8f2 !important;
  color: #102222 !important;
}
body.dark-mode .avail-card,
body.dark-mode .rep-card,
body.dark-mode .triage-card,
body.dark-mode .ttb-card body.dark-mode .recog-card body.dark-mode .fr-card {
  border: 1.5px solid #4dd4e4 !important;
}
body.dark-mode .fft-card {
  border: 1.5px solid #5fe8f2 !important;
}
body.dark-mode .block h1,
body.dark-mode .block h2,
body.dark-mode .block h3,
body.dark-mode section.block h2,
body.dark-mode section.block h3 {
  color: #5fe8f2 !important;
  border-bottom-color: #4dd4e4 !important;
}
body.dark-mode .answer,
body.dark-mode .choice,
body.dark-mode .option,
body.dark-mode .question,
body.dark-mode .task,
body.dark-mode .task div,
body.dark-mode .task label,
body.dark-mode .task p,
body.dark-mode button,
body.dark-mode input,
body.dark-mode label,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #1c3434 !important;
  color: #e8f4f4 !important;
  border-color: #4dd4e4 !important;
}
body.dark-mode .card,
body.dark-mode .card-back,
body.dark-mode .card-front {
  background-color: #162c2c !important;
  color: #e8f4f4 !important;
  border-color: #32c0c0 !important;
}
body.dark-mode input[type="checkbox"],
body.dark-mode input[type="radio"] {
  accent-color: #4dd4e4 !important;
}
body.dark-mode .button,
body.dark-mode button {
  background-color: #4dd4e4 !important;
  color: #0a1f1f !important;
  border: 1px solid #32c0c0 !important;
}
body.dark-mode button:hover {
  background-color: #5fe8f2 !important;
  color: #102222 !important;
}
body.dark-mode #fr .chart-box,
body.dark-mode #fr .fr-card {
  background: #162c2c !important;
  border-color: #4dd4e4 !important;
  box-shadow: 0 4px 18px rgba(60, 195, 190, 0.07) !important;
}
body.dark-mode #fr .chart-stats,
body.dark-mode #fr .fr-actions,
body.dark-mode #fr .fr-card .hint,
body.dark-mode #fr .fr-scenario {
  color: #e8f4f4 !important;
}
body.dark-mode #fr .chart-stats strong,
body.dark-mode #fr .fr-actions button {
  color: #4dd4e4 !important;
}
body.dark-mode #fr .fr-actions button {
  background: 0 0 !important;
  border: 2px solid #4dd4e4 !important;
}
body.dark-mode #fr .fr-actions #fr-next,
body.dark-mode #fr .fr-actions #fr-reset {
  border: 1px solid #4dd4e4 !important;
  background: rgba(77, 212, 228, 0.1) !important;
  color: #e8f4f4 !important;
}
body.dark-mode #fr .fr-actions button:hover:not(:disabled) {
  background: rgba(77, 212, 228, 0.2) !important;
}
body.dark-mode #fr .fr-card > .hint:last-of-type {
  color: #e8f4f4 !important;
}
#takehome {
  background: linear-gradient(135deg, #e3f2fd 10%, #bbdefb 90%);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.35);
  color: #0d47a1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
#takehome > h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 2.2rem;
  letter-spacing: -0.04em;
  color: #1565c0;
  text-shadow: 1px 1px 3px rgba(21, 101, 192, 0.6);
}
#takehome > p {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-size: 1.25rem;
  color: #424242;
  line-height: 1.9;
  font-weight: 600;
}
#takehome .grid-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}
#takehome .grid-container > div {
  background: #fff;
  padding: 1.8rem 1.8rem 2.2rem;
  border-radius: 16px;
  transition: 0.4s;
  border-left: 8px solid transparent;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  cursor: default;
}
#takehome .grid-container > div:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border-left-color: #1976d2;
  background: linear-gradient(135deg, #e3f2fd 0, #bbdefb 70%);
}
#takehome .grid-container > div:first-child {
  border-left-color: #0d47a1;
}
#takehome .grid-container > div:nth-child(2) {
  border-left-color: #2e7d32;
}
#takehome .grid-container > div:nth-child(3) {
  border-left-color: #fbc02d;
}
#takehome .grid-container > div:nth-child(4) {
  border-left-color: #0288d1;
}
#takehome .grid-container > div:nth-child(5) {
  border-left-color: #d32f2f;
}
#takehome .grid-container > div:nth-child(6) {
  border-left-color: #6a1b9a;
}
#takehome .grid-container h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.6em;
  user-select: none;
}
#takehome .grid-container h3::before {
  content: "🔔";
  font-size: 1.3em;
  color: inherit;
}
#takehome .grid-container p {
  color: #616161;
  font-size: 1rem;
  line-height: 1.6;
}
#takehome .closing-thought {
  margin-top: 3rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #bbdefb, #64b5f6);
  border-radius: 22px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 35px rgba(30, 136, 229, 0.5);
  color: #0d47a1;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  user-select: none;
  transition: background 0.4s, color 0.4s;
}
#takehome .closing-thought:hover {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  color: #fff;
}
#takehome .closing-thought p {
  margin-top: 1rem;
  font-style: italic;
}
#takehome .closing-thought p:first-child {
  font-style: normal;
  font-weight: 900;
  font-size: 1.6rem;
}
#confirmation .cb-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  color: #333;
}
#confirmation #cb-scenario {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #cfe3e3;
}
#confirmation #cb-scenario p {
  margin: 0.25rem 0;
}
#confirmation #cb-info-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
#confirmation .cb-info-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
#confirmation .cb-info-item.selected {
  background: #eaf5f3;
  border-color: #005959;
  box-shadow: 0 0 5px rgba(0, 89, 89, 0.3);
  color: #004d4d !important;
}
#confirmation #cb-evaluation {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
#confirmation #cb-evaluation label[for="cb-likelihood"] {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
#confirmation #cb-evaluation > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#confirmation #cb-evaluation input[type="range"] {
  flex-grow: 1;
}
#confirmation #cb-evaluation #cb-likelihood-value {
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}
#confirmation #cb-evaluation button#cb-submit-eval {
  margin-top: 1rem;
}
#confirmation #cb-feedback {
  background: #e8f4f4;
  border-left: 5px solid #005959;
  font-weight: 700;
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  min-height: 2.2rem;
  text-align: center;
}
#confirmation .cb-controls {
  margin-top: 1rem;
  text-align: center;
}
#confirmation .cb-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9em;
}
#confirmation .cb-stats div {
  white-space: nowrap;
}
#confirmation .cb-stats strong {
  font-weight: 700;
}
body.dark-mode #confirmation .cb-card {
  background: #162c2c !important;
  border-color: rgba(77, 212, 228, 0.25) !important;
  color: #e8f4f4 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode #confirmation .cb-card label,
body.dark-mode #confirmation .cb-card p,
body.dark-mode #confirmation .cb-card small,
body.dark-mode #confirmation .cb-card strong {
  color: #e8f4f4 !important;
}
body.dark-mode #confirmation #cb-scenario strong {
  color: #5fe8f2 !important;
}
body.dark-mode #confirmation #cb-scenario small {
  color: #b8d8d8 !important;
}
body.dark-mode #confirmation #cb-scenario {
  border-bottom-color: rgba(77, 212, 228, 0.2) !important;
}
body.dark-mode #confirmation #cb-evaluation {
  border-top-color: rgba(77, 212, 228, 0.2) !important;
}
body.dark-mode #confirmation #cb-evaluation label[for="cb-likelihood"] {
  color: #5fe8f2 !important;
}
body.dark-mode #confirmation #cb-evaluation #cb-likelihood-value {
  color: #e8f4f4 !important;
}
body.dark-mode #confirmation .cb-info-item {
  background: #1c3434 !important;
  border: 1px solid rgba(77, 212, 228, 0.2) !important;
  color: #e0f0f0 !important;
}
body.dark-mode #confirmation .cb-info-item.selected {
  background: #2a5f5f !important;
  border-color: #5fe8f2 !important;
  color: #fff !important;
  box-shadow: 0 0 6px rgba(95, 232, 242, 0.45) !important;
}
body.dark-mode #confirmation #cb-feedback {
  background: #243e3e !important;
  border-left-color: #ffc24d !important;
  color: #e8f4f4 !important;
}
body.dark-mode #confirmation .cb-stats {
  color: #b8d8d8 !important;
}
body.dark-mode #confirmation .cb-stats strong {
  color: #e8f4f4 !important;
}
#confirmation #cb-evaluation #cb-likelihood-value,
#confirmation #cb-evaluation label[for="cb-likelihood"],
#confirmation #cb-feedback,
#confirmation #cb-scenario small,
#confirmation #cb-scenario strong,
#confirmation .cb-card p,
#confirmation .cb-info-item,
#confirmation .cb-stats,
#confirmation .cb-stats div,
#confirmation .cb-stats strong {
  color: #005959 !important;
}
body.dark-mode #anchoring .anch-card {
  background: #162c2c !important;
  border-color: rgba(77, 212, 228, 0.25) !important;
  color: #e8f4f4 !important;
}
body.dark-mode #anchoring .anch-box {
  background: #1c3434 !important;
  border-color: rgba(77, 212, 228, 0.15) !important;
}
body.dark-mode #anchoring .anch-label {
  color: #b8d8d8 !important;
}
body.dark-mode #anchoring .anch-anchor,
body.dark-mode #anchoring .anch-input span,
body.dark-mode #anchoring .anch-question {
  color: #e8f4f4 !important;
}
body.dark-mode #anchoring .anch-stats .anch-col {
  background: #1c3434 !important;
  border-color: rgba(77, 212, 228, 0.15) !important;
}
body.dark-mode #anchoring .anch-stats .anch-col div {
  color: #c5dede !important;
}
body.dark-mode #anchoring .anch-stats .anch-col .anch-col-title {
  color: #5fe8f2 !important;
}
body.dark-mode #anchoring .anch-tag {
  background: rgba(77, 212, 228, 0.15) !important;
  color: #5fe8f2 !important;
}
body.dark-mode #anchoring .anch-tag[style*="a14a00"] {
  background: rgba(255, 194, 77, 0.15) !important;
  color: #ffc24d !important;
}
body.dark-mode #omission .ob-card {
  background: #162c2c !important;
  border-color: rgba(77, 212, 228, 0.25) !important;
  color: #e8f4f4 !important;
}
body.dark-mode #omission .ob-case {
  border-bottom-color: rgba(77, 212, 228, 0.2) !important;
  color: #e0f0f0 !important;
}
body.dark-mode #omission .ob-actions button {
  background: #1c3434 !important;
  border-color: #5fe8f2 !important;
  color: #e8f4f4 !important;
}
body.dark-mode #omission .ob-actions button span {
  color: #b8d8d8 !important;
}
body.dark-mode #omission .ob-actions button:hover:not(:disabled) {
  background: #243e3e !important;
}
body.dark-mode #omission .ob-feedback {
  background: #243e3e !important;
  border-left-color: #ffc24d !important;
  color: #e8f4f4 !important;
}
body.dark-mode #omission .ob-stats,
body.dark-mode #omission .ob-stats div {
  color: #b8d8d8 !important;
}
body.dark-mode #omission .ob-stats strong {
  color: #e8f4f4 !important;
}
body.dark-mode #triage .triage-card {
  background: #162c2c !important;
  border-color: rgba(77, 212, 228, 0.25) !important;
  color: #e8f4f4 !important;
}
body.dark-mode #triage .case {
  background: #1c3434 !important;
  border-color: rgba(77, 212, 228, 0.15) !important;
  color: #e0f0f0 !important;
}
body.dark-mode #triage .case .case-h strong {
  color: #5fe8f2 !important;
}
body.dark-mode #triage .case .case-vitals,
body.dark-mode #triage .case .case-vitals li,
body.dark-mode #triage .case .case-vitals span {
  color: #c5dede !important;
}
body.dark-mode #triage .case .case-vitals strong {
  color: #e8f4f4 !important;
}
body.dark-mode #triage .triage-out {
  background: #243e3e !important;
  border-left-color: #5fe8f2 !important;
  color: #e8f4f4 !important;
}
body.dark-mode #triage .case.ok {
  background: #1a4d4d !important;
  border-color: #81c784 !important;
  box-shadow: 0 0 8px rgba(129, 199, 132, 0.4) !important;
}
body.dark-mode #triage .case.wrong {
  background: #4d1a1a !important;
  border-color: #e57373 !important;
  box-shadow: 0 0 8px rgba(229, 115, 115, 0.4) !important;
}
body.dark-mode #triage .case.picked {
  outline: #ffc24d solid 2px !important;
  outline-offset: 2px;
}
body.dark-mode #satisficing .sat-criteria {
  border-bottom-color: rgba(77, 212, 228, 0.2) !important;
}
body.dark-mode #satisficing .sat-criteria label {
  color: #5fe8f2 !important;
}
body.dark-mode #satisficing #sat-current-apt {
  background: #1c3434 !important;
  color: #e0f0f0 !important;
}
body.dark-mode #satisficing #sat-feedback {
  background: #243e3e !important;
  border-left-color: #ffc24d !important;
  color: #e8f4f4 !important;
}
body.dark-mode #satisficing .sat-stats {
  color: #b8d8d8 !important;
}
body.dark-mode #satisficing .sat-stats strong {
  color: #e8f4f4 !important;
}
body.dark-mode .mh-explanation.collapsible {
  background: #1c3434 !important;
  border: 1px solid rgba(77, 212, 228, 0.25) !important;
  border-left-width: 5px !important;
  border-left-color: #4dd4e4 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode .collapsible .exp-toggle {
  background: #243e3e !important;
  color: #e8f4f4 !important;
  border: 1px solid rgba(77, 212, 228, 0.3) !important;
}
body.dark-mode .collapsible .exp-toggle:hover {
  background: #2a5f5f !important;
  border-color: #5fe8f2 !important;
}
body.dark-mode .exp-content {
  background: #162c2c !important;
  color: #e0f0f0 !important;
}
body.dark-mode .exp-content h4 {
  color: #5fe8f2 !important;
  border-bottom-color: rgba(77, 212, 228, 0.3) !important;
}
body.dark-mode .exp-content li,
body.dark-mode .exp-content p,
body.dark-mode .exp-content ul {
  color: #e0f0f0 !important;
}
body.dark-mode .exp-content b,
body.dark-mode .exp-content strong {
  color: #fff !important;
}
body.dark-mode .exp-content a {
  color: #63dce6 !important;
}
body.dark-mode .exp-content a:hover {
  color: #ffda85 !important;
}
body.dark-mode #takehome {
  background: linear-gradient(135deg, #102020 10%, #244444 90%) !important;
  color: #e8f4f4 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode #takehome h1 {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(95, 232, 242, 0.4) !important;
}
body.dark-mode #takehome > p:not(.closing-thought p) {
  color: #e8f4f4 !important;
}
body.dark-mode #takehome .grid-container > div {
  background: #183d3d !important;
  border-left-color: #4dd4e4 !important;
  box-shadow: 0 0 8px rgba(77, 212, 228, 0.18) !important;
  color: #e0f0f0 !important;
}
body.dark-mode #takehome .grid-container h3 {
  color: #fff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}
body.dark-mode #takehome .grid-container div p {
  color: #e0f0f0 !important;
}
body.dark-mode #takehome .closing-thought {
  background: linear-gradient(135deg, #203a3a, #2c5353) !important;
  color: #e8f4f4 !important;
}
body.dark-mode #takehome .closing-thought p:first-child {
  color: #fff !important;
}
body.dark-mode #memocard .card-front {
  background: #1f3a3a !important;
  color: #adeaea !important;
  border: 1px solid rgba(77, 212, 228, 0.3);
}
body.dark-mode #memocard .card-back {
  background: #2a5f5f !important;
  color: #e8f4f4 !important;
  border: 1px solid rgba(77, 212, 228, 0.2);
}
body.dark-mode #memocard .nav-buttons button {
  background-color: #4dd4e4 !important;
  color: #0a1f1f !important;
  border-color: #5fe8f2 !important;
}
body.dark-mode #memocard .nav-buttons button:hover {
  background-color: #5fe8f2 !important;
  color: #102222 !important;
}
body.dark-mode #memocard .nav-buttons button#shuffleBtn {
  background-color: #328a8a !important;
  color: #e8f4f4 !important;
  border-color: #4dd4e4 !important;
}
body.dark-mode #memocard .nav-buttons button#shuffleBtn:hover {
  background-color: #3faaaa !important;
}
.hx-logo-dark,
body.dark-mode .hx-logo-light {
  display: none;
}
body.dark-mode .hx-logo-dark {
  display: inline-block;
}
.hx-hero {
  background: radial-gradient(
      circle at 1px 1px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 0
    ),
    linear-gradient(135deg, #005959 0, #0a7a7a 60%);
  background-size: 4px 4px, auto;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 28px 18px;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
}
.hx-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.2),
    transparent 70%
  );
  pointer-events: none;
}
.hx-hero p {
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
@keyframes lightSweep {
  from {
    left: -50%;
  }
  to {
    left: 150%;
  }
}
.hx-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2),
    transparent 80%
  );
  animation: 5s ease-in-out infinite lightSweep;
  transform: skewX(-20deg);
}
#batBallInput,
.anch-input input[type="number"],
.anch-input input[type="text"],
.bayes-form input[type="number"] {
  color: #005959 !important;
  font-weight: 700 !important;
}
.hx-mobile-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-top: 1px solid #dbe8e8;
  background-color: rgba(255, 255, 255, 0.99);
  box-sizing: border-box;
  z-index: 40;
  max-height: calc(100vh - 70px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.hx-mobile-menu li {
  margin: 0;
}
.hx-mobile-menu a {
  text-decoration: none;
  color: #005959;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  display: block;
  border-radius: 4px;
  transition: background-color 0.15s;
  background: 0 0;
  border: none;
  line-height: 1.3;
}
.hx-mobile-menu a:focus,
.hx-mobile-menu a:hover {
  background-color: #eef8f8;
}
.hx-mobile-menu .menu-group-title {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0.6rem 0 0.3rem;
  padding: 0.1rem 0;
  pointer-events: none;
  display: block;
  text-align: center;
  border-bottom: 1px solid rgba(0, 89, 89, 0.1);
}
.hx-mobile-menu .menu-group-title:first-child {
  margin-top: 0.2rem;
}
.hx-mobile-menu .green-title {
  color: #005959;
  border-color: rgba(0, 89, 89, 0.1);
}
.hx-mobile-menu .orange-title {
  color: #f39c12;
  border-color: rgba(243, 156, 18, 0.15);
}
.hx-mobile-menu .extra-menu a {
  color: #8a5500;
}
.hx-mobile-menu .extra-menu a:hover {
  background-color: rgba(243, 156, 18, 0.1);
}
@media (max-width: 700px) {
  .hx-nav #hx-menu {
    display: none;
  }
  .hx-menu-toggle {
    display: inline-flex;
  }
  .hx-nav {
    position: sticky;
  }
  .hx-nav.is-open .hx-mobile-menu {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
@media (min-width: 701px) {
  .hx-mobile-menu {
    display: none !important;
  }
  #hx-menu {
    display: flex !important;
  }
  .hx-menu-toggle {
    display: none !important;
  }
}
body.dark-mode .hx-mobile-menu {
  background-color: rgba(20, 45, 45, 0.99) !important;
  border-top-color: rgba(77, 212, 228, 0.2) !important;
}
body.dark-mode .hx-mobile-menu a {
  color: #5fe8f2 !important;
  background: 0 0 !important;
  border: none !important;
}
body.dark-mode .hx-mobile-menu a:focus,
body.dark-mode .hx-mobile-menu a:hover {
  background-color: #1c3c3c !important;
}
body.dark-mode .hx-mobile-menu .menu-group-title {
  color: #b8d8d8 !important;
  border-bottom-color: rgba(77, 212, 228, 0.15) !important;
}
body.dark-mode .hx-mobile-menu .green-title {
  color: #5fe8f2 !important;
}
body.dark-mode .hx-mobile-menu .orange-title {
  color: #ffc24d !important;
  border-color: rgba(255, 194, 77, 0.15) !important;
}
body.dark-mode .hx-mobile-menu .extra-menu a {
  color: #ffda85 !important;
}
body.dark-mode .hx-mobile-menu .extra-menu a:hover {
  background-color: rgba(255, 194, 77, 0.1) !important;
}
.hx-mobile-menu::-webkit-scrollbar {
  width: 6px;
}
.hx-mobile-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}
.hx-mobile-menu::-webkit-scrollbar-thumb {
  background-color: rgba(0, 89, 89, 0.4);
  border-radius: 3px;
}
body.dark-mode .hx-mobile-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
body.dark-mode .hx-mobile-menu::-webkit-scrollbar-thumb {
  background-color: rgba(77, 212, 228, 0.4);
}
.hx-hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
}
.hx-hero-logo {
  max-height: 200px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .hx-hero-flex {
    flex-direction: column;
    text-align: center;
  }
  .hx-hero-logo {
    height: 120px;
    margin-bottom: 1rem;
  }
}
.hx-hero {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.hx-hero-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.hx-hero-flex {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: left;
}
.hx-hero-text h1 {
  color: #fff;
  margin: 0 0 0.4rem !important;
  font-size: 2.4rem;
  line-height: 1.25;
  white-space: normal;
}
.hx-hero-text p {
  color: #fff;
  margin: 0 !important;
  font-size: 1.3rem;
  line-height: 1.4;
  white-space: normal;
}
.hx-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}
.hx-nav {
  height: auto !important;
  min-height: 90px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  align-items: flex-start !important;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}
#progressContainer {
  right: 0.1rem;
  top: 150px;
}
.hx-hero-logo {
  height: 130px;
  width: auto;
  flex-shrink: 0;
}
.heureka-logo {
  transform: translateY(-2px);
}
.odek-logo {
  transform: translateY(2px);
}
.hx-hero-text {
  flex: 1 1 auto;
  color: #fff;
  text-align: center;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 1100px) {
  .hx-hero-logo {
    height: 100px;
  }
  .hx-hero-text {
    max-width: 90%;
    margin: 0 auto;
  }
}
.odek-link .odek-logo {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4)) !important;
  transform: translateY(2px) scale(1) !important;
  transform-origin: center center !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transition: opacity 0.25s, transform 0.25s, filter 0.25s !important;
}
.odek-link:hover .odek-logo {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) !important;
  transform: translateY(2px) scale(1.06) !important;
  opacity: 0.95 !important;
}
.heureka-logo {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  transform: translateY(-2px) scale(1);
  transform-origin: center center;
  opacity: 1;
  transition: filter 0.25s;
}
@media (max-width: 900px) {
  .hx-logo {
    height: 48px;
  }
}
.bayes-chart-wrap,
.bayes-table-wrap,
.dk-chart-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 0.5rem;
  margin-inline: auto;
  border-radius: 8px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  margin-bottom: 1rem;
}
.dk-chart-wrap {
  overflow-x: hidden;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.bayes-chart-wrap::-webkit-scrollbar,
.bayes-table-wrap::-webkit-scrollbar {
  height: 4px;
}
.bayes-chart-wrap::-webkit-scrollbar-track,
.bayes-table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}
.bayes-chart-wrap::-webkit-scrollbar-thumb,
.bayes-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 89, 89, 0.4);
  border-radius: 2px;
}
.bayes-table {
  border-collapse: collapse;
  min-width: 400px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  margin: 0;
}
.bayes-table td,
.bayes-table th {
  padding: 0.4rem 0.6rem;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--color-border, #ddd);
}
.bayes-table td:first-child,
.bayes-table th:first-child {
  text-align: left;
}
.bayes-chart-wrap canvas,
.dk-chart-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}
.bayes-chart-wrap canvas {
  aspect-ratio: 520/240;
}
.dk-chart-wrap canvas {
  aspect-ratio: 520/280;
}
.block,
body {
  overflow-x: hidden !important;
}
#satisficing input[type="number"] {
  font-weight: 700;
  color: #005959;
}
body.dark-mode #satisficing input[type="number"] {
  color: #5fe8f2;
  font-weight: 700;
}
@media (max-width: 600px) {
  .mh-board {
    justify-content: space-evenly;
    overflow-x: visible;
  }
  .mh-stats,
  .mh-stats-grid {
    width: 100%;
    overflow-x: auto;
  }
  #mh-chart {
    max-width: 100%;
    height: auto;
  }
  #montyhall {
    overflow-x: visible;
  }
  .mh-board {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0.5rem;
    gap: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }
  .mh-board .door {
    flex: 0 0 auto;
    width: 26.5vw;
    max-width: 95px;
    aspect-ratio: 2/3;
    border-radius: 10px;
  }
  .mh-board .door:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 89, 89, 0.35);
    outline: 0;
  }
}
#backToTop {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #005959;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  z-index: 900;
}
#backToTop:hover {
  background: #f39c12;
  transform: translateY(-2px);
}
.foundation-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 89, 89, 0.2);
  font-size: 0.95rem;
  color: #005959;
  flex-wrap: wrap;
  text-align: center;
}
.foundation-support a {
  color: #f39c12;
  font-weight: 600;
  text-decoration: none;
}
.foundation-support a:hover {
  text-decoration: underline;
}
.foundation-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s;
}
.foundation-logo:hover {
  transform: scale(1.05);
}
.mh-board .door::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.25) 0,
      rgba(255, 255, 255, 0.08) 45%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    repeating-linear-gradient(
      90deg,
      #b36b32 0 8px,
      #a15528 8px 16px,
      #b36b32 16px 24px
    ),
    linear-gradient(145deg, #d0803c 0, #a65a26 45%, #813c1b 100%);
  background-blend-mode: overlay;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    inset 0 0 25px rgba(255, 255, 255, 0.2), inset 0 0 35px rgba(0, 0, 0, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.28);
  transform-origin: left center;
  transform: rotateY(0);
  transition: transform 0.6s ease-in-out, box-shadow 0.3s;
}
.mh-board .door.open::before {
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.25) 0,
      rgba(255, 255, 255, 0.08) 45%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    repeating-linear-gradient(
      90deg,
      #b36b32 0 8px,
      #a15528 8px 16px,
      #b36b32 16px 24px
    ),
    linear-gradient(145deg, #d0803c 0, #a65a26 45%, #813c1b 100%) !important;
  background-blend-mode: overlay !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    inset 0 0 25px rgba(255, 255, 255, 0.2), inset 0 0 35px rgba(0, 0, 0, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.28) !important;
}
.mh-board .door.open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(0, 0, 0, 0.3) 0,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 0;
}
/* Monty Hall - Szülő blokk kilógásának kényszerítése */
section#montyhall.block {
  overflow: visible !important; /* Kényszerítjük a láthatóságot ezen a blokkon */
}

/* Monty Hall - Kiválasztott ajtó árnyékának kényszerítése (Animáció nélkül teszteléshez) */
section#montyhall div.mh-board button.door.selected {
  box-shadow: 0 0 0 7px #005959, 0 0 18px rgba(0, 89, 89, 0.6) !important; /* Erősebb, statikus árnyék !important-tal */
  outline: none !important;
  z-index: 10 !important; /* Legyen legfelül */
  /* Esetleges transzformációk kikapcsolása, ami bezavarhat */
  transform: none !important;
}

/* A tábla és kártya kilógását is biztosítjuk (redundáns, de biztonságos) */
.mh-board {
  overflow: visible !important;
  padding: 10px !important; /* Tér az árnyéknak */
}

#montyhall .task-card {
  overflow: visible !important;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(0, 89, 89, 0.85), 0 0 12px rgba(0, 89, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 0 7px #005959, 0 0 18px rgba(0, 89, 89, 0.6);
  }
}
#fr .chart-box {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 20px 16px 18px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#fr .chart-box .chart-stats {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: #003b3b;
}
#fr .chart-box .chart-stats strong {
  color: #005959;
  font-weight: 700;
}
#fr .chart-box canvas {
  max-width: 100%;
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  width: 100%;
  height: auto;
}
.task-card {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-top: 0.5rem;
}
.task-card .hint {
  color: #005959;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: left;
  max-width: 80ch;
}
.task-card canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem auto;
}
.task-card .lsn-stats {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #005959;
}
.task-card .lsn-stats strong {
  color: #005959;
  font-weight: 700;
}
#satisficing .sat-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  color: #005959;
}
#satisficing .sat-criteria label {
  color: #005959;
  font-weight: 600;
  font-size: 0.9rem;
}
#satisficing .sat-current-apt {
  min-height: 6em;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  color: #005959;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid #e7e7ef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
#satisficing .sat-controls {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
#satisficing .sat-controls button {
  min-width: 150px;
}

#satisficing .sat-stats {
  margin-top: 1rem;
  color: #005959;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}
#satisficing .sat-stats strong {
  color: #005959;
  font-weight: 700;
}
.sat-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4em;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
  background: #eef8f8;
  border-left: 5px solid #005959;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #005959 !important;
}
.sat-feedback strong {
  font-weight: 700 !important;
  color: #005959 !important;
}
.hj-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.hj-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hj-btn,
.hj-next {
  border: 2px solid #005959;
  background: #fff;
  color: #005959;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 230px;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}
.hj-btn:disabled,
.hj-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hj-stats {
  margin-top: 1rem;
  color: #005959;
  font-weight: 600;
  line-height: 1.4;
}
.hj-stats strong {
  font-weight: 700;
  color: #005959;
}
button {
  appearance: none;
  background: #fff;
  color: #005959;
  border: 2px solid #005959;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
button:hover:not(:disabled) {
  background: rgba(0, 89, 89, 0.05);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
}
button.ghost,
button.primary {
  background: #fff;
  color: #005959;
  border: 2px solid #005959;
}
#math-start,
button.math-start-btn {
  background: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  box-shadow: none !important;
}
.mh-board {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
button.door {
  width: 120px;
  height: 190px;
  border: 3px solid #005959;
  border-radius: 10px;
  background: linear-gradient(to bottom, #666 0, #4d4d4d 70%, #3b3b3b 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35),
    inset 0 2px 6px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
button.door:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 6px rgba(255, 255, 255, 0.3);
}
button.door.selected {
  box-shadow: 0 0 0 4px rgba(0, 89, 89, 0.4), 0 8px 14px rgba(0, 0, 0, 0.5),
    inset 0 2px 6px rgba(255, 255, 255, 0.25);
}
.mh-board .door,
.mh-board button.door {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 120px !important;
  height: 190px !important;
  max-width: 120px !important;
  max-height: 190px !important;
  min-width: 120px !important;
  min-height: 190px !important;
  border: 3px solid #005959 !important;
  border-radius: 10px !important;
  background: linear-gradient(
    to bottom,
    #666 0,
    #4d4d4d 70%,
    #3b3b3b 100%
  ) !important;
  background-image: linear-gradient(
    to bottom,
    #666 0,
    #4d4d4d 70%,
    #3b3b3b 100%
  ) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35),
    inset 0 2px 6px rgba(255, 255, 255, 0.25) !important;
  font-size: 2.5rem !important;
  line-height: 1 !important;
  color: #fff !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.mh-board .door:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 6px rgba(255, 255, 255, 0.3) !important;
}
.mh-board .door.selected {
  box-shadow: 0 0 0 4px rgba(0, 89, 89, 0.4), 0 8px 14px rgba(0, 0, 0, 0.5),
    inset 0 2px 6px rgba(255, 255, 255, 0.25) !important;
}
@media (max-width: 600px) {
  button.door {
    width: 90px;
    height: 150px;
    font-size: 2rem;
  }
  .mh-board .door,
  .mh-board button.door {
    width: 90px !important;
    height: 150px !important;
    max-width: 90px !important;
    max-height: 150px !important;
    min-width: 90px !important;
    min-height: 150px !important;
    font-size: 2rem !important;
  }
}
#dk .dk-chart-wrap {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#dk .dk-chart-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem auto;
}
#fr .fr-actions button {
  background-color: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  display: inline-block !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  background-image: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}
#fr .fr-actions button:focus,
#fr .fr-actions button:hover {
  background-color: #005959 !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important;
}
#anch-new,
#anch-reset,
#anch-submit,
button.ghost {
  background-color: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  display: inline-block !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  background-image: none !important;
}
#anch-new:focus,
#anch-new:hover,
#anch-reset:focus,
#anch-reset:hover,
#anch-submit:focus,
#anch-submit:hover {
  background-color: #005959 !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important;
}
button.ghost:focus,
button.ghost:hover {
  background-color: #005959 !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important;
}
.ob-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
#ob-choose-action,
#ob-choose-omission {
  background-color: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  white-space: normal !important;
}
#ob-choose-action:focus,
#ob-choose-action:hover,
#ob-choose-omission:focus,
#ob-choose-omission:hover {
  background-color: #005959 !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important;
}
#ob-feedback {
  min-height: 2.4em;
  margin-top: 0.5rem;
  text-align: center;
  background-color: #e8f5f4;
  border-left: 6px solid #005959;
  border-radius: 8px;
  color: #005959;
  font-weight: 700;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-controls {
  margin-top: 1rem;
  text-align: center;
}
#fft-out {
  background-color: #e8f5f4;
  border-left: 6px solid #005959;
  border-radius: 8px;
  color: #005959;
  font-weight: 700;
  padding: 0.6rem 1rem;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
#fft-out * {
  text-align: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-style: normal !important;
}
#fft-reset {
  background-color: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  white-space: nowrap !important;
}
#fft-reset:focus,
#fft-reset:hover {
  background-color: #005959 !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important;
}
#triage-out {
  background-color: #e8f5f4;
  border-left: 6px solid #005959;
  border-radius: 8px;
  color: #005959;
  font-weight: 700;
  padding: 0.6rem 1rem;
  min-height: 2.4em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#triage-out * {
  text-align: center !important;
  font-style: normal !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#triage-reset {
  background-color: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  white-space: nowrap !important;
}
#triage-reset:focus,
#triage-reset:hover {
  background-color: #005959 !important;
  color: #fff !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  outline: 0 !important;
}
.hx-btn:focus,
.hx-btn:hover,
button:focus:not(.warning):not(.danger):not(.disabled),
button:hover:not(.warning):not(.danger):not(.disabled) {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12) !important;
  background-color: #005959; /* Zöld háttér CSAK más gomboknak */
  color: #fff !important;
  transform: translateY(-2px);
  /* Duplikált box-shadow eltávolítva */
  outline: 0 !important;
}
.hx-btn,
button {
  transition: background-color 0.2s, color 0.2s, box-shadow 0.25s,
    transform 0.2s;
}
.hx-btn:active,
button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
#math-start,
.math-start-btn {
  background-color: #fff !important;
  color: #005959 !important;
  border: 2px solid #005959 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  font-family: inherit !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.25s,
    transform 0.2s;
}
#math-start:focus,
#math-start:hover,
.math-start-btn:focus,
.math-start-btn:hover {
  background-color: #005959 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  outline: 0 !important;
}
#math-start:active,
.math-start-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
nav a:focus,
nav a:hover {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  outline: 0;
  text-decoration: none;
}
nav a.is-active {
  background-color: #005959;
  color: #fff;
  font-weight: 700;
}
#hx-menu a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
}
#hx-menu a.hx-green {
  /* VÁLTOZÁS: Háttér alapból fehér/áttetsző */
  background-color: #fff;
  border-color: #005959;
  color: #005959;
}
#hx-menu a.hx-green:focus,
#hx-menu a.hx-green:hover {
  /* Hover-re kapja meg a halvány hátteret */
  background-color: #e8f5f4;
  border-color: #005959;
  color: #005959;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  outline: 0;
  text-decoration: none;
}
#hx-menu a.hx-green.is-active {
  /* Az aktív marad erős, ahogy volt */
  background-color: #005959;
  border-color: #005959;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#hx-menu a.hx-yellow {
  /* VÁLTOZÁS: Háttér alapból fehér/áttetsző */
  background-color: #fff;
  border-color: #f39c12;
  color: #f39c12;
}
#hx-menu a.hx-yellow:focus,
#hx-menu a.hx-yellow:hover {
  /* Hover-re kapja meg a halvány hátteret */
  background-color: #fff4e1;
  border-color: #f39c12;
  color: #f39c12;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  outline: 0;
  text-decoration: none;
}
#hx-menu a.hx-yellow.is-active {
  /* Az aktív marad erős, ahogy volt */
  background-color: #f39c12;
  border-color: #f39c12;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
@media (max-width: 480px) {
  #hx-toasts {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
  }
  #lsn .lsn-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    padding: 0 0.5rem;
  }
  #lsn .lsn-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 auto;
    min-width: 110px;
    max-width: 150px;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.2;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
  }
}
#lsn-canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 19/8;
  margin: 0 auto;
  box-sizing: border-box;
}
.dk-chart-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}
#dk-canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 52/28;
  box-sizing: border-box;
}
@media (max-width: 800px) {
  #fr .fr-charts {
    flex-direction: column;
    align-items: center;
  }
  #fr .chart-box {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 15px;
  }
  #fr .chart-box canvas {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 10px auto;
  }
}
body.dark-mode {
  --color-text: #4cd1e0;
  --color-text-secondary: rgba(76, 209, 224, 0.8);
  --color-link: #4cd1e0;
  --color-border: rgba(76, 209, 224, 0.3);
}
body.dark-mode,
body.dark-mode #anch-anchor,
body.dark-mode #anch-anchor-type,
body.dark-mode .anch-col,
body.dark-mode .anch-col-title,
body.dark-mode .anch-question,
body.dark-mode .avail-feedback,
body.dark-mode .bayes-form label,
body.dark-mode .bayes-results,
body.dark-mode .bayes-table,
body.dark-mode .bayes-table td,
body.dark-mode .bayes-table th,
body.dark-mode .cf-feedback,
body.dark-mode .dk-feedback,
body.dark-mode .dk-summary,
body.dark-mode .hint,
body.dark-mode .lsn-stats,
body.dark-mode .mh-message,
body.dark-mode .rep-feedback,
body.dark-mode a,
body.dark-mode em,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode label,
body.dark-mode li,
body.dark-mode p,
body.dark-mode span,
body.dark-mode strong,
body.dark-mode td,
body.dark-mode th {
  color: #4cd1e0 !important;
}
body.dark-mode .anch-card,
body.dark-mode .avail-card,
body.dark-mode .bayes-form,
body.dark-mode .bayes-results,
body.dark-mode .bayes-table-wrap,
body.dark-mode .cf-card,
body.dark-mode .chart-box,
body.dark-mode .dk-form,
body.dark-mode .dk-forma,
body.dark-mode .dk-summary,
body.dark-mode .fr-card,
body.dark-mode .lsn-form,
body.dark-mode .lsn-stats,
body.dark-mode .mh-stats-grid,
body.dark-mode .rep-card,
body.dark-mode .task-card {
  background-color: #0f2626;
  border: 1px solid rgba(76, 209, 224, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  color: #4cd1e0 !important;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #001f1f !important;
  color: #4cd1e0 !important;
  border: 1px solid rgba(76, 209, 224, 0.4) !important;
}
body.dark-mode button,
body.dark-mode input[type="button"],
body.dark-mode input[type="submit"] {
  background-color: #005959;
  color: #4cd1e0 !important;
  border: 1px solid rgba(76, 209, 224, 0.4);
  border-radius: 8px;
}
body.dark-mode button:hover:not(:disabled),
body.dark-mode input[type="button"]:hover,
body.dark-mode input[type="submit"]:hover {
  filter: brightness(1.2);
}
body.dark-mode #anch-new,
body.dark-mode #anch-reset,
body.dark-mode #anch-submit,
body.dark-mode #avail-next,
body.dark-mode #avail-reset,
body.dark-mode #avail-submit,
body.dark-mode #batBallBtn,
body.dark-mode #cf-next,
body.dark-mode #cf-reset,
body.dark-mode #cf-submit,
body.dark-mode #fft-next,
body.dark-mode #fft-reset,
body.dark-mode #fr-choose-A,
body.dark-mode #fr-choose-B,
body.dark-mode #fr-next,
body.dark-mode #fr-reset,
body.dark-mode #lsn-reset,
body.dark-mode #lsn-run,
body.dark-mode #math-retry,
body.dark-mode #math-start,
body.dark-mode #mh-reset-round,
body.dark-mode #mh-reset-stats,
body.dark-mode #rep-next,
body.dark-mode #rep-reset,
body.dark-mode #rep-submit,
body.dark-mode #saleBtn,
body.dark-mode #satisficing-next,
body.dark-mode #satisficing-reset,
body.dark-mode #triage-next,
body.dark-mode #triage-reset,
body.dark-mode #ttb-next,
body.dark-mode #ttb-reset,
body.dark-mode #wasonCheckBtn,
body.dark-mode .anch-controls button,
body.dark-mode .avail-actions button,
body.dark-mode .cf-actions button,
body.dark-mode .lsn-buttons button,
body.dark-mode .mh-controls button,
body.dark-mode .rep-actions button,
body.dark-mode button {
  background-color: #005959 !important;
  border: 1px solid rgba(76, 209, 224, 0.4) !important;
  border-radius: 8px;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
body.dark-mode #anch-new:hover:not(:disabled),
body.dark-mode #anch-reset:hover:not(:disabled),
body.dark-mode #anch-submit:hover:not(:disabled),
body.dark-mode #avail-next:hover:not(:disabled),
body.dark-mode #avail-reset:hover:not(:disabled),
body.dark-mode #avail-submit:hover:not(:disabled),
body.dark-mode #batBallBtn:hover:not(:disabled),
body.dark-mode #cf-next:hover:not(:disabled),
body.dark-mode #cf-reset:hover:not(:disabled),
body.dark-mode #cf-submit:hover:not(:disabled),
body.dark-mode #fft-next:hover:not(:disabled),
body.dark-mode #fft-reset:hover:not(:disabled),
body.dark-mode #fr-choose-A:hover:not(:disabled),
body.dark-mode #fr-choose-B:hover:not(:disabled),
body.dark-mode #fr-next:hover:not(:disabled),
body.dark-mode #fr-reset:hover:not(:disabled),
body.dark-mode #lsn-reset:hover:not(:disabled),
body.dark-mode #lsn-run:hover:not(:disabled),
body.dark-mode #math-retry:hover:not(:disabled),
body.dark-mode #math-start:hover:not(:disabled),
body.dark-mode #mh-reset-round:hover:not(:disabled),
body.dark-mode #mh-reset-stats:hover:not(:disabled),
body.dark-mode #rep-next:hover:not(:disabled),
body.dark-mode #rep-reset:hover:not(:disabled),
body.dark-mode #rep-submit:hover:not(:disabled),
body.dark-mode #saleBtn:hover:not(:disabled),
body.dark-mode #satisficing-next:hover:not(:disabled),
body.dark-mode #satisficing-reset:hover:not(:disabled),
body.dark-mode #triage-next:hover:not(:disabled),
body.dark-mode #triage-reset:hover:not(:disabled),
body.dark-mode #ttb-next:hover:not(:disabled),
body.dark-mode #ttb-reset:hover:not(:disabled),
body.dark-mode #wasonCheckBtn:hover:not(:disabled),
body.dark-mode .anch-controls button:hover:not(:disabled),
body.dark-mode .avail-actions button:hover:not(:disabled),
body.dark-mode .cf-actions button:hover:not(:disabled),
body.dark-mode .lsn-buttons button:hover:not(:disabled),
body.dark-mode .mh-controls button:hover:not(:disabled),
body.dark-mode .rep-actions button:hover:not(:disabled),
body.dark-mode button:hover:not(:disabled) {
  filter: brightness(1.2);
}
body.dark-mode .ghost,
body.dark-mode .ghost:not(:disabled),
body.dark-mode button.ghost {
  background: 0 0 !important;
  color: #4cd1e0 !important;
  border: 1px solid rgba(76, 209, 224, 0.5) !important;
  box-shadow: none !important;
}
body.dark-mode .ghost:hover:not(:disabled),
body.dark-mode button.ghost:hover:not(:disabled) {
  background: rgba(76, 209, 224, 0.08) !important;
  box-shadow: 0 0 8px rgba(76, 209, 224, 0.4);
}
body.dark-mode .ghost:disabled,
body.dark-mode button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}
body.dark-mode .dk-forma {
  background: 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 1rem;
}
body.dark-mode .dk-forma h2 {
  color: #4cd1e0 !important;
  background: 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-bottom: 4px solid #4cd1e0 !important;
  padding-bottom: 0.5rem;
  display: inline-block;
}
/* Memóriakártya szekció - kilógás engedélyezése a forgatáshoz */
section#memocard {
  overflow: visible; /* Engedélyezi, hogy a gyerek elem (a kártya) kilógjon */
  /* Esetleg adjunk egy kis extra alsó/felső margót, ha a kilógó rész túl közel kerülne más elemekhez */
  /* padding-top: 20px; */
  /* padding-bottom: 20px; */
}

/* A kártya konténerének is visible kell legyen (ezt már hozzáadtad) */
.card-container {
  overflow: visible;
  /* ... többi .card-container szabály ... */
}
/* 13. Feladat (Mulasztás) - Gombok elrendezése és egységes stílusa */
.ob-actions {
  display: grid; /* Két oszlopos rács */
  grid-template-columns: 1fr 1fr; /* Egyenlő szélességű oszlopok */
  gap: 1rem; /* Közöttük lévő rés */
  margin: 1rem 0; /* Térköz felül/alul */
}

/* Gombok egységes stílusa */
.ob-actions button {
  /* Alap gomb stílusok másolása/öröklése */
  background-color: #fff;
  color: #005959;
  border: 2px solid #005959;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px; /* Vagy amekkora a többi gombon */
  font-weight: 700;
  line-height: 1.2;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.25s,
    transform 0.2s;
  white-space: normal; /* Engedi a sortörést, ha kell */

  /* Biztosítjuk, hogy ne legyen pl. ghost stílus */
  background-image: none;
}

/* Egységes Hover állapot */
.ob-actions button:hover:not(:disabled) {
  background-color: #005959;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  outline: 0;
}

/* Egységes Active állapot */
.ob-actions button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Egységes Disabled állapot */
.ob-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 13. Feladat (Mulasztás) - Gombok EGYSÉGESÍTÉSE sötét módban (FELÜLVIZSGÁLT) */
body.dark-mode .ob-actions button {
  background-color: #1c3434 !important; /* Sötét háttér */
  color: #5fe8f2 !important; /* Világosabb türkiz szöveg */
  border: 2px solid #5fe8f2 !important; /* Világosabb türkiz keret, 2px vastag */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important; /* Sötétebb árnyék */
  /* Eltávolítjuk az esetleges egyedi színeket */
  border-color: #5fe8f2 !important;
}

/* Egységes Hover állapot sötét módban */
body.dark-mode .ob-actions button:hover:not(:disabled) {
  background-color: #5fe8f2 !important; /* Világosabb türkiz háttér hover-re */
  color: #0a1f1f !important; /* Nagyon sötét szöveg hover-re */
  border-color: #5fe8f2 !important; /* Keret színe marad */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.9) !important; /* Kicsit erősebb árnyék */
  transform: translateY(-2px); /* Ezt is egységesítjük */
}

/* Egységes Focus / Focus-Visible állapot sötét módban */
body.dark-mode .ob-actions button:focus,
body.dark-mode .ob-actions button:focus-visible {
  outline: 3px solid rgba(95, 232, 242, 0.5) !important; /* Egységes türkiz fókusz gyűrű */
  outline-offset: 1px !important;
  border-color: #5fe8f2 !important; /* Keret színe marad */
  /* Megtartjuk az alap árnyékot fókusz alatt is */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
  /* NEM változtatunk háttérszínt fókuszra, csak gyűrűt adunk */
  background-color: #1c3434 !important;
  color: #5fe8f2 !important;
}

/* Egységes Active állapot sötét módban */
body.dark-mode .ob-actions button:active:not(:disabled) {
  transform: translateY(1px) !important; /* Finomabb benyomás */
  background-color: #4dd4e4 !important; /* Kicsit sötétebb türkiz aktív állapot */
  color: #0a1f1f !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important; /* Kisebb árnyék */
}

/* Egységes Disabled állapot sötét módban */
body.dark-mode .ob-actions button:disabled {
  opacity: 0.4 !important; /* Erősebb átlátszóság */
  filter: brightness(0.7) !important; /* Tompítás */
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  /* Alap stílusok maradnak */
  background-color: #1c3434 !important;
  color: #5fe8f2 !important;
  border-color: #5fe8f2 !important;
}
/* Monty Hall - Tábla kilógásának engedélyezése */
.mh-board {
  overflow: visible; /* Engedélyezi, hogy a shadow kilógjon */
  padding: 10px; /* Adunk egy kis teret a shadow-nak */
}

/* Monty Hall - Feladatkártya kilógásának engedélyezése */
#montyhall .task-card {
  overflow: visible; /* Biztonság kedvéért itt is engedélyezzük */
}
/* Sötét mód: Kártya linkek (hx-card) stílusai */
body.dark-mode .hx-card {
  background: var(--card-bg, #142d2d); /* Sötét kártya háttér */
  color: var(--text-color, #e8f4f4); /* Sötét mód szövegszín */
  border-color: rgba(77, 212, 228, 0.25); /* Sötét mód keretszín */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16); /* Sötét mód árnyék */
}

/* Opcionális: A kártya alcím (hx-card-sub) finomhangolása sötét módban */
body.dark-mode .hx-card-sub {
  /* Ha az alap text-color túl erős, használhatunk egy halványabb változatot */
  color: var(--color-text-secondary, rgba(232, 244, 244, 0.8));
  opacity: 0.9; /* Esetleg növeljük az átlátszóságot, ha túl halvány lenne */
}

/* Hover állapot sötét módban (hogy az is passzoljon) */
body.dark-mode .hx-card:hover {
  background: #1c3c3c; /* Kicsit világosabb háttér hover-re */
  border-color: rgba(77, 212, 228, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
/* Sötét mód: Különálló teszt kártya (hx-card-test) stílusai */
body.dark-mode .hx-card-test {
  background: var(--card-bg, #142d2d); /* Sötét kártya háttér */
  color: var(--text-color, #e8f4f4); /* Sötét mód szövegszín (főcímnek) */
  border-color: rgba(77, 212, 228, 0.25); /* Sötét mód keretszín */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16); /* Sötét mód árnyék */
}

/* Sötét mód: Teszt kártya alcíme (hx-card-test-sub) */
body.dark-mode .hx-card-test-sub {
  color: var(
    --color-text-secondary,
    rgba(232, 244, 244, 0.8)
  ); /* Halványabb szövegszín az alcímnek */
  opacity: 0.9;
} /* Sötét mód: Különálló teszt kártya (hx-card-test) stílusai */
body.dark-mode .hx-card-test {
  background: var(--card-bg, #142d2d); /* Sötét kártya háttér */
  color: var(--text-color, #e8f4f4); /* Sötét mód szövegszín (főcímnek) */
  border-color: rgba(77, 212, 228, 0.25); /* Sötét mód keretszín */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16); /* Sötét mód árnyék */
}

/* Sötét mód: Teszt kártya alcíme (hx-card-test-sub) */
body.dark-mode .hx-card-test-sub {
  color: var(
    --color-text-secondary,
    rgba(232, 244, 244, 0.8)
  ); /* Halványabb szövegszín az alcímnek */
  opacity: 0.9;
}

/* Hover állapot sötét módban a teszt kártyára */
body.dark-mode .hx-card-test:hover {
  background: #1c3c3c; /* Kicsit világosabb háttér hover-re */
  border-color: rgba(77, 212, 228, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
/* Sötét mód: Hamburger ikon színe */
body.dark-mode .hx-menu-toggle .hx-bar {
  background-color: var(
    --primary-color,
    #4dd4e4
  ); /* Sötét módban használja a világosabb főszínt */
}
/* Hamburger gomb - Világos mód - Nyitott állapot (ERŐSÍTETT++) */
/* Alap nyitott állapot */
.hx-nav.is-open .hx-menu-toggle {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  /* Esetleges transform eltávolítása, ha bezavar */
  transform: none !important;
}

/* KATTINTÁS/HOVER/FÓKUSZ közben se legyen háttere nyitott állapotban */
.hx-nav.is-open .hx-menu-toggle:hover,
.hx-nav.is-open .hx-menu-toggle:focus,
.hx-nav.is-open .hx-menu-toggle:active {
  background-color: transparent !important; /* Kényszerítjük az átlátszóságot INTERAKCIÓ KÖZBEN IS */
  box-shadow: none !important;
  outline: none !important; /* Fókusz gyűrűt is levesszük */
  transform: none !important; /* Biztosítjuk, hogy ne mozduljon el */
  /* Extra: Biztosítjuk, hogy a szín se változzon (bár itt nincs szöveg) */
  color: inherit !important;
}

/* Hamburger vonalak - Világos mód - Nyitott állapot (X formáció - ERŐSÍTETT) */
.hx-nav.is-open .hx-menu-toggle .hx-bar {
  background-color: #005959 !important; /* Kényszerítjük a zöld színt az X vonalakra */
}

/* Sötét mód szabályok maradnak, ahogy voltak */
body.dark-mode .hx-nav.is-open .hx-menu-toggle {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
}
body.dark-mode .hx-nav.is-open .hx-menu-toggle:hover,
body.dark-mode .hx-nav.is-open .hx-menu-toggle:focus,
body.dark-mode .hx-nav.is-open .hx-menu-toggle:active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  color: inherit !important;
}
body.dark-mode .hx-nav.is-open .hx-menu-toggle .hx-bar {
  background-color: var(--primary-color, #4dd4e4) !important;
}
/* Sötét mód vonalak nyitott állapotban is (biztonság kedvéért) */
body.dark-mode .hx-nav.is-open .hx-menu-toggle .hx-bar {
  background-color: var(
    --primary-color,
    #4dd4e4
  ); /* Sötét módban maradjon a világosabb szín */
}

/* Sötét mód gomb nyitott állapotban (biztonság kedvéért) */
body.dark-mode .hx-nav.is-open .hx-menu-toggle {
  background: transparent; /* Sötét módban is legyen átlátszó (vagy add meg a kívánt hátteret) */
  box-shadow: none;
}
/* --- Hamburger Gomb Specifikus Stílusok --- */

/* Alapállapot (világos és sötét mód közös) */
.hx-menu-toggle {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  padding: 8px !important; /* Biztosítjuk a paddinget */
}

/* Hover és Focus állapot - Világos mód (nagyon finom jelzés) */
.hx-menu-toggle:hover:not(:disabled),
.hx-menu-toggle:focus:not(:disabled) {
  background-color: rgba(
    0,
    89,
    89,
    0.08
  ) !important; /* Nagyon halvány zöldes háttér */
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Active állapot (kattintáskor) - Világos mód */
.hx-menu-toggle:active:not(:disabled) {
  background-color: rgba(
    0,
    89,
    89,
    0.15
  ) !important; /* Kicsit erősebb háttér */
  transform: none !important;
  box-shadow: none !important;
}

/* Nyitott állapot (.is-open) - Világos mód (MINDIG átlátszó) */
.hx-nav.is-open .hx-menu-toggle,
.hx-nav.is-open .hx-menu-toggle:hover,
.hx-nav.is-open .hx-menu-toggle:focus,
.hx-nav.is-open .hx-menu-toggle:active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

/* Vonalak színe - Világos mód */
.hx-menu-toggle .hx-bar {
  background-color: #005959 !important;
}
/* Vonalak színe nyitva - Világos mód */
.hx-nav.is-open .hx-menu-toggle .hx-bar {
  background-color: #005959 !important; /* Maradjon zöld az X */
}

/* --- Sötét Mód Hamburger --- */

/* Hover és Focus állapot - Sötét mód */
body.dark-mode .hx-menu-toggle:hover:not(:disabled),
body.dark-mode .hx-menu-toggle:focus:not(:disabled) {
  background-color: rgba(
    77,
    212,
    228,
    0.1
  ) !important; /* Nagyon halvány türkiz háttér */
}

/* Active állapot (kattintáskor) - Sötét mód */
body.dark-mode .hx-menu-toggle:active:not(:disabled) {
  background-color: rgba(
    77,
    212,
    228,
    0.2
  ) !important; /* Kicsit erősebb türkiz háttér */
}

/* Nyitott állapot (.is-open) - Sötét mód (MINDIG átlátszó) */
body.dark-mode .hx-nav.is-open .hx-menu-toggle,
body.dark-mode .hx-nav.is-open .hx-menu-toggle:hover,
body.dark-mode .hx-nav.is-open .hx-menu-toggle:focus,
body.dark-mode .hx-nav.is-open .hx-menu-toggle:active {
  background-color: transparent !important;
}

/* Vonalak színe - Sötét mód */
body.dark-mode .hx-menu-toggle .hx-bar {
  background-color: var(--primary-color, #4dd4e4) !important;
}
/* Vonalak színe nyitva - Sötét mód */
body.dark-mode .hx-nav.is-open .hx-menu-toggle .hx-bar {
  background-color: var(
    --primary-color,
    #4dd4e4
  ) !important; /* Maradjon türkiz az X */
}
/* Mobil menü - Aktív link stílusa (Világos mód) */
.hx-mobile-menu a.is-active {
  background-color: #005959 !important; /* Sötétzöld háttér */
  color: #fff !important; /* Fehér szöveg */
  font-weight: 700; /* Félkövér kiemelés */
}

/* Opcionális: Hover állapot finomítása, hogy ne legyen pont ugyanolyan, mint az aktív */
.hx-mobile-menu a:hover:not(.is-active) {
  background-color: #eef8f8; /* Eredeti halvány háttér hover-re */
  color: #005959; /* Eredeti zöld szövegszín */
}

/* ---- Sötét mód Aktív link stílusa (konzisztencia és kontraszt növelése) ---- */
body.dark-mode .hx-mobile-menu a.is-active {
  background-color: #4dd4e4 !important; /* Világos türkiz háttér */
  color: #0a1f1f !important; /* Nagyon sötét szöveg a kontraszthoz */
  font-weight: 700;
}

/* Sötét mód hover finomítása (hogy ne legyen ugyanaz, mint az aktív) */
body.dark-mode .hx-mobile-menu a:hover:not(.is-active) {
  background-color: #1c3c3c !important; /* Sötétebb hover háttér */
  color: #5fe8f2 !important; /* Eredeti sötét mód szövegszín */
}
/* === GLOBÁLIS FELÜLÍRÁS: MINDEN GOMB NAGYBETŰS === */
button {
  text-transform: uppercase !important;
}
/* --- Vezérlőelemek (DM kapcsoló, Reset) --- */
.controls-stack {
  display: flex;
  flex-direction: column; /* Ezzel kerülnek egymás alá */
  align-items: center; /* Középre igazítás */
  gap: 8px; /* Térköz a kapcsoló és a gomb között */
  padding: 0 4px; /* Kis oldalsó térköz */
}

/* --- Új Master Reset Gomb Stílus (hx-yellow mintára) --- */
.hx-reset-all-btn {
  /* Alap gomb stílusok másolása a nav linkekről */
  display: inline-block;
  padding: 0.4rem 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
  font-size: 0.85rem; /* Kisebb betűméret, hogy elférjen */
  width: 100%; /* Töltse ki a stack szélességét */
  box-sizing: border-box;
  text-align: center;
  text-transform: uppercase !important; /* Nagybetűs, mint a többi gomb */

  /* Sárga "extra" stílus */
  background-color: #fff4e1;
  border-color: #f39c12;
  color: #f39c12;
}
.hx-reset-all-btn:focus,
.hx-reset-all-btn:hover {
  background-color: #fde3b8;
  border-color: #f39c12;
  color: #f39c12;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  outline: 0;
  text-decoration: none;
  transform: none; /* Ne ugorjon fel hoverre */
}

/* Dark Mode stílus a Reset gombhoz */
body.dark-mode .hx-reset-all-btn {
  /* Világosabb narancs sötét háttéren */
  background-color: rgba(255, 194, 77, 0.1);
  border-color: rgba(255, 194, 77, 0.4);
  color: #ffc24d; /* Sötét mód másodlagos szín */
}

body.dark-mode .hx-reset-all-btn:focus,
body.dark-mode .hx-reset-all-btn:hover {
  background-color: rgba(255, 194, 77, 0.2);
  border-color: rgba(255, 194, 77, 0.6);
  color: #ffda85;
}
