:root {
  --aiq-ink: #243541;
  --aiq-blue: #2f80ed;
  --aiq-blue-dark: #155bb5;
  --aiq-gold: #ffc83d;
  --aiq-cream: #fff9e9;
  --aiq-paper: #fffdf7;
  --aiq-danger: #bc4d52;
  --aiq-shadow: 0 18px 45px rgba(23, 59, 87, .18);
}

body.aiq-course-page #primary,
body.aiq-course-page .content-area,
body.aiq-course-page .site-main,
body.aiq-course-page .content-container,
body.aiq-course-page .entry-content,
body.aiq-course-page .entry-content-wrap {
  width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
}
body.aiq-course-page .content-bg,
body.aiq-course-page article.entry { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.aiq-course-page .entry-header { display: none !important; }

body.aiq-modal-open { overflow: hidden; }
.aiq-app, .aiq-app * { box-sizing: border-box; }
.aiq-app {
  width: 100vw; max-width: none; min-height: 100vh; margin-left: calc(50% - 50vw);
  color: var(--aiq-ink);
  background: linear-gradient(180deg, #dff5ff 0, #f7efd9 72%, #e7dec8 100%);
  font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  overflow: hidden;
}
.aiq-hud {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px clamp(15px, 4vw, 38px);
  background: #ffc83d; border-bottom: 1px solid #dea51a;
  box-shadow: 0 3px 12px rgba(91, 62, 3, .14);
}
.aiq-brand { position: relative; display: flex; align-items: center; min-height: 42px; padding-left: 78px; }
.aiq-brand-mascot {
  position: absolute; z-index: 22; left: -4px; top: 50%; display: block; width: 78px; height: 108px;
  transform: translateY(-39%); pointer-events: none;
}
.aiq-brand-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(23,59,87,.3)); }
.aiq-badge > span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: white; background: linear-gradient(145deg, #20c7e8, #287be6); font-weight: 900;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.35), 0 4px 10px rgba(25,92,181,.24);
}
.aiq-brand strong, .aiq-brand small { display: block; line-height: 1.15; }
.aiq-brand strong { font-size: 18px; }
.aiq-brand small { margin-top: 3px; font-size: 11px; color: #66501b; }
.aiq-stats { display: flex; gap: 8px; }
.aiq-stats span { padding: 7px 10px; border-radius: 12px; color: #173b57; background: rgba(255,255,255,.78); font-size: 13px; }
.aiq-stats span:last-child { color: #6c4b00; background: rgba(255,249,225,.9); }
.aiq-backpack-button, .aiq-sound-button, .aiq-profile-switch { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 2px solid rgba(23,59,87,.2); border-radius: 12px; color: #155bb5; background: rgba(255,255,255,.86); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; text-decoration: none; }
.aiq-backpack-button:hover, .aiq-backpack-button:focus-visible, .aiq-sound-button:hover, .aiq-sound-button:focus-visible, .aiq-profile-switch:hover, .aiq-profile-switch:focus-visible { border-color: var(--aiq-blue); color: #155bb5; background: white; }
.aiq-backpack-button span, .aiq-sound-button > span:first-child, .aiq-profile-switch span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: white; background: var(--aiq-blue); }
.aiq-sound-button[aria-pressed="false"] { color: #6f7c88; border-color: #d0d9e1; background: #f1f4f7; }
.aiq-sound-button[aria-pressed="false"] > span:first-child { background: #8494a3; }
.aiq-world-intro { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 58px) clamp(18px, 4vw, 36px) clamp(25px, 5vw, 42px); text-align: center; }
.aiq-world-number { display: inline-block; margin-bottom: 9px; color: var(--aiq-blue-dark); font-size: 13px; font-weight: 900; letter-spacing: 2.2px; text-transform: uppercase; }
.aiq-world-intro h1 { margin: 0; color: #173b57; font-size: clamp(34px, 6vw, 58px); line-height: 1.02; letter-spacing: -.035em; }
.aiq-world-intro p { max-width: 650px; margin: 18px auto 0; color: #50677a; font-size: clamp(15px, 2vw, 18px); line-height: 1.6; }
.aiq-map-wrap { width: 100%; max-width: none; margin: 0; }
.aiq-map { position: relative; line-height: 0; }
.aiq-map picture, .aiq-map picture img { display: block; width: 100%; height: auto; margin: 0; image-rendering: auto; }
.aiq-level {
  position: absolute; left: 50%; width: 34%; height: 10.8%; transform: translate(-50%, -50%);
  appearance: none; border: 0 !important; border-radius: 22%; background: transparent !important; background-image: none !important; color: transparent !important;
  box-shadow: none !important; padding: 0 !important; cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
.aiq-level:hover, .aiq-level:focus-visible { outline: none; filter: drop-shadow(0 0 11px rgba(241,185,66,.95)); transform: translate(-50%, -50%) scale(1.035); }
.aiq-level-1 { top: 13.3%; }
.aiq-level-2 { top: 29%; }
.aiq-level-3 { top: 45.9%; }
.aiq-level-4 { top: 62.8%; }
.aiq-level-5 { top: 80.4%; }
.aiq-level.is-locked { cursor: not-allowed; filter: none; }
.aiq-level.is-current { filter: drop-shadow(0 5px 7px rgba(225, 157, 32, .48)); }
.aiq-level-state {
  position: absolute; right: 3%; top: 2%; display: grid; place-items: center;
  width: 39px; height: 39px; border-radius: 50%; line-height: 1; font-size: 19px; font-weight: 900;
  color: white; background: #2f80ed; box-shadow: 0 4px 9px rgba(28,78,148,.28);
}
.aiq-level-state:empty { display: none; }
.aiq-level.is-locked .aiq-level-state { display: grid; background: #ffc83d; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(67,48,3,.38); font-size: 0; }
.aiq-level.is-locked .aiq-level-state::before { content: ''; position: absolute; left: 50%; top: 52%; width: 14px; height: 12px; border-radius: 2px; background: #111; transform: translate(-50%, -25%); }
.aiq-level.is-locked .aiq-level-state::after { content: ''; position: absolute; left: 50%; top: 26%; width: 10px; height: 10px; border: 3px solid #111; border-bottom: 0; border-radius: 8px 8px 0 0; transform: translateX(-50%); }
.aiq-marker {
  position: absolute; z-index: 7; left: 40.5%; width: 10.5%;
  transform: translate(-50%, -58%); pointer-events: none; transition: top .62s cubic-bezier(.2,.85,.3,1.12);
}
.aiq-marker[data-position="1"] { top: 13.3%; }
.aiq-marker[data-position="2"] { top: 29%; }
.aiq-marker[data-position="3"] { top: 45.9%; }
.aiq-marker[data-position="4"] { top: 62.8%; }
.aiq-marker[data-position="5"] { top: 80.4%; }
.aiq-marker img { display: block; width: 100%; height: auto; margin: 0; filter: drop-shadow(0 7px 5px rgba(39, 43, 35, .34)); animation: aiq-robot-idle 2.4s ease-in-out infinite; }
@keyframes aiq-robot-idle { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
.aiq-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
  max-width: 720px; margin: 0 auto; padding: 20px 16px 30px; font-size: 13px;
}
.aiq-primary, .aiq-secondary, .aiq-option {
  appearance: none; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.aiq-primary { border: 0; border-radius: 14px; padding: 13px 19px; color: white; background: linear-gradient(180deg, #20c7e8, #287be6); box-shadow: 0 5px 0 #1759a6; }
.aiq-primary:hover, .aiq-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 0 #1759a6; }
.aiq-secondary { border: 2px solid #2f80ed; border-radius: 12px; padding: 9px 13px; color: #155bb5; background: rgba(255,255,255,.65); }
.aiq-welcome, .aiq-modal {
  position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px;
  background: rgba(20,45,70,.72); backdrop-filter: blur(8px);
}
.aiq-welcome[hidden], .aiq-modal[hidden] { display: none; }
.aiq-welcome-card, .aiq-modal-card {
  position: relative;
  width: min(600px, 100%); max-height: min(760px, 92vh); overflow: auto;
  padding: clamp(24px, 6vw, 44px); border: 3px solid rgba(255,255,255,.9); border-radius: 26px;
  background: var(--aiq-paper); box-shadow: var(--aiq-shadow);
}
.aiq-welcome-card h1, .aiq-modal-card h2 { margin: 8px 0 12px; color: #173b57; line-height: 1.12; }
.aiq-welcome-card p, .aiq-modal-card p, .aiq-lesson-copy { line-height: 1.55; }
.aiq-welcome-card label { display: block; margin: 24px 0 7px; font-weight: 800; }
.aiq-welcome-card label small { font-weight: 500; color: #6d777b; }
.aiq-welcome-card input { width: 100%; margin-bottom: 14px; padding: 12px 14px; border: 2px solid #b8d5e8; border-radius: 12px; font: inherit; }
.aiq-welcome-card .aiq-primary { width: 100%; }
.aiq-privacy { margin-bottom: 0; color: #718087; font-size: 12px; text-align: center; }
.aiq-eyebrow { color: var(--aiq-blue-dark); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.aiq-close { position: absolute !important; z-index: 2; top: 22px !important; right: 22px !important; display: grid !important; place-items: center !important; float: none !important; width: 42px !important; min-width: 42px !important; max-width: 42px !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; aspect-ratio: 1 / 1; margin: 0 !important; padding: 0 !important; border: 2px solid #d3e2ee !important; border-radius: 50% !important; color: #315b78 !important; background: #eef7fc !important; background-image: none !important; box-shadow: none !important; font-size: 28px !important; font-weight: 500 !important; line-height: 1 !important; text-align: center !important; cursor: pointer; }
.aiq-close:hover, .aiq-close:focus-visible { color: #fff !important; border-color: var(--aiq-blue) !important; background: var(--aiq-blue) !important; }
.aiq-mission { margin: 22px 0; padding: 16px 18px; border-left: 5px solid var(--aiq-gold); border-radius: 4px 14px 14px 4px; background: #fff5d5; }
.aiq-mission p { margin: 3px 0 0; }
.aiq-duration { display: inline-flex; margin: 0 0 18px; padding: 7px 10px; border-radius: 10px; color: #52697a; background: #eef5fa; font-size: 12px; font-weight: 700; }
.aiq-step-dots { display: flex; gap: 7px; margin: 13px 0 18px; }
.aiq-step-dots span { width: 28px; height: 6px; border-radius: 6px; background: #d9e5ed; }
.aiq-step-dots span.is-active { background: var(--aiq-blue); }
.aiq-step-dots span.is-challenge { background: var(--aiq-gold); }
.aiq-concept-copy { font-size: 16px; line-height: 1.62; }
.aiq-concept-copy p { margin: 0 0 15px; }
.aiq-rule { display: grid; gap: 4px; margin: 22px 0; padding: 15px 17px; border: 2px solid #b9dff1; border-radius: 14px; background: #eaf8ff; }
.aiq-rule span { color: var(--aiq-blue-dark); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.aiq-rule strong { color: #234d69; font-size: 16px; }
.aiq-options { display: grid; gap: 11px; margin-top: 22px; }
.aiq-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 2px solid #c8dde9; border-radius: 14px; color: var(--aiq-ink); background: white; text-align: left; }
.aiq-option > span { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #155bb5; background: #e3f5ff; }
.aiq-option:hover:not(:disabled), .aiq-option:focus-visible { border-color: var(--aiq-blue); transform: translateY(-1px); }
.aiq-option.is-wrong { border-color: #db9a9e; background: #fff0f0; }
.aiq-option.is-right { border-color: #37a9d0; background: #e8f8ff; }
.aiq-feedback { min-height: 25px; margin-top: 16px; font-weight: 700; }
.aiq-feedback p { margin: 5px 0 0; font-weight: 500; }
.aiq-feedback.is-hint, .aiq-feedback.is-correct { padding: 13px 15px; border-radius: 13px; }
.aiq-feedback.is-hint { color: #7a5117; background: #fff3cf; }
.aiq-feedback.is-correct { color: #15506d; background: #e8f8ff; }
.aiq-feedback.is-correct .aiq-primary { display: block; margin-top: 15px; }
.aiq-success-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 15px; border-radius: 50%; color: white; background: #20b8df; box-shadow: 0 6px 0 #2376c9; font-size: 38px; font-weight: 900; }
.aiq-reward { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; padding: 14px 17px; border-radius: 14px; color: #72530e; background: #fff2c4; }
.aiq-reward span { color: #dc9f12; letter-spacing: 3px; }
.aiq-badge { display: flex; align-items: center; gap: 13px; margin: 18px 0; padding: 14px; border: 2px solid #b8dced; border-radius: 16px; background: #edf8ff; }
.aiq-badge b, .aiq-badge small { display: block; }
.aiq-badge small { margin-top: 3px; color: #596f80; }
.aiq-parent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.aiq-parent-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0 5px; }
.aiq-parent-profile { display: grid; gap: 3px; min-width: 0; padding: 10px; border: 2px solid #d3e2ec; border-radius: 12px; color: #48667a; background: #f7fbfd; text-decoration: none; }
.aiq-parent-profile:hover, .aiq-parent-profile.is-active { border-color: var(--aiq-blue); color: #155bb5; background: #eaf7ff; }
.aiq-parent-profile strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aiq-parent-profile small { color: #6b8291; font-size: 10px; }
.aiq-parent-grid div { padding: 15px 8px; border-radius: 14px; background: #edf6fb; text-align: center; }
.aiq-parent-grid strong, .aiq-parent-grid span { display: block; }
.aiq-parent-grid strong { color: #176fc0; font-size: 25px; }
.aiq-parent-grid span { margin-top: 3px; font-size: 12px; }
.aiq-time-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
.aiq-time-summary div { padding: 13px; border-radius: 13px; background: #edf6fb; text-align: center; }
.aiq-time-summary strong, .aiq-time-summary span { display: block; }
.aiq-time-summary strong { color: #176fc0; font-size: 20px; }
.aiq-time-summary span { margin-top: 3px; color: #596f80; font-size: 11px; }
.aiq-parent-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #d4dfe8; border-radius: 14px; }
.aiq-parent-table { width: 100%; min-width: 510px; border-collapse: collapse; background: #fff; font-size: 12px; }
.aiq-parent-table th, .aiq-parent-table td { padding: 10px 9px; border-bottom: 1px solid #e2e9ef; text-align: left; vertical-align: middle; }
.aiq-parent-table thead th { color: #315b78; background: #eef7fc; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.aiq-parent-table tbody tr:last-child th, .aiq-parent-table tbody tr:last-child td { border-bottom: 0; }
.aiq-parent-table tbody th { display: flex; align-items: center; gap: 8px; max-width: 220px; font-weight: 700; }
.aiq-parent-table tbody th span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: #fff; background: #2f80ed; }
.aiq-parent-stars { color: #dca019; letter-spacing: 1px; white-space: nowrap; }
.aiq-table-note { margin: 8px 0 0; color: #718493; font-size: 11px; }
.aiq-last-activity { margin: 12px 0; color: #596f80; font-size: 12px; }
.aiq-parent-note { color: #5b6f7e; font-size: 13px; }
.aiq-reset { color: #97474b; border-color: #be777a; }
.aiq-family-badge { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 13px; border: 2px dashed #bbc8d3; border-radius: 15px; color: #687989; background: #f2f5f8; }
.aiq-family-badge.is-earned { border-style: solid; border-color: #74bde0; color: #1f5f86; background: #e9f7ff; }
.aiq-family-badge strong, .aiq-family-badge small { display: block; }
.aiq-family-badge small { margin-top: 3px; }
.aiq-mini-shield { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 48px; border-radius: 13px 13px 18px 18px; color: white; background: #8696a4; font-weight: 900; }
.aiq-family-badge.is-earned .aiq-mini-shield { background: linear-gradient(145deg, #20c7e8, #287be6); }
.aiq-section-title { margin: 25px 0 11px; color: #315b78; font-size: 15px; }
.aiq-module-star-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.aiq-module-stars { padding: 10px 5px; border: 1px solid #d6e0e8; border-radius: 12px; background: #f8fafc; text-align: center; }
.aiq-module-stars b, .aiq-module-stars span { display: block; }
.aiq-module-stars b { color: #3d6076; font-size: 12px; }
.aiq-module-stars span { margin-top: 5px; color: #dca019; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.aiq-badge-collection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aiq-collection-badge { min-width: 0; padding: 14px 8px; border: 2px solid #d4dfe8; border-radius: 15px; background: #f5f7f9; text-align: center; }
.aiq-collection-badge.is-earned { border-color: #75bde0; background: linear-gradient(180deg, #f1fbff, #e3f4ff); }
.aiq-collection-badge strong, .aiq-collection-badge small { display: block; }
.aiq-collection-badge strong { margin-top: 8px; color: #4b6070; font-size: 12px; line-height: 1.2; }
.aiq-collection-badge.is-earned strong { color: #175d91; }
.aiq-collection-badge small { margin-top: 5px; color: #7f8d99; font-size: 10px; }
.aiq-shield { display: grid; place-items: center; width: 52px; height: 58px; margin: 0 auto; border-radius: 16px 16px 22px 22px; color: #8d9aa6; background: #dde4ea; box-shadow: inset 0 2px 2px rgba(255,255,255,.7); font-size: 22px; font-weight: 900; }
.aiq-collection-badge.is-earned .aiq-shield { color: white; background: linear-gradient(145deg, #20c7e8, #287be6); box-shadow: inset 0 2px 2px rgba(255,255,255,.35), 0 6px 12px rgba(25,92,181,.22); }
.aiq-toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 13px; color: white; background: #233f47; box-shadow: var(--aiq-shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; }
.aiq-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.aiq-family-app { min-height: 100vh; background: radial-gradient(circle at 50% 35%, #f8fdff 0, #dff5ff 42%, #b8e5fa 100%); }
.aiq-family-hud { position: relative; }
.aiq-family-logout { padding: 8px 12px; border: 2px solid rgba(23,59,87,.2); border-radius: 12px; color: #155bb5; background: rgba(255,255,255,.86); font-size: 12px; font-weight: 900; text-decoration: none; }
.aiq-family-logout:hover { color: #155bb5; background: #fff; }
.aiq-family-stage, .aiq-profile-stage { min-height: calc(100vh - 67px); padding: clamp(48px, 9vw, 95px) 18px 45px; }
.aiq-family-stage { display: grid; place-items: start center; }
.aiq-auth-card { width: min(590px, 100%); padding: clamp(25px, 5vw, 44px); border: 3px solid rgba(255,255,255,.92); border-radius: 28px; background: rgba(255,253,247,.97); box-shadow: var(--aiq-shadow); }
.aiq-auth-card h1, .aiq-profile-stage h1 { margin: 8px 0 11px; color: #173b57; font-size: clamp(30px, 5vw, 47px); line-height: 1.06; letter-spacing: -.025em; }
.aiq-auth-intro, .aiq-profile-stage > p { color: #526b7d; line-height: 1.55; }
.aiq-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 25px 0 20px; padding: 5px; border-radius: 14px; background: #e6f1f7; }
.aiq-auth-tabs button { padding: 10px; border: 0; border-radius: 10px; color: #557083; background: transparent; font: inherit; font-weight: 900; cursor: pointer; }
.aiq-auth-tabs button.is-active { color: #155bb5; background: white; box-shadow: 0 3px 10px rgba(42,91,124,.12); }
.aiq-family-form[hidden] { display: none; }
.aiq-family-form > label, .aiq-pin-form label { display: block; margin: 14px 0 6px; color: #294b62; font-size: 13px; font-weight: 900; }
.aiq-family-form > label small { color: #748796; font-weight: 600; }
.aiq-family-form > label input, .aiq-pin-form input { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 2px solid #bad5e5; border-radius: 12px; color: #243541; background: #fff; font: inherit; outline: none; }
.aiq-family-form > label input:focus, .aiq-pin-form input:focus { border-color: var(--aiq-blue); box-shadow: 0 0 0 3px rgba(47,128,237,.13); }
.aiq-family-form > .aiq-primary { width: 100%; margin-top: 18px; }
.aiq-family-form button:disabled, .aiq-pin-form button:disabled { cursor: wait; opacity: .65; }
.aiq-form-status { min-height: 20px; margin: 10px 0 0; font-size: 13px; text-align: center; }
.aiq-form-status.is-error { color: #9b3d44; }
.aiq-reset-link { display: block; margin-top: 15px; color: #155bb5; font-size: 13px; text-align: center; }
.aiq-avatar-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0 2px; padding: 0; border: 0; }
.aiq-avatar-picker legend { grid-column: 1 / -1; margin-bottom: 4px; color: #294b62; font-size: 13px; font-weight: 900; }
.aiq-avatar-option { position: relative; display: grid; place-items: center; gap: 4px; margin: 0; padding: 8px 4px; border: 2px solid #d2e0e9; border-radius: 14px; background: #fff; cursor: pointer; }
.aiq-avatar-option.is-used { cursor: not-allowed; filter: grayscale(.65); opacity: .48; }
.aiq-avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.aiq-avatar-option:has(input:checked) { border-color: var(--aiq-blue); box-shadow: 0 0 0 3px rgba(47,128,237,.12); }
.aiq-avatar-option > span { display: grid; place-items: center; width: 58px; height: 58px; overflow: hidden; border-radius: 50%; }
.aiq-avatar-option img { width: 54px; height: 54px; object-fit: contain; }
.aiq-avatar-option small { color: #50697a; font-size: 11px; font-weight: 800; }
.aiq-avatar-nova > span, .aiq-avatar-nova .aiq-profile-avatar { background: #a9ecfb; }
.aiq-avatar-rayo > span, .aiq-avatar-rayo .aiq-profile-avatar { background: #ffe27f; }
.aiq-avatar-cometa > span, .aiq-avatar-cometa .aiq-profile-avatar { background: #b9d1ff; }
.aiq-profile-stage { max-width: 1180px; margin: 0 auto; text-align: center; }
.aiq-profile-stage > p { max-width: 620px; margin: 0 auto; }
.aiq-profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 40px; }
.aiq-profile-card { appearance: none; display: flex; min-width: 0; min-height: 265px; align-items: center; flex-direction: column; justify-content: center; padding: 21px 13px; border: 3px solid rgba(255,255,255,.92); border-radius: 24px; color: #173b57; background: rgba(255,255,255,.75); box-shadow: 0 13px 30px rgba(32,87,124,.14); font: inherit; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.aiq-profile-card:hover, .aiq-profile-card:focus-visible { border-color: var(--aiq-gold) !important; color: #173b57 !important; background: rgba(255,255,255,.96) !important; box-shadow: 0 18px 35px rgba(32,87,124,.22) !important; transform: translateY(-5px); }
.aiq-profile-card:hover strong, .aiq-profile-card:focus-visible strong { color: #173b57 !important; }
.aiq-profile-card:hover small, .aiq-profile-card:focus-visible small { color: #50697a !important; }
.aiq-profile-avatar { display: grid; place-items: center; width: 132px; height: 132px; margin-bottom: 15px; overflow: hidden; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 8px 18px rgba(29,84,118,.18); }
.aiq-profile-avatar img { width: 124px; height: 124px; object-fit: contain; }
.aiq-profile-card strong { font-size: 21px; }
.aiq-profile-card small { margin-top: 7px; color: #617889; font-size: 12px; }
.aiq-profile-plus { display: grid; place-items: center; width: 108px; height: 108px; margin-bottom: 24px; border: 4px dashed #7fb6d4; border-radius: 50%; color: #2f80ed; background: #edf9ff; font-size: 54px; font-weight: 400; line-height: 1; }
.aiq-profile-empty { border-style: dashed; color: #8395a2; background: rgba(255,255,255,.35); box-shadow: none; cursor: default; opacity: .6; }
.aiq-profile-empty:hover { border-color: rgba(255,255,255,.92); box-shadow: none; transform: none; }
.aiq-profile-empty > span { width: 95px; height: 95px; margin-bottom: 20px; border-radius: 50%; background: rgba(128,170,195,.18); }
.aiq-parent-entry { border-color: rgba(255,200,61,.85) !important; color: #173b57 !important; background: linear-gradient(180deg, rgba(255,251,231,.96), rgba(255,238,174,.88)) !important; }
.aiq-parent-entry:hover, .aiq-parent-entry:focus-visible { border-color: #f2b600 !important; color: #173b57 !important; background: linear-gradient(180deg, #fffef6, #ffe99b) !important; }
.aiq-parent-entry:hover strong, .aiq-parent-entry:focus-visible strong { color: #173b57 !important; }
.aiq-parent-entry:hover small, .aiq-parent-entry:focus-visible small { color: #536978 !important; }
.aiq-parent-entry .aiq-profile-avatar { background: #fff1b5; }
.aiq-family-summary-grid { display: grid; gap: 13px; margin-top: 20px; }
.aiq-family-summary { padding: 15px; border: 2px solid #d4e4ed; border-radius: 17px; background: #f8fcfe; }
.aiq-family-summary-head { display: flex; align-items: center; gap: 12px; }
.aiq-family-summary-head > span { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: #dff5ff; }
.aiq-family-summary-head img { width: 62px; height: 62px; object-fit: contain; }
.aiq-family-summary-head strong, .aiq-family-summary-head small { display: block; }
.aiq-family-summary-head strong { color: #173b57; font-size: 17px; }
.aiq-family-summary-head small { margin-top: 3px; color: #647b8b; font-size: 11px; }
.aiq-family-summary-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 13px 0; }
.aiq-family-summary-stats span { padding: 8px 4px; border-radius: 9px; color: #587083; background: #eaf5fb; font-size: 9px; text-align: center; }
.aiq-family-summary-stats b { display: block; color: #176fc0; font-size: 12px; }
.aiq-family-activity { display: block; margin: 0 0 10px; color: #738593; font-size: 10px; }
.aiq-family-summary .aiq-secondary { display: block; width: 100%; text-align: center; text-decoration: none; }
.aiq-pin-form { margin-top: 20px; }
.aiq-pin-form .aiq-primary { width: 100%; margin-top: 14px; }

@media (max-width: 540px) {
  .aiq-brand small { display: none; }
  .aiq-hud { gap: 5px; padding: 9px 8px; }
  .aiq-brand { min-height: 35px; padding-left: 49px; }
  .aiq-brand-mascot { left: -6px; width: 58px; height: 86px; transform: translateY(-36%); }
  .aiq-brand strong { font-size: 15px; }
  .aiq-stats { gap: 4px; }
  .aiq-stats span { padding: 6px 7px; font-size: 11px; }
  .aiq-backpack-button, .aiq-sound-button, .aiq-profile-switch { padding: 7px; font-size: 0; }
  .aiq-backpack-button span, .aiq-sound-button > span:first-child, .aiq-profile-switch span { width: 22px; height: 22px; font-size: 12px; }
  .aiq-level { width: 38%; }
  .aiq-level-state { width: 32px; height: 32px; font-size: 16px; }
  .aiq-level.is-locked .aiq-level-state::before { width: 12px; height: 10px; }
  .aiq-level.is-locked .aiq-level-state::after { width: 9px; height: 9px; border-width: 3px; }
  .aiq-world-intro { padding-top: 28px; }
  .aiq-world-intro h1 { font-size: 34px; }
  .aiq-marker { left: 39.5%; width: 12.5%; }
  .aiq-footer { align-items: flex-start; flex-direction: column; }
  .aiq-parent-grid { grid-template-columns: 1fr; }
  .aiq-time-summary { grid-template-columns: 1fr 1fr; }
  .aiq-badge-collection { grid-template-columns: repeat(2, 1fr); }
  .aiq-module-star-grid { gap: 4px; }
  .aiq-module-stars { padding: 8px 2px; }
  .aiq-module-stars span { font-size: 10px; letter-spacing: 0; }
  .aiq-family-stage, .aiq-profile-stage { padding-top: 48px; }
  .aiq-profile-grid { grid-template-columns: 1fr; max-width: 330px; margin: 28px auto 0; }
  .aiq-profile-card { min-height: 245px; }
  .aiq-profile-empty { display: none; }
  .aiq-avatar-picker { gap: 5px; }
  .aiq-avatar-option > span { width: 49px; height: 49px; }
}

@media (min-width: 541px) and (max-width: 980px) {
  .aiq-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
  .aiq-world-intro { max-width: 900px; padding-top: 34px; padding-bottom: 30px; }
  .aiq-map { width: 100%; }
  .aiq-level { width: 18%; height: 23%; }
  .aiq-level-1 { left: 13.55%; top: 52.1%; }
  .aiq-level-2 { left: 30.6%; top: 32.2%; }
  .aiq-level-3 { left: 51.75%; top: 52.7%; }
  .aiq-level-4 { left: 66.8%; top: 31.95%; }
  .aiq-level-5 { left: 85.95%; top: 53.35%; }
  .aiq-marker { width: 5.7%; transition: left .62s cubic-bezier(.2,.85,.3,1.12), top .62s cubic-bezier(.2,.85,.3,1.12); }
  .aiq-marker[data-position="1"] { left: 9.8%; top: 52%; }
  .aiq-marker[data-position="2"] { left: 26.9%; top: 32.1%; }
  .aiq-marker[data-position="3"] { left: 48%; top: 52.6%; }
  .aiq-marker[data-position="4"] { left: 63.1%; top: 31.8%; }
  .aiq-marker[data-position="5"] { left: 82.2%; top: 53.2%; }
  .aiq-footer { max-width: 100%; padding-inline: clamp(24px, 4vw, 70px); }
}

@media (prefers-reduced-motion: reduce) {
  .aiq-app *, .aiq-app *::before, .aiq-app *::after { scroll-behavior: auto !important; transition: none !important; }
  .aiq-marker img { animation: none !important; }
}
