/**
 * Teach.Land
 * Stylesheet
 * Last updated: Fri 14 Aug 2026 12:35:36 PM EDT
*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  --ink: #1f2430;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: var(--ink);
  background: #fafafa;
}

header {
}

.hero {
  padding: 36px 24px 8px;
  text-align: center;
}

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

.site-logo {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.title-col {
  text-align: left;
}

.site-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-title .teach {
  color: #5aa0da;
}

.site-title .dot {
  color: #ff9142;
}

.site-title .land {
  color: #5aa0da;
}

.tagline {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.earn-line {
  margin-top: 44px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.banner {
  position: relative;
  top: -14px;
  margin: 0 auto 34px;
  width: fit-content;
  max-width: 90%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,1) 55%);
  color: #6b7280;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 38px;
  text-align: center;
  padding: 14px 100px 22px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 0 #d1d5db, 0 10px 16px rgba(0,0,0,0.06);
  z-index: 1;
}

.arrows {
  max-width: 900px;
  margin: 14px auto 0;
  padding: 0 24px;
}

.arrows svg {
  width: 100%;
  height: 90px;
  display: block;
}

.cards {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 20px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.explore-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.explore-more {
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7280;
  text-transform: uppercase;
  white-space: nowrap;
}

.explore-arrow {
  width: 90px;
  height: 20px;
  margin-top: 8px;
}

.card {
  border-radius: 26px;
  padding: 32px 16px 24px;
  text-align: center;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  text-decoration: none;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 6px 0 rgba(0,0,0,0.10),
    0 10px 20px rgba(0,0,0,0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.card:hover {
  transform: translateY(3px);
  filter: brightness(1.1);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.10),
    0 6px 12px rgba(0,0,0,0.10);
}

.icon-wrap {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card .icon {
  font-size: 56px;
  line-height: 1;
}

.card .icon-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.card-body {
  padding: 0;
}

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card.games{background:linear-gradient(160deg, #60a5fa, #2563eb);}
.card.skills{background:linear-gradient(160deg, #c084fc, #7c3aed);}
.card.typing{background:linear-gradient(160deg, #fb923c, #ea580c);}
.card.activities{background:linear-gradient(160deg, #60a5fa, #2563eb);}
.card.mouse{background:linear-gradient(160deg, #60a5fa, #2563eb);}
.card.coding{background:linear-gradient(160deg, #4ade80, #16a34a);}
.card.hardware{background:linear-gradient(160deg, #fb7185, #e11d48);}

.card.games .icon-wrap{background:#dbeafe;}
.card.skills .icon-wrap{background:#e6d8fc;}
.card.typing .icon-wrap{background:#ffe4c7;}
.card.activities .icon-wrap{background:#cfe6fb;}
.card.mouse .icon-wrap{background:#cfe6fb;}
.card.coding .icon-wrap{background:#d1f7db;}
.card.hardware .icon-wrap{background:#ffe4e6;}

.content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

footer {
   width: 100vw;
   position: relative;
   left: 50%;
   margin-left: -50vw;
   background: #111827;
   padding: 60px 0 32px;
   font-family: 'Nunito', sans-serif;
}

.footer-cols {
   max-width: 720px;
   margin: 0 auto;
   padding: 0 24px;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 32px;
   text-align: left;
}

.footer-col {
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.footer-col:nth-child(1) {
   align-items: flex-start;
   text-align: left;
}

.footer-col:nth-child(2) {
   align-items: center;
   text-align: center;
}

.footer-col:nth-child(3) {
   align-items: flex-end;
   text-align: right;
}

.footer-heading {
   font-family: 'Fredoka', sans-serif;
   font-weight: 600;
   font-size: 19px;
   color: #cbd2dc;
   margin-bottom: 4px;
}

.footer-col a {
   font-size: 16px;
   font-weight: 600;
   color: #9ca3af;
   text-decoration: none;
}

.footer-social {
   display: flex;
   align-items: center;
   gap: 8px;
}

.footer-col a:hover {
   color: #7db8f5;
   text-decoration: underline;
}

.footer-bottom {
   max-width: 720px;
   margin: 32px auto 0;
   padding: 0 24px;
   text-align: center;
   font-size: 16px;
   font-weight: 600;
   color: #9ca3af;
}

.footer-divider {
   width: 120px;
   height: 2px;
   background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
   margin: 0 auto 20px;
   border-radius: 2px;
}

@media (max-width: 640px) {
   .footer-cols {
      grid-template-columns: 1fr;
      gap: 24px;
   }
}

@media (max-width: 640px) {
  .site-title { font-size: 40px; }
  .site-logo { width: 90px; height: 90px; }
  .banner { font-size: 24px; padding: 28px 20px 16px; top: -14px; }
  .icon-wrap { width: 64px; height: 64px; }
  .cards { grid-template-columns: 1fr; }
  .explore-more-wrap { align-items: center; }
  .explore-arrow { display: none; }
  .card .icon { font-size: 32px; }
  .card h3 { font-size: 13px; }
}

/* Small header, interior pages */
.header-small {
  background: linear-gradient(120deg, #eaf4fd, #f3edfc);
}

.hero-small {
  padding: 18px 24px 12px;
  text-align: center;
}

.character-row-small {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.site-logo-small {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.site-title-small {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  margin: 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-title-small .teach {
  color: #5aa0da;
}

.site-title-small .dot {
  color: #ff9142;
}

.site-title-small .land {
  color: #5aa0da;
}

.tagline-small {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

.main-menu {
  background: #cfe6fb;
  text-align: center;
  padding: 14px 24px 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.main-menu a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-menu a:hover {
  color: #1e7fd6;
  border-bottom-color: #1e7fd6;
}

.main-menu a.active {
  color: #1e7fd6;
  border-bottom-color: #1e7fd6;
}

/* Interior content pages */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  text-align: left;
}

.breadcrumb {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.crumb-sep {
  margin: 0 6px;
}

.page-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--ink);
  margin-bottom: 16px;
}

.closing-motto {
  text-align: center;
  padding: 32px 24px 40px;
  margin-top: 8px;
}

.page-home .closing-motto {
  padding-bottom: 70px;
}

.closing-motto-line1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #4b5563;
  margin-bottom: 6px;
}

.closing-motto-line2 {
  font-size: 18px;
  color: var(--ink);
}

.page-home .closing-motto-line1 {
  font-size: 34px;
}

.page-home .closing-motto-line2 {
  font-size: 20px;
}

.page-lead {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}

.page-body {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 48px;
  line-height: 1.6;
}

.section-heading {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 14px;
  margin-top: 8px;
}

.explore-more-heading {
  margin-top: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 56px;
}

.why-card {
  border-radius: 18px;
  padding: 18px 18px;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 5px 0 rgba(0,0,0,0.10),
    0 8px 14px rgba(0,0,0,0.10);
}

.why-card .emoji {
  font-size: 26px;
  flex-shrink: 0;
}

.why-card p {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.why-card.c1 { background: linear-gradient(160deg, #ff9a3d, #f5760a); }
.why-card.c2 { background: linear-gradient(160deg, #a870f0, #8a3ff0); }
.why-card.c3 { background: linear-gradient(160deg, #4ade80, #16a34a); }
.why-card.c4 { background: linear-gradient(160deg, #4fa3e8, #1e7fd6); }

.step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.step-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #e6d8fc;
  margin-top: 2px;
}

.step-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-sub {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #e6d8fc;
}

.feature-text {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.page-body a,
.step-list a,
.feature-text a {
  color: #1e7fd6;
  font-weight: 700;
  text-decoration: none;
}

.page-body a:hover,
.step-list a:hover,
.feature-text a:hover {
  text-decoration: underline;
}

/* Privacy policy / legal pages */
.last-updated {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 28px;
}

.tldr-box {
  background: #fff;
  border-left: 5px solid #22c55e;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tldr-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.tldr-box ul {
  margin: 0;
  padding-left: 22px;
}

.tldr-box li {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.policy-list {
  margin: 0 0 28px;
  padding-left: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a3ff0;
}

.tldr-box a {
  color: #1e7fd6;
  font-weight: 700;
  text-decoration: none;
}

.tldr-box a:hover {
  text-decoration: underline;
}

/* New tab indicator */
a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  transform: translateY(-1px);
}

/* Contact form */
form {
  margin-top: 24px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #4fa3e8;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 40px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 0 #16a34a, 0 10px 16px rgba(22,163,74,0.25);
  transition: transform 0.15s ease;
}

form button:hover {
  transform: translateY(2px);
}

.form-success {
  background: #f0fdf4;
  border-left: 5px solid #22c55e;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.form-error {
  background: #fef2f2;
  border-left: 5px solid #ef4444;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Screen time tool callout */
.tool-box {
  background: linear-gradient(160deg, #4fa3e8, #1e7fd6);
  color: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 32px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.10), 0 10px 20px rgba(0,0,0,0.10);
}

.tool-box-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-box-icon {
  font-size: 34px;
  line-height: 1;
}

.tool-box p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.95;
}

.tool-box .tool-link {
  display: inline-block;
  background: #fff;
  color: #1e7fd6;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
}

.tool-box .tool-link:hover {
  text-decoration: underline;
}

/* Tools page nav cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.tool-card {
  border-radius: 22px;
  padding: 32px 16px;
  text-align: center;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 190px;
  box-shadow: 0 5px 0 rgba(0,0,0,0.10), 0 8px 14px rgba(0,0,0,0.10);
  transition: transform 0.15s ease;
}

.tool-card:hover {
  transform: translateY(2px);
}

.tool-card .tool-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.tool-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.tool-card.alarm { background: linear-gradient(160deg, #ff9a3d, #f5760a); }
.tool-card.alarm .tool-icon-wrap { background: #ffe0bd; }
.tool-card.stopwatch { background: linear-gradient(160deg, #a870f0, #8a3ff0); }
.tool-card.stopwatch .tool-icon-wrap { background: #e6d8fc; }
.tool-card.timer { background: linear-gradient(160deg, #4fa3e8, #1e7fd6); }
.tool-card.timer .tool-icon-wrap { background: #cfe6fb; }

a.tool-card::after {
  content: none;
}

/* Games hub */
.cat-section {
  margin-bottom: 48px;
}

.cat-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
}

.cat-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-divider span:nth-child(1) { background: #5aa0da; }
.cat-divider span:nth-child(2) { background: #9d7ce8; }
.cat-divider span:nth-child(3) { background: #ff9142; }
.cat-divider span:nth-child(4) { background: #22c55e; }

.cat-divider .cat-divider-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
}

.cat-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  background: #fff;
  border-left: 6px solid #9ca3af;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cat-section:nth-of-type(1) .cat-heading-row { border-left-color: #e8433a; }
.cat-section:nth-of-type(2) .cat-heading-row { border-left-color: #7c5cff; }
.cat-section:nth-of-type(3) .cat-heading-row { border-left-color: #f4a52c; }

.cat-heading {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 20px;
  border: 2px dashed #d1d5db;
  text-decoration: none;
  color: #1e7fd6;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.more-card:hover {
  background: #eaf4fd;
  border-color: #1e7fd6;
}

.cat-section:nth-of-type(1) .more-card:hover {
  background: #fde8e6;
  border-color: #e8433a;
  color: #e8433a;
}

.cat-section:nth-of-type(2) .more-card:hover {
  background: #f0ebfe;
  border-color: #7c5cff;
  color: #7c5cff;
}

.cat-section:nth-of-type(3) .more-card:hover {
  background: #fef3e0;
  border-color: #c2790a;
  color: #c2790a;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.more-arrow {
  font-size: 20px;
}

.cross-cat-grid {
  grid-template-columns: repeat(2, 1fr);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.game-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(2px);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}

.game-info {
  padding: 14px 16px 16px;
  text-align: center;
}

.game-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual game page */
.game-page {
  max-width: 960px;
}

.game-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.game-page-title {
  margin-bottom: 0;
}

.fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #22c55e;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 0 #16a34a;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.fullscreen-btn:hover {
  transform: translateY(1px);
}

.fullscreen-btn::after {
  content: none;
}

.game-frame-wrap {
  background: #23262e;
  border-radius: clamp(14px, 3vw, 28px);
  padding: clamp(10px, 2vw, 22px) clamp(10px, 2vw, 22px) clamp(20px, 4vw, 40px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.18), 0 14px 24px rgba(0,0,0,0.18);
  max-width: 100%;
  width: fit-content;
  margin: 0 auto;
  position: relative;
}

.game-frame {
  border: none;
  display: block;
  max-width: 100%;
  background: #000;
}

.tv-foot-row {
  position: absolute;
  bottom: clamp(4px, 1.2vw, 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-knob {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7280;
}

.tv-knob.blue { background: #5aa0da; }
.tv-knob.purple { background: #9d7ce8; }

.tv-speaker {
  display: flex;
  gap: 3px;
}

.tv-speaker span {
  width: 3px;
  height: 11px;
  background: #4b5563;
  border-radius: 2px;
}

.game-description {
  margin-top: 32px;
}

/* Game/skill page description & instructions - narrower reading width,
   matching the site's normal .page content column, independent of the
   wider .game-page container that holds the game frame itself. */
.game-content-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* Typing hub - accordion with letter/number outline style */
.accordion-item {
  border: 1px solid #e5e7eb;
  border-left: 6px solid #d1d5db;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow:
    0 6px 0 rgba(0,0,0,0.10),
    0 10px 20px rgba(0,0,0,0.10);
}

.accordion-item[open] {
  border-left-color: #f97316;
}

.accordion-item summary {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: var(--ink);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "▾";
  color: #9ca3af;
  font-size: 16px;
}

.accordion-item[open] summary {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-body {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accordion-body a {
  color: #1e7fd6;
  text-decoration: none;
  font-size: 17px;
  padding: 6px 0 6px 16px;
}

.accordion-body a:hover {
  text-decoration: underline;
}

.single-activity-wrap {
  display: flex;
  justify-content: flex-start;
}

.single-activity-wrap .card {
  max-width: 320px;
  width: 100%;
}

/* Hardware card slideshow */
.hw-slideshow {
  max-width: 600px;
  margin: 0 auto;
}

.hw-fullscreen-btn {
  display: block;
  margin: 10px auto 0;
  background: none;
  color: #6b7280;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 0;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.hw-fullscreen-btn:hover {
  color: #f97316;
}

.hw-slideshow:fullscreen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hw-slideshow:fullscreen .hw-slides {
  width: min(70vh, 90vw);
  height: min(100vh, 130vw);
  max-height: 80vh;
}

.hw-slides {
  position: relative;
  height: 500px;
}

.hw-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  border: 7px solid #d1d5db;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,0.10), 0 10px 20px rgba(0,0,0,0.10);
  opacity: 0;
  transform: scale(0.75) translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.hw-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.hw-slide-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 600;
  background: #f9fafb;
  padding: 16px;
  order: 2;
}

.hw-slide-text {
  padding: 16px 18px 20px;
  text-align: center;
  order: 1;
}

.hw-slide-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--ink);
  margin: 0 0 10px;
}

.hw-slide-desc {
  font-size: 24px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* Rotating border colors per slide, Pokemon-card style */
.hw-slide[data-index="0"] { border-color: #2563eb; }
.hw-slide[data-index="1"] { border-color: #d97706; }
.hw-slide[data-index="2"] { border-color: #f97316; }
.hw-slide[data-index="3"] { border-color: #8a3ff0; }
.hw-slide[data-index="4"] { border-color: #22c55e; }
.hw-slide[data-index="5"] { border-color: #ec4899; }
.hw-slide[data-index="6"] { border-color: #14b8a6; }
.hw-slide[data-index="7"] { border-color: #ef4444; }
.hw-slide[data-index="8"] { border-color: #6366f1; }
.hw-slide[data-index="9"] { border-color: #0891b2; }

.hw-slide[data-index="0"] .hw-slide-text { background: #dbeafe; }
.hw-slide[data-index="1"] .hw-slide-text { background: #fef3c7; }
.hw-slide[data-index="2"] .hw-slide-text { background: #ffe4c7; }
.hw-slide[data-index="3"] .hw-slide-text { background: #e6d8fc; }
.hw-slide[data-index="4"] .hw-slide-text { background: #d1f7db; }
.hw-slide[data-index="5"] .hw-slide-text { background: #fce0ee; }
.hw-slide[data-index="6"] .hw-slide-text { background: #ccfbf1; }
.hw-slide[data-index="7"] .hw-slide-text { background: #fee2e2; }
.hw-slide[data-index="8"] .hw-slide-text { background: #e0e7ff; }
.hw-slide[data-index="9"] .hw-slide-text { background: #cffafe; }

.hw-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
}

.hw-arrow {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(160deg, #fb923c, #f97316);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 #c2560a;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hw-arrow:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c2560a;
}

.hw-arrow svg {
  width: 30px;
  height: 30px;
}

.hw-dots {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 380px;
}

.hw-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hw-dot.active {
  background: #f97316;
  transform: scale(1.3);
}

/* Help Cody hub page */
.cody-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.cody-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 3px solid #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cody-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.chevron-arrow {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #c3c9d4;
  flex-shrink: 0;
}

.step-circle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 21px;
  text-decoration: none;
  flex-shrink: 0;
}

.step-circle:hover {
  background: #22c55e;
}

.step-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2430;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.step-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2430;
}

.step-circle:hover .step-tooltip {
  opacity: 1;
}

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

.step-detail-list li {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #d1d5db;
}

.step-detail-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.try-it-link {
  color: #1e7fd6;
  font-weight: 700;
  text-decoration: none;
}

.try-it-link:hover {
  text-decoration: underline;
}

.step-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.step-detail-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: #16a34a;
}

.step-detail-main {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.step-detail-sub {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

/* Quiet homepage tools callout */
.quiet-tools-cta {
  text-align: center;
  padding: 0 24px 48px;
}

.quiet-tools-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.quiet-tools-btn {
  display: inline-block;
  background: #eaf4fd;
  color: #1e7fd6;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.quiet-tools-btn:hover {
  background: #d7e8fb;
  transform: translateY(1px);
}

/* Hardware hub - two-card layout with connecting arrow, same visual
   pattern as the homepage's card row but sized for exactly 2 cards. */
.check-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .check-pair { grid-template-columns: 1fr; }
  .check-pair .explore-arrow { display: none; }
}

/* Flashcards page - same rotating border colors as Meet Your Computer,
   but keyed on data-part so a part's quiz slide and its answer slide
   share the same color instead of each of the 20 slides getting its
   own color based on position. */
.hw-slide[data-part="0"] { border-color: #2563eb; }
.hw-slide[data-part="1"] { border-color: #d97706; }
.hw-slide[data-part="2"] { border-color: #f97316; }
.hw-slide[data-part="3"] { border-color: #8a3ff0; }
.hw-slide[data-part="4"] { border-color: #22c55e; }
.hw-slide[data-part="5"] { border-color: #ec4899; }
.hw-slide[data-part="6"] { border-color: #14b8a6; }
.hw-slide[data-part="7"] { border-color: #ef4444; }
.hw-slide[data-part="8"] { border-color: #6366f1; }
.hw-slide[data-part="9"] { border-color: #0891b2; }

.hw-slide[data-part="0"] .hw-slide-text { background: #dbeafe; }
.hw-slide[data-part="1"] .hw-slide-text { background: #fef3c7; }
.hw-slide[data-part="2"] .hw-slide-text { background: #ffe4c7; }
.hw-slide[data-part="3"] .hw-slide-text { background: #e6d8fc; }
.hw-slide[data-part="4"] .hw-slide-text { background: #d1f7db; }
.hw-slide[data-part="5"] .hw-slide-text { background: #fce0ee; }
.hw-slide[data-part="6"] .hw-slide-text { background: #ccfbf1; }
.hw-slide[data-part="7"] .hw-slide-text { background: #fee2e2; }
.hw-slide[data-part="8"] .hw-slide-text { background: #e0e7ff; }
.hw-slide[data-part="9"] .hw-slide-text { background: #cffafe; }