/* Colours and layout for the learner practice page. */
:root {
  --blue: #1472ff;
  --navy: #0b1f3a;
  --copy: #4a5568;
  --pale: #f5f9ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: var(--pale);
  color: var(--copy);
}

button, a {
  font: inherit;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #0b1f3a;
  outline-offset: 3px;
}

header {
  height: 76px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #e4ebf3;
  display: flex;
  align-items: center;
  padding: 0 6%;
  gap: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand svg {
  width: 35px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
}

nav {
  height: 100%;
  display: flex;
  gap: 34px;
}

nav a {
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
  color: #566983;
}

nav a.active {
  color: var(--blue);
  font-weight: 700;
}

nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
}

.user {
  margin-left: auto;
  color: #62748b;
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 36px 20px 28px;
}

.hero p, .current small {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero h1 {
  margin: 10px 0;
  color: var(--navy);
  font-size: 44px;
}

.hero > span {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 16px;
}

.hero button {
  display: block;
  margin: 22px auto 0;
  border: 0;
  border-radius: 30px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 9px 18px #1472ff35;
}

/* Practice workspace card layout */
.practice-card {
  max-width: 1250px;
  margin: 0 auto 55px;
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: 15px;
  box-shadow: 0 15px 32px #173a660d;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
}

.camera-side {
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.camera-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.camera-header-row h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.camera-side > h2 {
  color: var(--navy);
  font-size: 18px;
  margin: 0 0 12px;
}

.camera-pip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #cfe2f8;
  border-radius: 8px;
  background: #f0f7ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.camera-pip-toggle:hover {
  background: #e2effe;
  border-color: var(--blue);
}

.camera-pip-toggle.active,
.camera-pip-toggle[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.camera {
  height: 460px;
  position: relative;
  background: #1c2834;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #dce7ef;
}

.camera video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera #live {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 20px;
  background: #182533d9;
  color: #fff;
}

.camera #live i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #48df88;
  border-radius: 50%;
  margin-right: 6px;
}

.camera-pip-container {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  width: 150px;
  border-radius: 10px;
  background: #0b1f3aee;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.camera-pip-container[hidden] {
  display: none !important;
}

.camera-pip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: rgba(11, 31, 58, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.camera-pip-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.camera-pip-close:hover {
  color: #fca5a5;
}

.camera-pip-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camera-pip-preview video,
.camera-pip-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.camera > b {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111c27d9;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}

.sign-side {
  padding: 28px 26px;
  border-right: 1px solid #e4edf5;
  text-align: left;
}

.current, .info {
  background: #f0f7ff;
  border-radius: 12px;
  padding: 18px;
}

.current small {
  letter-spacing: 0;
  text-transform: none;
}

.current h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.25;
}

.sign-side video {
  width: 100%;
  min-height: 220px;
  margin: 15px 0;
  background: #edf3fb;
  border-radius: 12px;
}

.info {
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: flex-start;
  margin-top: 14px;
}

.info b {
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
}

.info p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  color: var(--copy);
}

.info strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 14px;
}

.sign-side > #feedback {
  background: #e4f7e9;
  color: #246a43;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  margin-bottom: 12px;
}

.sign-side > #feedback.error {
  background: #fff0ed;
  color: #87371f;
}

.sign-select {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  text-align: left;
  color: var(--copy);
  font-weight: 700;
}

.sign-select select {
  padding: 10px 12px;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
}

.sign-side > #sample-video-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 15px 0;
  padding: 20px;
  background: #edf3fb;
  border-radius: 12px;
  color: var(--copy);
}

.sign-side > #sample-video-fallback[hidden] {
  display: none;
}

.tips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 19px;
}

.tips button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #dce9fa;
}

.tips button.active {
  background: var(--blue);
}

dialog#completion-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #d9e5f2;
  border-radius: 16px;
  color: var(--navy);
  box-shadow: 0 20px 60px #10213b33;
  position: fixed;
  margin: auto;
  background: #fff;
}

dialog#completion-dialog::backdrop {
  background: #10213b88;
}

dialog#completion-dialog h2 {
  margin-top: 0;
}

dialog#completion-dialog p {
  font-size: 1.1rem;
  font-weight: 700;
}

dialog#completion-dialog button {
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

dialog#completion-dialog:not([open]) {
  display: none;
}

.practice-session-note {
  max-width: 760px;
  margin: 16px auto 0;
  color: #536a90;
  font-size: .88rem;
  line-height: 1.5;
}

.learning-context {
  max-width: 1250px;
  margin: 0 auto 24px;
  padding: 20px 25px;
  border: 1px solid #cfe2f8;
  border-radius: 13px;
  background: #f0f7ff;
}

.learning-context .tagline {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 13px;
}

.learning-context h2 {
  margin: 7px 0;
  color: var(--navy);
  text-transform: capitalize;
}

.learning-context p:not(.tagline) {
  line-height: 1.5;
}

.learning-context a {
  color: var(--blue);
  font-weight: 800;
}

.hand-requirement, .practice-score {
  padding: 10px 14px;
  border-radius: 9px;
  background: #f0f7ff;
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.45;
  margin-top: 12px;
}

.practice-score strong {
  color: var(--blue);
  font-size: 1.1rem;
}

.sign-side > #feedback[hidden], .next-attempt[hidden] {
  display: none;
}

.next-attempt {
  margin-top: 12px;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.next-attempt:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.hero #retry-camera {
  margin: 12px auto 0;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.hero #retry-camera[hidden] {
  display: none;
}

.sign-reference {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dce9f8;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.sign-reference h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
}

.sign-reference-preview:empty {
  display: none;
}

.sign-reference-preview img, .sign-reference-preview video {
  display: block;
  width: 100%;
  max-height: 300px;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 9px;
  background: #f0f4f9;
}

.sign-reference-preview video {
  height: auto;
}

.sign-reference-preview p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.sign-reference #sign-reference-status {
  margin: 0;
  color: var(--copy);
  font-size: 14px;
  line-height: 1.5;
}

.sign-reference #sign-reference-status[hidden] {
  display: none;
}

.practice-mode-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
}

.hero .practice-mode-switch button {
  min-height: 44px;
  margin: 0;
  padding: 11px 20px;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--navy);
  box-shadow: none;
  cursor: pointer;
}

.hero .practice-mode-switch button[aria-selected=true] {
  background: var(--blue);
  color: #fff;
}

.hero .practice-mode-switch button:focus-visible, .quiz-actions button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.quiz-tagline {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.quiz-panel > h2 {
  color: var(--navy);
}

.quiz-progress {
  color: var(--blue);
  font-weight: 750;
}

.quiz-demonstration {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dce9f8;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.quiz-demonstration h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
}

.quiz-demonstration video, .quiz-demonstration img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 9px;
  background: #1c2834;
}

.quiz-demonstration video[hidden], .quiz-demonstration img[hidden] {
  display: none;
}

.quiz-demonstration p {
  line-height: 1.5;
}

.quiz-panel > #quiz-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  background: #e4f7e9;
  color: #246a43;
  text-align: left;
}

.quiz-panel > #quiz-feedback.error {
  background: #fff0ed;
  color: #87371f;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.quiz-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.quiz-actions button#quiz-show-demonstration, .quiz-actions button#quiz-repeat {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--blue);
}

.quiz-actions button[hidden] {
  display: none;
}

.hero #quiz-start-status {
  max-width: 38rem;
  margin: 10px auto 0;
  color: var(--copy);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.hero #quiz-start-status[hidden] {
  display: none;
}

.sign-step-carousel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background: #fff;
}

.sign-step-carousel img {
  display: block;
  width: 100%;
  max-height: 300px;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 9px;
  background: #f0f4f9;
}

.sign-step-frame-caption {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.sign-step-carousel-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sign-step-carousel-controls button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cfe2f8;
  border-radius: 8px;
  background: #f1f7ff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.sign-step-carousel-controls button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sign-suggestions {
  max-width: 1250px;
  margin: 0 auto 55px;
  padding: 24px 26px;
  border: 1px solid #e2ebf5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 15px 32px #173a660d;
}

.sign-suggestions h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.sign-suggestions > p {
  line-height: 1.55;
}

.sign-suggestions h3 {
  margin: 26px 0 6px;
  color: var(--navy);
  font-size: 18px;
}

#sign-suggestion-form {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin-top: 16px;
}

#sign-suggestion-form label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

#sign-suggestion-form input, #sign-suggestion-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c7d6e6;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

#sign-suggestion-form input:focus-visible, #sign-suggestion-form textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.experience-chooser, .experience-workspace {
  max-width: 1250px;
  margin: 0 auto 30px;
}

.experience-chooser {
  padding: 26px;
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: 15px;
  box-shadow: 0 15px 32px #173a660d;
}

.experience-chooser h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 25px;
}

.experience-chooser > p {
  line-height: 1.55;
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.experience-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
}

.experience-card > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
}

.experience-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}

.experience-card p {
  flex: 1;
  margin: 0 0 10px;
  line-height: 1.5;
}

.experience-card button, .activity-actions button, .visual-quiz-panel > button, .visual-quiz-panel > #visual-question > button, .visual-answer-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.experience-card button:disabled, .visual-quiz-panel button:disabled {
  background: #aab8c8;
  cursor: not-allowed;
}

.experience-card button:focus-visible, .activity-actions button:focus-visible, .visual-quiz-panel button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.spelling-availability {
  color: var(--copy);
  font-size: .92rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.activity-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.activity-actions[hidden] {
  display: none;
}

.activity-actions .activity-back {
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--navy);
}

#experience-workspace[hidden], #experience-chooser[hidden], #practice-content[hidden], #quiz-content[hidden], #visual-quiz-content[hidden], #camera-side[hidden] {
  display: none;
}

#experience-workspace .practice-card.visual-active {
  grid-template-columns: minmax(0, 1fr);
}

.practice-card.visual-active .camera-side {
  display: none;
}

.visual-quiz-panel > p:not(.quiz-tagline) {
  line-height: 1.5;
}

.visual-letter-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.visual-letter {
  margin: 0;
  padding: 8px;
  border: 1px solid #d5e1ed;
  border-radius: 11px;
  background: #fff;
  text-align: center;
}

.visual-letter.visual-word-end {
  margin-right: 16px;
}

.visual-letter img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 7px;
  background: #edf3fb;
}

.visual-digit {
  display: grid;
  width: 100%;
  height: 120px;
  place-items: center;
  border-radius: 7px;
  background: #edf3fb;
  color: var(--navy);
  font-size: 3rem;
  font-weight: 750;
}

.visual-letter figcaption {
  margin-top: 6px;
  color: #52606d;
  font-size: .82rem;
}

.visual-hint {
  color: #52606d;
}

#visual-answer {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #aeb9c5;
  border-radius: 8px;
  font: inherit;
}

.visual-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

#visual-submit {
  min-height: 44px;
}

#visual-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  background: #e4f7e9;
  color: #246a43;
  text-align: left;
}

#visual-feedback.error {
  background: #fff0ed;
  color: #87371f;
}

#visual-feedback[hidden] {
  display: none;
}

.visual-quiz-panel > #visual-question > button[hidden], .visual-answer-actions button[hidden] {
  display: none;
}

#sign-suggestion-form textarea {
  min-height: 96px;
  resize: vertical;
}

#submit-sign-suggestion {
  justify-self: start;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

#submit-sign-suggestion:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#sign-suggestion-status, #approved-suggestions-status {
  margin: 0;
  color: var(--copy);
  font-size: 14px;
  line-height: 1.5;
}

#sign-suggestion-status:empty, #approved-suggestions-status:empty {
  display: none;
}

#approved-suggestions-list {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.5;
}

#approved-suggestions-list li {
  margin-bottom: 10px;
}

#approved-suggestions-list li strong {
  color: var(--navy);
}

#approved-suggestions-list li span {
  color: #536a90;
  font-size: 14px;
}

#approved-suggestions-list li p {
  margin: 4px 0 0;
  font-size: 14px;
}

/* Responsive styles for tablet and mobile */
@media (max-width: 760px) {
  header {
    padding: 0 16px;
    gap: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .brand svg {
    width: 27px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 12px;
  }

  .hero {
    padding: 24px 14px 20px;
  }
  .hero h1 {
    font-size: 32px;
    margin: 8px 0;
  }
  .hero > span {
    font-size: 15px;
    line-height: 1.5;
  }
  .hero .practice-mode-switch button {
    padding: 10px 14px;
  }

  .learning-context {
    margin: 0 12px 20px;
    padding: 16px;
  }

  .experience-chooser, .experience-workspace, .sign-suggestions {
    margin-right: 12px;
    margin-left: 12px;
  }
  .experience-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .experience-card {
    padding: 16px;
  }

  .practice-card {
    margin: 0 12px 28px;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .camera-side {
    order: -1;
    padding: 16px;
    border-bottom: 1px solid #e4edf5;
  }
  .camera {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 48vh;
    min-height: 250px;
    border-radius: 10px;
  }
  .camera-pip-container {
    width: 120px;
    top: 10px;
    left: 10px;
  }
  .camera > b {
    padding: 10px 14px;
    font-size: 12px;
  }

  .sign-side {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 18px 16px;
    text-align: left;
  }
  .current {
    padding: 14px;
  }
  .current h2 {
    font-size: 26px;
  }
  .info {
    padding: 14px;
    font-size: 13px;
  }
  .info b {
    flex: 0 0 20px;
  }

  .sign-reference {
    padding: 12px;
    margin: 12px 0;
  }
  .sign-reference-preview img,
  .sign-reference-preview video {
    max-height: 220px;
  }

  .visual-letter-sequence {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .visual-letter {
    flex: 0 0 85px;
    scroll-snap-align: start;
    padding: 6px;
  }
  .visual-letter img {
    height: 95px;
  }
  .visual-digit {
    height: 95px;
    font-size: 2.2rem;
  }

  .activity-actions {
    flex-direction: column;
  }
  .activity-actions button {
    width: 100%;
  }
  .quiz-actions {
    flex-direction: column;
  }
  .quiz-actions button {
    width: 100%;
  }

  .sign-suggestions {
    margin: 0 12px 20px;
    padding: 18px 16px;
  }
  #submit-sign-suggestion {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 12px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  nav {
    gap: 10px;
  }
  nav a {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .camera-pip-container {
    width: 110px;
  }
  .current h2 {
    font-size: 22px;
  }
  .camera-header-row h2 {
    font-size: 16px;
  }
  .camera-pip-toggle {
    font-size: 12px;
    padding: 4px 10px;
  }
}
