/* whole page as an app */
.retro-app{
  min-height: calc(100svh - 200px);
  margin-top: 50px;
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.retro-alert {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  font-size: 16px;
  border: 2px solid;
  box-shadow: 4px 4px 0 #000;
  background: #fefefe;
  color: black;
  max-width: 300px;
  line-height: 1.4;
  animation: slidein 0.4s ease-out;
}

.flash-notice {
  border-color: #33ff33;
  background-color: #ccffcc;
  color: #006600;
}

.flash-alert {
  border-color: #ff3366;
  background-color: #ffcccc;
  color: #990000;
}

.close-button {
  float: right;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  margin-left: 1rem;
}

@keyframes slidein {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.furby-analysis {
  background: radial-gradient(circle at 20% 20%, rgba(255,95,210,0.2), transparent 50%),
              radial-gradient(circle at 80% 10%, rgba(199,156,255,0.2), transparent 50%),
              #fff9ff;
  padding: 20px;
  border: 5px double #ff5fd2;
  border-radius: 15px;
  max-width: 90%;
  margin: 20px auto;
}

.analysis-title {
  font-size: 48px;
  text-align: center;
  color: #ff5fd2;
  text-shadow: 2px 2px 0 #000, 0 0 5px #fff;
}

.analysis-tagline {
  text-align: center;
  font-size: 16px;
  color: #6b40a6;
  margin-bottom: 20px;
}

.furby-analysis section {
  margin-bottom: 20px;
}

.furby-analysis h2 {
  font-size: 24px;
  color: #c79cff;
  border-bottom: 2px dashed #ff5fd2;
}

.furby-analysis ul {
  list-style: disc;
  padding-left: 20px;
}

.furby-analysis li {
  margin-bottom: 6px;
}


.furby-analysis p em {
  font-style: normal;
  font-weight: 600;
  color: #6b40a6;
}
.furby-analysis a { text-decoration: underline; }

/* ==== Layout: force single-column stack on all screens ==== */
.content-grid{
  display: grid;
  grid-template-columns: 1fr !important; /* override any multi-col */
  gap: var(--grid-gap);
}
.section-card{ grid-column: 1 / -1 !important; }

/* Optional: slightly wider comfortable reading */
.section-card p,
.section-card ul,
.section-card ol{
  max-width: 70ch;
}

/* ==== Readability tokens (retro-friendly) ==== */
:root{
  --ex-bg: #fff6d8;   /* buttery highlight for examples */
  --ex-border: #ffb300;
  --tr-bg: #eaf6ff;   /* ice blue for translations/glosses */
  --tr-border: #3aa0ff;
  --ink-soft: #222;
}

/* Example blocks you already use */
.example-box{
  display: inline-block;
  padding: 6px 10px;
  margin: 4px 0;
  background: var(--ex-bg);
  border: 2px solid var(--ex-border);
  box-shadow: 3px 3px 0 #000;
  line-height: 1.3;
}

/* Variant when you want a translation-looking chip */
.example-box.translation{
  background: var(--tr-bg);
  border-color: var(--tr-border);
}

/* Inline chips you can drop inside sentences (optional) */
.ex{ 
  background: var(--ex-bg);
  border: 2px solid var(--ex-border);
  padding: 0 .35em;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
}
.tr{
  background: var(--tr-bg);
  border: 2px solid var(--tr-border);
  padding: 0 .35em;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
}

/* Small helpers for lists of examples */
.examples-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.examples-list .example-box{ margin: 0; }

/* Slight contrast bump for body text */
.section-card p{ color: var(--ink-soft); }

/* Prefer reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.font-retro {
  font-family: 'Press Start 2P', monospace;
}

.retro-btn {
  @apply px-4 py-2 text-sm border-2 border-black bg-gradient-to-b from-white to-gray-300 font-bold uppercase rounded cursor-pointer transition;
}

.retro-btn:hover {
  @apply scale-105 bg-yellow-100;
}

.blinking-text {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.retro-btn {
  @apply px-4 py-2 text-sm border-2 border-black bg-white hover:bg-pink-100 font-bold uppercase rounded;
}
/* Dictionary entry layout */
.dict-entry {
  max-width: 700px;
  margin: 0 auto 18px;
  padding: 10px 12px;
  border-bottom: 2px dotted #c79cff; /* subtle divider */
  background: rgba(255, 255, 255, 0.6); /* keeps your light theme vibe */
  border-radius: 8px;
}

.dict-headword {
  margin: 0 0 4px;
  font-size: 1.75rem;           /* bigger */
  line-height: 1.1;
  font-weight: 800;             /* bold for headword */
  text-transform: none;
  letter-spacing: 0.2px;
}

.dict-morph {
  margin: 0 0 6px;
  font-style: italic;           /* italic morphology */
  opacity: 0.75;                /* lighter */
}

.dict-def {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* === Retro Dictionary CSS: 90s/00s Furby Style === */

body {
  background: #fdf6e3 url(/assets/retro-bg.png) repeat;
  color: #333;
  padding: 20px;
}

.furby-analysis {
  border: 4px double #ff69b4;
  background-color: #fff0f5;
  box-shadow: 0 0 20px #ffb6c1;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.analysis-title {
  font-size: 2.5em;
  color: #d100d1;
  text-shadow: 2px 2px #ff69b4;
  text-align: center;
}

.analysis-tagline {
  font-style: italic;
  color: #777;
  text-align: center;
  margin-bottom: 20px;
}

.tabs button, .furby-link {
  background-color: #ffb6c1;
  border: 2px solid #d100d1;
  color: #000;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
}

.tabs button:hover, .furby-link:hover {
  background-color: #fff;
  color: #d100d1;
}

.active-tab {
  background-color: #fff;
  font-weight: bold;
  text-decoration: underline;
  color: #d100d1;
}

.tab-content {
  padding-top: 20px;
}

.tab-content ul {
  list-style-type: none;
  padding-left: 0;
}

.tab-content li {
  background-color: #ffbef6;
  border: 2px dashed #d100d1;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 1px 1px 5px #ccc;
  font-size: 1.1em;
}

.tab-content li a {
  color: #800080;
  text-decoration: none;
  font-weight: bold;
}

.tab-content li a:hover {
  text-decoration: underline;
  color: #d100d1;
}

/* === Retro Entry Card CSS for Furbish Dictionary === */

.dictionary-card {
  background: #ffd7fa;        /* remove pink fill */
  border: 4px ridge #ff69b4;          /* keep retro frame */
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px auto;
  max-width: 720px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;                    /* dictionary style */
}

.furbish-word {
  font-size: 2rem;
  color: #d100d1;
  margin: 0 0 10px;       /* no extra top gap */
  text-shadow: 1px 1px 3px #ffb6c1;
  text-align: left;       /* override any inherited center */
}

.entry-details {

  padding-top: 12px;
  text-align: left;
}

.entry-details p {
  font-size: 1.2em;
  margin: 10px 0;
}

.entry-senses { 
  line-height: 1.6; 
  margin: 12px 0 8px; 
  padding-left: 2rem; /* increased left indent */
  padding-left: 1.4rem; /* standard ol indent */
}
.entry-sense { 
  margin: 10px 0; 
}

.entry-pos {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.85em;
  font-style: normal;         /* not italic */
  color: #5a2a7a;
  background: #f3e7ff;
  border: 1px solid #d6b7ff;
  border-radius: 999px;       /* pill */
}

.entry-sense-sources { 
  margin-top: 6px; 
}
.entry-sense-sources small { 
  color: #333; 
}
.entry-sense-sources a { 
  color: #5500aa; 
  text-decoration: none; 
}

.entry-sources { 
  margin-top: 10px; 
  text-align: left;           /* left, not right */
}
.entry-sources strong { 
  display: block; 
  margin-bottom: 6px; 
}
.entry-sources ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  line-height: 1.6; 
}
.entry-sources li { 
  margin: 2px 0; 
}
.entry-sources a { 
  color: #4b0082;             /* deep purple */
  text-decoration: underline; 
}

/* Retro pattern border */
.patterned-border {
  border: 6px solid transparent;
  border-image: url(/assets/pattern.png) 30 round;
}

/* Smaller, lighter text for morphology */
.small-light {
  font-size: 1px;
  color: #777;
  font-style: italic;
}

/* Larger, bolder English translation */
.large-bold {
  font-size: 1.4em;
  font-weight: bold;
  color: #222;
}

/* === Retro Styling for Example examples === */

.entry-examples {

  padding: 16px;
  margin-top: 30px;
  border-radius: 12px;
  text-align: center;
}

.entry-examples strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #d100d1;
  text-shadow: 1px 1px 2px #ffb6c1;
}

.example-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-example {
  margin-bottom: 1.8em;
  padding: 12px;
  background: #fff7fb;
  border: 2px dashed #d100d1;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(240, 0, 200, 0.25);
  display: inline-block;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.example-example .furbish-word {
  font-size: 1.6em;
  font-weight: bold;
  color: #800080;
  text-shadow: 1px 1px #ffb6c1;
  margin-bottom: 4px;
}

.example-example .morphology {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  margin-bottom: 4px;
}

.example-example .translation {
  font-size: 1em;
  color: #222;
  font-weight: bold;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.word-button {
  display: block;
  border: 2px dotted hotpink;
  background-color: #ffe6f0;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  color: inherit;
}

/* Card grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}

/* Individual card */
.card {
  background: #ffe4f2;
  border: 4px ridge #ff69b4;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

/* Title link inside card */
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.card h3 a {
  color: #d100d1;
  text-decoration: none;
  text-shadow: 1px 1px 2px #ffb6c1;
}

/* Hover / focus effects */
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 6px 8px 18px rgba(0,0,0,0.16);
  border-color: #d100d1;
}

/* Body text inside card */
.card p {
  margin: 0;
  font-size: 0.98rem;
}

/* Optional: make the link look like a button on hover */
.furby-link:hover,
.furby-link:focus {
  text-decoration: underline;
}

.retro-input{
  border: 2px solid #000;
  background: #fff;
  padding: 6px 8px;
  box-shadow: 2px 2px 0 #000;
  font: inherit;
}
.retro-input:focus{ outline: 3px dashed #000; outline-offset: 2px; }

.dict-search{ margin: 6px 0 12px; }

  /* Row: input (80%) + button */
  .dict-search__row{
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Make input take ~80% of the viewport width but never exceed the container */
  .dict-search__input{
    flex: 1 1 auto;
    width: 80vw;            /* target ~80% of the screen */
    max-width: 80vw;        /* keep it around that size */
    min-width: 240px;       /* don’t get too tiny */
  }

  /* Second line: results + clear link */
  .dict-search__meta{
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 700;
  }

  .dict-clear{
    text-decoration: underline;
  }

  /* Stylized retro button */
  .dict-btn{
    border: 2px solid #000;
    padding: 8px 16px;
    font-weight: 800;
    cursor: pointer;
    background:
      repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 8px, rgba(255,255,255,0) 8px 16px),
      linear-gradient(180deg, #e7d5ff, #c9a9ff 70%, #b08bff);
    box-shadow: 3px 3px 0 #000;
  }
  .dict-btn:active{ transform: translate(3px,3px); box-shadow: none; }

  /* Keep things comfy on small screens */
  @media (max-width: 520px){
    .dict-search__input{ width: 100%; max-width: 100%; }
  }
.morpheme-breakdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  gap: 12px;
}

.morpheme-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.morph-title {
  margin-bottom: 1rem;
  text-align: center;
}

.morpheme-block {
  border: 1px solid #ccc;
  padding: 0.5rem;
  margin: 0.5rem;
  text-align: center;
  min-width: 80px;
  display: inline-block;
}

.morpheme-card {
  background-color: #ffe4f2;
  border: 3px dotted #ff69b4;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 2px 2px 8px #ffb6c1;
  display: inline-block;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  width: fit-content;
  max-width: 100%;
}
.morpheme-breakdown-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #800080;
}

.morpheme-form {
  font-size: 1.3em;
  font-weight: bold;
  color: #800080;
}

.morpheme-gloss {
  font-size: 0.9em;
  font-style: italic;
  color: #555;
}

.morpheme-meaning {
  font-size: 1.1em;
  margin-top: 4px;
}

.morpheme-card.pronoun {
  background-color: #fbeaff;
  border-color: #d18eff;
  color: #800080;
}

.morpheme-card.verb {
  background-color: #fff3e0;
  border-color: #ffc96c;
  color: #cc6600;
}

.morpheme-card.adjective {
  background-color: #e6fff2;
  border-color: #66ffc2;
  color: #008066;
}

.morpheme-card.emotion {
  background-color: #ffe6f0;
  border-color: #ff99c8;
  color: #cc0066;
}

.morpheme-card.location {
  background-color: #e6f7ff;
  border-color: #66ccff;
  color: #005577;
}

.morpheme-card.function {
  background-color: #f9f9f9;
  border-color: #dddddd;
  color: #333;
}



.morpheme-example-form {
  font-size: 1.1em;        /* was 1.3em */
  font-weight: 600;        /* slightly lighter than bold */
  color: #6a1b9a;          /* softer purple for readability */
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.morpheme-example-meaning {
  font-size: 0.95em;       /* was 1.1em */
  line-height: 1.35;
  color: #444;             /* calmer body text */
  text-align: center;
  margin-top: 2px;         /* was 4px */
}

.morpheme-example-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;                /* was 12px */
  row-gap: 10px;
  padding: 6px 0;
  max-width: 960px;        /* keeps lines from stretching too wide */
  margin: 0 auto;          /* centers the row */
}
/* 90s Furby navbar vibes */
.furby-navbar {
  --furby-pink: #ff5fd2;
  --furby-lilac: #c79cff;
  --furby-yellow: #fff176;
  --furby-cyan: #7ff7ff;

  background:
    radial-gradient(circle at 20% 20%, rgba(255,95,210,0.25), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(199,156,255,0.25), transparent 50%),
    radial-gradient(circle at 70% 85%, rgba(127,247,255,0.25), transparent 50%),
    #fff9ff; /* light background, per your preference */
  border-bottom: 6px double var(--furby-lilac);
  text-align: center;
  padding: 18px 12px 8px;
}

.furby-navbar__inner {
  max-width: 980px;
  margin: 0 auto;
}

.furby-navbar__gif {
  display: block;
  margin: 0 auto 10px;
  image-rendering: pixelated; /* retro feel on some browsers */
  width: 120px;
  height: auto;
}

.furby-navbar__title {
  font-size: 56px;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow:
    2px 2px 0 #000,
    -2px -2px 0 #000,
    0 0 10px var(--furby-pink),
    0 0 20px var(--furby-cyan);
  color: #ffffff;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--furby-pink), var(--furby-lilac), var(--furby-cyan));
  border: 3px dashed #fff;
}

.furby-navbar__tagline {
  margin: 8px auto 16px;
  max-width: 740px;
  font-size: 16px;
  color: #6b40a6;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px dotted var(--furby-yellow);
}

.furby-navbar__links {
  list-style: none;
  padding: 0;
  margin: 0 auto 6px;
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.furby-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
  font-weight: bold;
  color: #5b1aa3;
  background:
    repeating-linear-gradient(
      45deg,
      #ffe4fb 0 6px,
      #f8d9ff 6px 12px
    );
  border: 3px ridge var(--furby-lilac);
  border-radius: 12px;
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.9),
    0 3px 0 #a677ff,
    0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.05s ease-in-out;
}

.furby-link:hover,
.furby-link:focus {
  transform: translateY(-2px) rotate(-1deg);
  outline: none;
  background:
    repeating-linear-gradient(
      45deg,
      #fff2fd 0 6px,
      #ffe6ff 6px 12px
    );
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 1),
    0 4px 0 #8f5cff,
    0 8px 14px rgba(0,0,0,0.12);
}

/* tiny screen tweaks */
@media (max-width: 480px) {
  .furby-navbar__title { font-size: 42px; }
  .furby-navbar__gif { width: 96px; }
}
  /* Quiz page (no Tailwind) */
  .quiz-frame { max-width: 80%; margin: 2rem auto; padding: 1.25rem; border: 4px solid #3b82f6; background: linear-gradient(135deg, #fff7e6, #ffe6f7); box-sizing: border-box; overflow: hidden; position: relative; }
  .quiz-progress { margin-bottom: 0.75rem; font-size: 0.95rem; color: darkgray; text-align: center; }
  form { margin: 0; }
  .quiz-title { text-align: center; color: #0047AB; font-weight: 800; font-size: 2rem; }
  .quiz-word { text-align: center; color: #6A0DAD; margin: 4rem 0 4rem; font-weight: 800; letter-spacing: 0.06em; font-size: clamp(2.25rem, 6vw, 4rem); }
  .quiz-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; margin-top: 1rem; }
  .quiz-card { width: 100%; aspect-ratio: 3 / 2; max-height: 120px; display: block; }
  .quiz-card form { height: 100%; display: block; }
  .quiz-button { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: clamp(0.85rem, 2vw, 1rem); border: 4px solid #3b82f6; border-radius: 14px; background: #fff7b3; box-shadow: 0 6px 0 rgba(0,0,0,0.2), 0 0 0 3px rgba(59,130,246,0.1) inset; cursor: pointer; padding: 2px; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; max-width: 100%; box-sizing: border-box; }
  .quiz-button:hover { background: #ffdd99; box-shadow: 0 10px 0 rgba(0,0,0,0.2), 0 0 0 3px rgba(59,130,246,0.15) inset; }
  .quiz-button:active { transform: translateY(2px); box-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 0 0 3px rgba(59,130,246,0.18) inset; }
  .quiz-button span { white-space: normal; word-break: break-word; }
  .quiz-word.blinking-text { animation: none !important; }
  .quiz-feedback { margin: 0.5rem auto 1.25rem; padding: 0.6rem 0.9rem; border: 4px solid; border-radius: 12px; max-width: 540px; text-align: center; font-weight: 700; }
  .quiz-feedback.correct { border-color: #16a34a; background: #eaffea; }
  .quiz-feedback.wrong { border-color: #dc2626; background: #ffecec; }
  .quiz-hint { max-width: 640px; margin: 0.75rem auto 1.25rem; padding: 0.75rem 1rem; border: 3px dashed #8b5cf6; border-radius: 12px; background: #e6fff9; font-size: 0.95rem; }
  .quiz-hint-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; margin-bottom: 0.4rem; color: #5b21b6; }
  .quiz-hint-button { display:inline-block; padding: 8px 14px; border: 3px solid #8b5cf6; border-radius: 12px; background: #ffd6e0; cursor: pointer; font-weight: 800; letter-spacing: 0.03em; }
  .quiz-hint-button:hover { background: #ffbfd4; }
  .is-hidden { display: none; }
  .retro-back-button {
    top: 1rem;
    left: 1rem;
    padding: 8px 14px;
    border: 4px solid #3b82f6;
    border-radius: 12px;
    background: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    color: #3b82f6;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2), 0 0 0 3px rgba(59,130,246,0.1) inset;
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  }
  .retro-back-button:hover {
    background: #fff3bf;
    box-shadow: 0 6px 0 rgba(0,0,0,0.2), 0 0 0 3px rgba(59,130,246,0.15) inset;
  }
  .retro-back-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.25), 0 0 0 3px rgba(59,130,246,0.18) inset;
  }

    .lessons-wrap { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; font-family: inherit; }
  .lessons-title { text-align: center; font-size: 3rem; margin-bottom: 1.5rem; }
  .lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
  .lesson-card { position: relative; border: 4px solid #000; background: #fff9cc; border-radius: 14px; box-shadow: 0 6px 0 rgba(0,0,0,0.2); padding: 14px; min-height: 200px; display: flex; flex-direction: column; }
  .lesson-card.completed { background: #eaffea; border-color: #16a34a; }
  .lesson-title { font-size: 1.15rem; font-weight: 800; text-align: center; margin: 0 0 0.25rem; }
  .lesson-desc { font-size: 0.8rem; color: #444; text-align: center; margin: 0.25rem 0 0.75rem; }
  .progress-row { margin-top: auto; }
  .progress-label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
  .bar { width: 100%; height: 14px; border: 3px solid #000; border-radius: 10px; background: #fff; overflow: hidden; }
  .fill { height: 100%; background: linear-gradient(90deg, #34d399, #10b981); }
  .pct { font-weight: 800; }
  .start-btn { margin-top: 12px; align-self: center; display: inline-block; padding: 8px 14px; border: 4px solid #3b82f6; border-radius: 12px; background: #ffffff; text-decoration: none; font-weight: 800; }
  .start-btn:hover { background: #fff3bf; }
  .badge { position: center; top: 10px; right: 10px; padding: 4px 4px; margin: 4px; border: 3px solid #16a34a; border-radius: 12px; background: #eaffea; font-weight: 800; font-size: 0.85rem; }
  .cert-wrap { text-align:center; margin-bottom: 1rem; }
  .cert-btn { display:inline-block; padding: 10px 16px; border: 4px solid #3b82f6; border-radius: 12px; background: #ffffff; text-decoration: none; font-weight: 800; }
  .cert-btn:hover { background: #fff3bf; }
  .lessons-intro { font-size: 0.75rem; color: #333; line-height: 1.6; margin-bottom: 1.5rem; }

  /* Retro modal (hidden by default) */
.retro-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;               /* <-- hide initially */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
}
.retro-modal-overlay.is-open { display: flex; }  /* <-- show when opened */

.retro-modal {
  width: min(480px, 92%);
  background: #fffef5;
  border: 6px solid #000;
  border-radius: 14px;
  box-shadow: 0 10px 0 rgba(0,0,0,0.25);
  transform: rotate(-0.7deg);
}

.retro-modal-header {
  padding: 10px 14px;
  border-bottom: 4px solid #000;
  background: linear-gradient(45deg, #ffeb3b, #ffd1dc);
  display: flex; align-items: center; justify-content: space-between;
}
.retro-modal-title { font-weight: 900; font-size: 1.1rem; }
.retro-modal-close { background:#fff; border:3px solid #000; border-radius:8px; font-weight:900; padding:4px 8px; cursor:pointer; }

.retro-modal-body { padding: 14px; }
.retro-field { margin: 10px 0 6px; font-weight: 800; }
.retro-input { width:100%; padding:8px 10px; border:3px solid #000; border-radius:10px; font-weight:700; background:#fff; }

.retro-modal-actions {
  display:flex; gap:10px; justify-content:flex-end;
  padding:12px 14px; border-top:4px solid #000; background:#fff;
}
.btn-retro {
  padding: 8px 14px; border: 4px solid #000; border-radius: 12px;
  background: #fff; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.btn-retro:hover { background: #fff3bf; }
.btn-retro:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.btn-primary { border-color: #3b82f6; }
.btn-danger  { border-color: #ef4444; }
/* ===== Toolbar ===== */
.retro-toolbar{
  display:flex; gap:8px; flex-wrap:wrap;
  padding:8px 12px;
}
.retro-toolbar .tool{
  display:inline-block;
  padding:6px 10px;
  border:2px solid #000;
  background:#fff;
  box-shadow: 2px 2px 0 #000;
  text-decoration:none; color:#000; font-weight:700;
}
.retro-toolbar .tool:hover{ background:#ffffee; }
.retro-toolbar .tool:active{ transform: translate(2px,2px); box-shadow:none; }
.retro-toolbar .tool.active{ background:#e0e8ff; }

/* ===== Window Titlebar ===== */
.retro-titlebar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  border-radius: 0;
  z-index: 30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  background: linear-gradient(180deg, violet 0%, lavender 100%);
  border-bottom: 3px solid #9a9ad1;
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 0 rgba(0,0,0,.12),
    0 8px 0 rgba(0,0,0,.06);
}

.retro-title{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.3px;
  text-shadow: 1px 1px 0 #fff;
}

.retro-led{
  width:12px; height:12px; border-radius:2px;
  background: rgb(241, 9, 156);
  /* box-shadow: 0 0 8px rgb(255, 0, 162), inset 0 -1px 0 #070; */
}

/* window control buttons */
.retro-controls{ display:flex; gap:6px; }
.retro-btn,
a.retro-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  width:28px;
  height:22px;
  border:2px solid #000;
  background:#fefefe;
  box-shadow: 2px 2px 0 #000;
  line-height:1;
  cursor:pointer;
  color:inherit;
}

.retro-btn-long,
a.retro-btn-long{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  height:22px;
  border:2px solid #000;
  background:#fefefe;
  box-shadow: 2px 2px 0 #000;
  line-height:1;
  cursor:pointer;
  color:inherit;
}
.retro-btn:active,
a.retro-btn:active{ transform: translate(2px,2px); box-shadow:none; }
.retro-btn.danger,
a.retro-btn.danger{ background:#ffd6e9; }


/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
* {
  font-family: 'Press Start 2P', monospace;
}

body {
  cursor: url(/assets/cursor-3da2f51c7e2566bce1d60054cc9d9a8ecb24cee1e897c204b6df887e1e85653e.png) 4 4, auto;
}

[role="button"], [role="link"] {
  cursor: pointer;
}
