/* Model details, search refinements, and class waitlist. Loaded after style.css. */
/* Verified details for the selected model. */
.model-details { padding: 20px; margin-bottom: 16px; border: 1px solid var(--line, #303846); border-radius: 14px; background: rgba(15, 20, 29, .85); }
.model-details h3 { font-size: 16px; margin: 0 0 16px; }
.model-details dl { margin: 0; }
.model-details dl > div { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.model-details dt { font-size: 12px; color: #aeb9c9; margin-bottom: 5px; }
.model-details dd { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.model-details-note { color: #aeb9c9; font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
.animation-controls { display: grid; gap: 10px; margin-top: 18px; }
.animation-controls[hidden] { display: none; }
.animation-controls label { font-size: 13px; }
.animation-controls select { width: 100%; min-width: 0; color: #fff; background: #141c29; border: 1px solid #536078; border-radius: 8px; padding: 10px; font: inherit; }
.animation-controls button { white-space: normal; }

/* Phones: stretch the tabs across the whole bar so there is no empty
   space after the last tab. Tabs never shrink below their text, so
   longer translations still scroll sideways instead of squashing. */
@media (max-width: 760px) {
  .tabs { justify-content: stretch; }
  .tab { flex: 1 0 auto; text-align: center; }
}

/* Model search: a single, softly lit field with stable result spacing. */
.library-list .model-search {
  padding: 0;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #0c1928;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
  transition: box-shadow 180ms ease;
}
.library-list .model-search:focus-within { box-shadow: 0 0 0 3px rgba(83, 200, 246, .12), 0 6px 22px rgba(0,0,0,.18); }
.model-search .search-input {
  min-width: 0;
  height: 52px;
  padding: 0 48px;
  border-radius: 14px;
  border: 1px solid rgba(149, 193, 223, .24);
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}
.model-search .search-input::placeholder { color: #91a8bc; opacity: 1; }
.model-search .search-input:focus { outline: none; border-color: #66d5fa; background: rgba(52, 158, 211, .04); box-shadow: none; }
.model-search .search-icon { inset-inline-start: 16px; inset-inline-end: auto; display: flex; width: 19px; height: 19px; color: #91a8bc; transition: color 180ms ease; }
.model-search .search-icon svg { width: 100%; height: 100%; }
.model-search:focus-within .search-icon { color: #79dcff; }
.model-search .search-clear { inset-inline-end: 4px; inset-inline-start: auto; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 11px; background: transparent; font-size: 14px; }
.model-search .search-clear:hover { background: rgba(102, 213, 250, .1); }
.model-search .search-clear[hidden], .model-list .model-card[hidden] { display: none; }
.library-list .search-hint { display: block; min-height: 22px; margin: 0 2px 10px; text-align: start; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.library-list .search-hint[hidden] { display: block !important; visibility: hidden; }
[dir="rtl"] .model-search .search-input { padding: 0 48px; }
@media (prefers-reduced-motion: reduce) { .model-search, .model-search * { transition: none !important; } }

/* Header name: ALPHA'S 3D SPACE */
.brand { white-space: nowrap; text-transform: uppercase; }
.brand-sub { font-size: .62em; letter-spacing: .08em; opacity: .9; margin-inline-start: .15em; }
@media (max-width: 520px) { .brand { font-size: 1.45rem; } }

/* Upcoming classes and free launch waitlist. */
.learn-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(22px, 4vw, 44px); border: 1px solid rgba(113, 209, 247, .25); border-radius: 24px; background: linear-gradient(135deg, rgba(17, 51, 75, .96), rgba(7, 17, 31, .96)); scroll-margin-top: 160px; }
.learn-badge { display: inline-block; padding: 6px 11px; border: 1px solid rgba(114, 216, 249, .3); border-radius: 999px; color: #94e2ff; font-size: 12px; font-weight: 600; }
.learn-intro h2 { margin: 18px 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.learn-intro p { color: #d0dfeb; line-height: 1.8; }
.learn-section .learn-note, .learn-note { font-size: 13px; line-height: 1.7; color: #aebfd0; }
.learn-form { min-width: 0; display: grid; gap: 13px; align-content: start; }
.learn-intro { min-width: 0; }
.lesson-card { margin-top: 24px; }
.lesson-card h3 { margin: 0; }
.lesson-player { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #07090c; margin: 16px 0 12px; }
.lesson-play { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #07090c; color: white; }
.lesson-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lesson-play span { position: absolute; inset-inline: 0; bottom: 0; padding: 12px; background: rgba(0,0,0,.88); font: 600 14px var(--font-body); }
.lesson-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.lesson-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.learn-form h3, .learn-form p { margin: 0; }
.learn-form > label { font-size: 14px; }
.learn-form .fb-input { width: 100%; min-width: 0; font-size: 16px; }
.learn-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; cursor: pointer; }
.learn-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #64d5ff; }
.learn-form .button { width: 100%; white-space: normal; }
.learn-form .button:disabled { opacity: .6; cursor: wait; }
.learn-store { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 32px 0; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: rgba(10, 27, 43, .94); }
.learn-store h3 { margin: 12px 0 8px; }
.learn-store p { margin: 0; color: #aebfd0; font-size: 14px; }
.learn-store .button { flex-shrink: 0; white-space: normal; }
@media (max-width: 700px) { .learn-section { grid-template-columns: 1fr; } .learn-store { align-items: stretch; flex-direction: column; } }
@media (max-width: 480px) { .hero .title { font-size: clamp(2.5rem, 10vw, 3rem); overflow-wrap: anywhere; } }

/* Store categories and class introductions. */
.store-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.store-categories .button { white-space: normal; }
.store-categories [aria-pressed="true"] { background: #8fd4ff; color: #061522; border-color: #8fd4ff; }
.store-categories .button:focus-visible { outline: 3px solid #8fd4ff; outline-offset: 3px; }
[data-store-section="classes"] > p { color: #aebfd0; line-height: 1.6; }
[data-store-section="classes"] > h4 { margin-top: 28px; }
.classes-lang { margin: -8px 0 18px; color: #8fd4ff; font-size: 14px; font-weight: 600; }
.lesson-item .lesson-player { margin: 0 0 14px; }
.lesson-item a.lesson-play { text-decoration: none; }
.store-card-price.is-free { color: #7dffb0; }
@media (max-width: 420px) { .tabs .tab { padding-inline: 7px; font-size: 12.5px; letter-spacing: 0; } }
@media (max-width: 370px) { .tabs .tab { padding-inline: 5px; font-size: 12px; } }

/* Live TikTok follower counter (About section) */
.tiktok-live { display: inline-flex; margin: 22px 0 8px; color: #8fd4ff; font-size: 14px; font-weight: 600; text-decoration: none; }
.tiktok-live:hover { color: #dff8ff; }
.tiktok-live-label { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 #ff3b5c99; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px #ff3b5c00; } 100% { box-shadow: 0 0 0 0 #ff3b5c00; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.tiktok-live-frame { display: block; width: 300px; max-width: 100%; height: 80px; border: 0; border-radius: 12px; overflow: hidden; }

/* Header and reading rhythm: shared by all sections and translations. */
.tabbar {
  gap: 16px;
  padding: 12px max(20px, calc((100vw - 1200px) / 2));
  background: rgba(4, 14, 27, .94);
  border-bottom: 1px solid rgba(151, 208, 238, .16);
}
.bar-left { gap: 14px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-size: 1.65rem; }
.brand-sub { font-family: var(--font-body); font-size: .4em; font-weight: 700; letter-spacing: .12em; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
.tabs { gap: 4px; padding: 4px; background: rgba(14, 31, 49, .7); border-color: rgba(151, 208, 238, .16); }
.tabs .tab { min-height: 44px; padding: 9px 18px; font-size: .875rem; letter-spacing: 0; }
.tab.is-active { background: #92ddff; box-shadow: 0 2px 10px rgba(64, 186, 230, .14); }
.tab:hover:not(.is-active) { background: rgba(146, 221, 255, .08); }
.menu-btn { min-width: 44px; min-height: 44px; }
body:not(.on-models):not(.on-commerce) main { padding-top: clamp(24px, 4vw, 48px); }
.hero { padding: clamp(24px, 4vw, 48px) 0 48px; }
.hero .title { max-width: 16ch; margin-inline: auto; font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: 1.06; text-wrap: balance; }
.hero .tagline { margin: 22px auto 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; text-wrap: balance; }
.hero .subtitle { max-width: 54ch; margin: 14px auto 0; font-size: 1rem; line-height: 1.75; font-weight: 400; color: #c8d9e8; text-wrap: pretty; }
.hero-actions { margin-top: 26px; }
body::after { background: linear-gradient(180deg, rgba(3, 9, 20, .55), rgba(3, 9, 20, .78) 65%, #030914); }
.cards { gap: 16px; }
.cards .card { padding: 24px; border-color: rgba(151, 208, 238, .2); }
.cards .card h3 { line-height: 1.35; }
.cards .card p { font-size: .9375rem; line-height: 1.7; font-weight: 400; }
.about-body { max-width: 68ch; line-height: 1.8; }
.home-block { scroll-margin-top: 150px; }
#commissionName { scroll-margin-top: 180px; }
.panel.is-active { animation: reading-in 200ms ease-out; }
@keyframes reading-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1000px) {
  .tabbar { justify-content: center; gap: 10px; padding: 10px 16px; }
  .bar-left { justify-content: space-between; width: 100%; }
  .tabs { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .tabs .tab { flex: 1 0 auto; text-align: center; }
}
@media (max-width: 640px) {
  .tabbar { padding: 8px 12px; gap: 8px; }
  .brand { font-size: 1.5rem; }
  .tabs { gap: 0; }
  .tabs .tab { padding-inline: 10px; font-size: .8125rem; }
  .hero { padding: 24px 0 32px; }
  .hero .title { font-size: clamp(2.45rem, 9.5vw, 3.6rem); }
  .hero .subtitle { font-size: .9375rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 360px; margin-inline: auto; }
  .hero-actions .button { width: 100%; min-height: 48px; white-space: normal; }
  .cards .card { padding: 20px; }
  .cards .card-icon { width: 36px; height: 36px; margin-bottom: 12px; }
}
html.reduce-motion { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel.is-active { animation: none; }
}

/* Local SVG brand marks, with visible labels providing the link names. */
.contact-grid .contact-card { grid-template-columns: 40px minmax(0, 1fr); }
.social-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; }
.social-icon img { display: block; width: 24px; height: 24px; filter: brightness(0) invert(1); }
.contact-card .contact-icon.social-icon { width: 40px; height: 40px; margin-bottom: 0; }
.social-icon.social-icon--tiktok { background: #090909; border: 1px solid #42464d; }
.social-icon.social-icon--instagram { background: linear-gradient(135deg, #833ab4, #c13584 55%, #e06b38); }
.social-icon.social-icon--youtube { background: #c90000; }
.social-icon.social-icon--email { background: #16445f; }
.hire-link .social-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
.hire-link .social-icon img { width: 20px; height: 20px; }

/* Home: show the artwork clearly and give courses a direct entry point. */
.home-product { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); margin: 12px 0 32px; padding: clamp(20px, 3vw, 40px); border: 1px solid #31516b; border-radius: 24px; background: var(--surface); overflow: hidden; text-align: start; }
.home-product-copy { min-width: 0; }
.home-product h1 { margin: 14px 0 12px; font-size: clamp(2.4rem, 4.4vw, 4.5rem); line-height: 1.05; }
.home-product-subtitle { margin: 0 0 18px; font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--accent); font-weight: 700; }
.home-product-description { max-width: 46ch; color: var(--text-dim); line-height: 1.65; }
.home-product-price { margin: 20px 0; font-size: 2rem; font-weight: 800; }
.home-product-price span { font-size: .8rem; color: var(--text-dim); }
.home-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-product-actions .button { white-space: normal; text-align: center; }
.home-product-note { margin: 18px 0 0; max-width: 58ch; color: var(--text-dim); font-size: .8rem; line-height: 1.6; }
.home-product-image { display: block; width: 100%; height: auto; border-radius: 14px; }
@media (max-width: 760px) {
  .home-product { grid-template-columns: 1fr; }
  .home-product-actions .button { width: 100%; }
}
.home-showcase { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(24px, 4vw, 52px); align-items: center; text-align: start; padding: 28px 0 44px; }
.home-showcase .hero-copy { text-align: start; }
.home-showcase .title { font-size: clamp(2.8rem, 4.6vw, 4.8rem); line-height: 1.06; margin: 16px 0 22px; }
.home-showcase .tagline { font-size: 1.12rem; }
.home-showcase .subtitle { margin: 12px 0 0; max-width: 46ch; }
.home-showcase .hero-actions { justify-content: flex-start; gap: 10px; }
.home-eyebrow { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.home-course-note { color: var(--text-dim); font-size: .82rem; margin: 16px 0 8px; }
.home-project-link { margin-top: 0; }
.home-artwork { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #31516b; border-radius: 20px; background: #071523; box-shadow: 0 24px 70px #0006; }
.home-artwork > img, .home-artwork > video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.home-artwork > [hidden] { display: none; }
.home-artwork figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-size: .8rem; }
.home-artwork figcaption > span { color: var(--text-dim); letter-spacing: .12em; font-weight: 700; }
.home-artwork a { color: var(--accent); text-underline-offset: 4px; }
.home-visual-cards .card { padding: 0 0 24px; overflow: hidden; display: flex; flex-direction: column; }
.home-visual-cards .card h3 { margin: 20px 24px 8px; }
.home-visual-cards .card p { margin: 0 24px 20px; }
.home-visual-cards .card .tool-link { margin: auto 24px 0; align-self: flex-start; }
.home-visual-cards .card.card--text-only { padding: 24px; justify-content: center; }
.home-visual-cards .card--text-only h3 { margin: 0 0 8px; }
.home-visual-cards .card--text-only p { margin: 0 0 20px; }
.home-visual-cards .card--text-only .tool-link { margin: 0; }
.home-visual-cards button.tool-link, .home-project-link { border: 0; padding: 0; background: transparent; font: inherit; color: var(--accent); cursor: pointer; text-align: start; min-height: 44px; }
.service-preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) {
  .home-showcase { grid-template-columns: 1fr; padding-top: 12px; gap: 28px; }
  .home-showcase .title { font-size: clamp(2.7rem, 8vw, 4.5rem); max-width: 18ch; }
  .home-artwork { width: 100%; max-width: 720px; }
}
@media (max-width: 640px) {
  .home-showcase .hero-actions .button { width: 100%; }
  .home-showcase .title { font-size: clamp(2.35rem, 10vw, 3.7rem); }
  .home-artwork figcaption { padding: 14px; }
}

.course-sale { margin: 0 0 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.course-sale img { display: block; width: 100%; height: auto; }
.home-course-sale { max-width: 640px; margin: 0 auto 40px; }
.course-sale figcaption { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px; }
@media (max-width: 640px) { .course-sale figcaption > a { width: 100%; white-space: normal; } }

/* A shorter home page and direct email contact. */
.home-showcase .subtitle { font-size: 1.15rem; line-height: 1.7; color: var(--text-dim); }
.home-showcase .hero-actions { max-width: none; margin-inline: 0; }
.home-about { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 0; border-top: 1px solid var(--border); }
.home-about h2 { margin: 0 0 10px; font-size: 1.3rem; }
.home-about p { max-width: 65ch; margin: 0; color: var(--text-dim); line-height: 1.7; }
.home-about > .button { flex-shrink: 0; }
.email-card { max-width: 740px; margin: 28px auto 48px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: 20px; background: var(--surface, #101c2c); }
.email-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #53c8ff15; margin-bottom: 24px; }
.email-card h3 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 12px; }
.email-lead, .email-guidance p { color: var(--text-dim); line-height: 1.75; }
.email-address { display: inline-block; color: var(--accent); font-size: clamp(1.3rem, 5vw, 1.9rem); margin: 12px 0 26px; overflow-wrap: anywhere; text-underline-offset: 6px; }
.email-guidance { border-top: 1px solid var(--border); padding: 24px 0 10px; }
.email-guidance h4 { margin: 0; font-size: 1rem; }
.email-guidance p { margin: 12px 0; }
.email-card > .button { margin-top: 12px; }
.email-hint, .email-reply { font-size: .85rem; color: var(--text-dim); line-height: 1.65; }
.email-hint { margin: 12px 0 22px; }
.email-reply { border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 0; }
@media (max-width: 640px) {
  .home-about { flex-direction: column; align-items: flex-start; gap: 20px; }
  .email-card { margin-top: 20px; }
  .email-card > .button { width: 100%; }
}

/* Transparent chrome wordmark, with the site name retained for context. */
.brand-wordmark { align-items: center; gap: 4px; }
.brand-wordmark img { display: block; width: 190px; height: auto; flex-shrink: 0; }
.brand-wordmark .brand-sub { font-size: 10px; }
@media (max-width: 640px) {
  .brand-wordmark { gap: 0; }
  .brand-wordmark img { width: 156px; }
  .brand-wordmark .brand-sub { font-size: 9px; }
}

/* Preserve the full course thumbnail, including its language badge. */
#storeCourses .store-shots { aspect-ratio: 1; }
#storeCourses .store-shot { object-fit: contain; }
.course-launch-art { display: block; width: 100%; height: auto; border-radius: 12px; margin: 16px 0; }
/* Compact one-row header: logo + "3D SPACE" side by side. */
.brand.brand-wordmark { display: inline-flex; flex-direction: row; align-items: center; gap: 12px; }
.brand-wordmark img { width: auto; height: 44px; }
.brand-wordmark .brand-sub { margin: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); font-size: 11px; letter-spacing: .18em; line-height: 1; white-space: nowrap; }
@media (max-width: 640px) {
  .brand-wordmark img { width: auto; height: 32px; }
  .brand-wordmark .brand-sub { display: none; }
}

/* ---- Reading settings: text size, plain background, high contrast ---- */
.size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.text-large { font-size: 112.5%; }
html.text-xl    { font-size: 125%; }

html.plain-bg body::before { background: none; filter: none; }
html.plain-bg body::after  { background: #030914; }

html.high-contrast {
  --text: #ffffff;
  --text-dim: #e2edf7;
  --border: rgba(170, 225, 255, .6);
  --border-lit: #bff0ff;
}
html.high-contrast body::after { background: linear-gradient(180deg, rgba(2, 8, 18, .82), rgba(2, 8, 18, .92) 60%, #020812); }
html.high-contrast a:not(.button):not(.brand) { text-decoration: underline; text-underline-offset: 3px; }
html.high-contrast :focus-visible { outline: 3px solid #ffffff !important; outline-offset: 3px; }
html.high-contrast .card, html.high-contrast .tool, html.high-contrast .setting-row { border-color: var(--border); }
.setting-block--size { margin: 0; padding: 18px 0; border-top: 1px solid var(--border); }

/* ---------- Character submission form (Contact) ---------- */
.char-label { font-size: .9rem; font-weight: 600; }
.char-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px; border: 2px dashed var(--border-lit); border-radius: var(--radius); background: var(--accent-soft); transition: border-color .2s, background .2s; }
.char-drop.is-over { border-color: var(--accent); background: rgba(112, 228, 255, .2); }
.char-drop.is-full .char-pick { opacity: .5; pointer-events: none; }
.char-drop-text { color: var(--text-dim); font-size: .9rem; }
.char-pick { cursor: pointer; min-height: 44px; }
.char-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.char-file:focus-visible + * , .char-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.char-previews { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.char-previews:empty { display: none; }
.char-previews li { position: relative; width: 112px; height: 112px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-lit); background: var(--bg-raised); }
.char-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(3, 9, 20, .85); color: #fff; font-size: 14px; cursor: pointer; }
.char-remove:hover, .char-remove:focus-visible { background: #c62f45; }
.char-wants { border: 0; padding: 0; margin: 0; gap: 10px; }
.char-wants legend { font-size: .9rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.char-choice, .char-consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); cursor: pointer; line-height: 1.45; }
.char-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.char-choice input, .char-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.char-consent { font-size: .9rem; color: var(--text); }
@media (max-width: 640px) {
  .char-drop { justify-content: center; text-align: center; }
  .char-pick { width: 100%; }
  .char-previews li { width: calc(33.333% - 8px); height: auto; aspect-ratio: 1; }
}
.char-outfit { border: 0; padding: 0; margin: 0; gap: 8px; }
.char-outfit legend { font-size: .9rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.char-outfit > small { color: var(--text-dim); font-size: .85rem; }
.char-outfit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 8px; }
@media (max-width: 640px) { .char-outfit-grid { grid-template-columns: 1fr; } }
.redeem-soon { max-width: 850px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.redeem-soon-badge { display: inline-block; padding: 8px 14px; margin: 0 0 20px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.redeem-soon h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 18px; }
.redeem-soon > p:not(.redeem-soon-badge) { color: var(--text-dim); line-height: 1.7; }
.redeem-soon-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 32px 0; text-align: start; }
.redeem-soon-details > div { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.redeem-soon-details h4 { margin: 0 0 10px; font-size: 1rem; }
.redeem-soon-details p { color: var(--text-dim); line-height: 1.65; margin: 0; }
.redeem-soon .button:disabled { opacity: .65; cursor: not-allowed; }
.redeem-soon-note { font-size: .85rem; margin: 14px 0 0; }
@media (max-width: 600px) { .redeem-soon-details { grid-template-columns: 1fr; gap: 14px; } .redeem-soon .button { width: 100%; } }

/* Sound toggle on the home showreel */
.reel-sound { position: absolute; top: 14px; right: 14px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1; color: #dff8ff; background: rgba(3,10,22,.72); border: 1px solid #3984b4; border-radius: 50%;
  cursor: pointer; box-shadow: 0 0 18px #008dff33; backdrop-filter: blur(6px); transition: transform .2s var(--ease), box-shadow .2s; }
.reel-sound:hover { transform: scale(1.08); box-shadow: 0 0 26px #0095ff66; }
.reel-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reel-sound.is-on { background: linear-gradient(135deg,#a6efff,#38b5ff); color: #031a29; border-color: #a6efff; }
.reel-sound[hidden] { display: none; }
.reel-sound.is-play { top: 50%; left: 50%; right: auto; width: 88px; height: 88px; font-size: 2rem; transform: translate(-50%,-60%);
  color: #031a29; background: linear-gradient(135deg,#a6efff,#38b5ff); border-color: #a6efff; box-shadow: 0 0 40px #0095ff88; padding-left: 6px; }
.reel-sound.is-play:hover { transform: translate(-50%,-60%) scale(1.08); }

/* News sign-up (home) — reuses the learnForm submit code in forms.js */
.home-news { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px,4vw,56px); align-items: center; margin: 8px 0 28px;
  padding: clamp(24px,4vw,44px); border: 1px solid #234967; border-top: 2px solid #479fce; border-radius: 16px;
  background: radial-gradient(ellipse at 100% 0, #0b3a6e66 0, transparent 60%), linear-gradient(135deg,#0c2440ef,#061120fa);
  box-shadow: inset 0 1px 0 #b1edff0d, 0 0 46px #008cff1a; scroll-margin-top: 90px; }
.home-news h2 { margin: 6px 0 12px; font-size: clamp(1.6rem,3.4vw,2.3rem); font-style: italic; font-weight: 900; letter-spacing: -.02em; }
.news-lead { margin: 0 0 18px; color: var(--text-dim); line-height: 1.7; max-width: 52ch; }
.news-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.news-perks li { display: flex; gap: 10px; align-items: center; color: #cfefff; font-weight: 600; font-size: .95rem; }
.news-copy, .news-form { min-width: 0; overflow-wrap: anywhere; }
.news-form { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 12px; background: #030914b3; border: 1px solid #245784; }
.news-label { font-weight: 700; font-size: .9rem; color: #9de8ff; letter-spacing: .04em; }
.news-row { display: flex; gap: 10px; }
.news-input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 8px; border: 1px solid #3777a9; background: #061325; color: var(--text); font: inherit; }
.news-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.news-send { white-space: nowrap; }
.news-send[disabled] { opacity: .55; cursor: default; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-dim); line-height: 1.55; cursor: pointer; }
.news-consent input { margin-top: 3px; accent-color: #38b5ff; width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 860px) { .home-news { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .news-row { flex-direction: column; } .news-perks { grid-template-columns: 1fr; } }

/* Keyboard users: first Tab press reveals a "Skip to content" link so they
   do not have to tab through the menu and language buttons every visit. */
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #04191d; font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus-visible { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
main:focus { outline: none; }

/* 404.html reuses the tab bar with plain links instead of tab buttons. */
a.tab { text-decoration: none; display: inline-flex; align-items: center; }

/* Scroll hint for the tab strip on phones (classes set by app.js). */
.tabs.has-more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.tabs.has-more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
.tabs.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
[dir="rtl"] .tabs.has-more-end { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
[dir="rtl"] .tabs.has-more-start { -webkit-mask-image: linear-gradient(to left, transparent, #000 36px); mask-image: linear-gradient(to left, transparent, #000 36px); }
[dir="rtl"] .tabs.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to left, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

.giveaway-hero {padding:clamp(28px,6vw,70px);border:1px solid #4bd8a34d;border-radius:24px;background:radial-gradient(ellipse at top right,#21825b55,transparent 65%),#101d19;color:#f5fff9;}
.giveaway-eyebrow{color:#82eab7;font-size:.78rem;font-weight:700;letter-spacing:.12em;}
.giveaway-hero h3{font-size:clamp(2.4rem,5vw,4.7rem);line-height:1.05;margin:20px 0;letter-spacing:-.04em;}
.giveaway-hero>p{max-width:650px;line-height:1.7;}
.giveaway-facts{display:flex;flex-wrap:wrap;gap:36px;margin:32px 0;}
.giveaway-facts span{display:flex;flex-direction:column;color:#c6d9cf;}.giveaway-facts strong{font-size:2.3rem;color:#9af6c5;}
.giveaway-deadline{font-size:.9rem;color:#d7e8de;}
.giveaway-heading{margin:40px 0 24px;}.giveaway-heading h3,.giveaway-entry h3{font-size:1.8rem;margin:0 0 14px;}.giveaway-heading p{color:var(--text-dim);max-width:750px;line-height:1.6;}
.giveaway-prizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.giveaway-prize{position:relative;padding:24px;background:var(--bg-raised);border:1px solid var(--border);border-radius:18px;}
.giveaway-prize img{display:block;width:100%;height:190px;object-fit:contain;background:radial-gradient(ellipse,#72dbac1c,transparent 70%);margin:12px auto 24px;}
.giveaway-category{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-dim);}.giveaway-prize h4{font-size:1.15rem;margin:10px 0;}.giveaway-quantity{font-size:.85rem;color:var(--text-dim);}
.giveaway-rare{display:inline-block;padding:6px 9px;background:#17392b;color:#a2f5c8;border-radius:6px;font-size:.7rem;}
.giveaway-entry{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin:40px 0;padding:clamp(22px,4vw,44px);border:1px solid var(--border);border-radius:20px;background:var(--bg-raised);}
.giveaway-entry p,.giveaway-entry li{line-height:1.65;}.giveaway-entry ol{padding-left:20px;}.giveaway-entry li{padding:6px 0;}.giveaway-entry .giveaway-eyebrow{color:var(--text);}
#raffleForm>label:not(.giveaway-consent){display:block;margin:0 0 10px;font-weight:600;}
#raffleForm input[type=email],#raffleForm input[type=text],#raffleForm select{box-sizing:border-box;width:100%;padding:14px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;font:inherit;}
.giveaway-hint{font-weight:400;font-size:.78rem;color:var(--text-dim);margin-left:6px;}
#raffleForm input[type=text],#raffleForm input[type=email]{margin-bottom:16px;}
.giveaway-consent{display:flex;gap:12px;margin:20px 0;font-size:.85rem;line-height:1.6;}.giveaway-consent input{align-self:flex-start;margin-top:5px;flex-shrink:0;}
#raffleSubmit{width:100%;}#raffleSubmit:disabled{opacity:.55;cursor:not-allowed;}#raffleEligibility,#raffleStatus{font-size:.88rem;min-height:1.6em;}.giveaway-privacy{font-size:.78rem;color:var(--text-dim);}.giveaway-rules{padding:24px;border:1px solid var(--border);border-radius:12px;}#raffleRules{white-space:pre-wrap;line-height:1.7;}
/* Live results board (raffle.js) */
.giveaway-board{margin:40px 0;padding:clamp(22px,4vw,40px);border:1px solid #4bd8a34d;border-radius:20px;background:var(--bg-raised);}
.giveaway-board .giveaway-heading{margin:0 0 20px;}
.giveaway-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px;}
.giveaway-stat{padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--bg);}
.giveaway-stat strong{display:block;font-size:2rem;color:#9af6c5;line-height:1.1;}.giveaway-stat span{font-size:.82rem;color:var(--text-dim);}
.giveaway-next{font-size:.92rem;color:#d7e8de;margin:0 0 18px;}
.giveaway-winners{list-style:none;margin:0;padding:0;display:grid;gap:12px;}
.giveaway-winner{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--bg);}
.giveaway-winner img{width:56px;height:56px;object-fit:contain;border-radius:10px;background:radial-gradient(ellipse,#72dbac1c,transparent 70%);}
.giveaway-winner-name{font-weight:700;font-size:1.05rem;word-break:break-word;}.giveaway-winner-meta{font-size:.82rem;color:var(--text-dim);margin-top:2px;}
.giveaway-code{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right;}
.giveaway-code code{font-size:1rem;letter-spacing:.08em;padding:6px 10px;border-radius:8px;background:#17392b;color:#a2f5c8;}
.giveaway-code small{font-size:.72rem;color:var(--text-dim);max-width:220px;}
.giveaway-code button{font:inherit;font-size:.78rem;padding:5px 10px;border-radius:7px;border:1px solid #4bd8a380;background:transparent;color:#a2f5c8;cursor:pointer;}
.giveaway-locked{font-size:.8rem;color:var(--text-dim);}
.giveaway-empty{color:var(--text-dim);}
@media(max-width:700px){.giveaway-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.giveaway-winner{grid-template-columns:auto 1fr;}.giveaway-code{grid-column:1/-1;align-items:flex-start;text-align:left;}}
@media(max-width:800px){.giveaway-prizes{grid-template-columns:repeat(2,minmax(0,1fr));}.giveaway-entry{grid-template-columns:1fr;gap:24px;}}
@media(max-width:480px){.giveaway-prizes{grid-template-columns:1fr;}.giveaway-prize img{height:180px;}.giveaway-facts{gap:22px;}}

/* Character Studio: how it works (2026-10-27) */
.studio-steps { margin: 0 0 40px; text-align: start; }
.studio-steps h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.studio-steps-intro { margin: 0 0 20px; color: var(--text-dim); }
.studio-steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.studio-step { margin: 0; border: 1px solid #31516b; border-radius: 16px; overflow: hidden; background: var(--surface); }
.studio-step img { display: block; width: 100%; height: auto; }
.studio-step figcaption { padding: 12px 16px; font-weight: 700; }
.studio-step:last-child { grid-column: 1 / -1; }
@media (max-width: 700px) { .studio-steps-grid { grid-template-columns: 1fr; } }

/* Daily public code drops */
.drop-countdown{font:700 clamp(2rem,8vw,4.5rem)/1.2 monospace;letter-spacing:.04em;margin:1.2rem 0;color:#fff;font-variant-numeric:tabular-nums}.drop-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.drop-card{padding:24px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:rgba(255,255,255,.04)}.drop-card h4{margin:0 0 8px;font-size:1.15rem}.drop-card p{font-size:.85rem;opacity:.7}.drop-card code{display:block;font-size:1.25rem;letter-spacing:.06em;overflow-wrap:anywhere;color:#f1c96a;margin:20px 0;user-select:all}.drop-card .button{cursor:pointer}

.drop-card .drop-thumbnail{display:block;width:100%;height:170px;object-fit:contain;margin:0 auto 18px;background:radial-gradient(ellipse,#72dbac1c,transparent 70%)}.drop-card .drop-availability{opacity:1;color:var(--text-dim)}.drop-card button:disabled{opacity:.55;cursor:default}

/* Distinguish today’s releases without hiding older rewards. */
.drop-age-badge{display:inline-block;margin:0 0 16px;padding:6px 10px;border-radius:6px;background:rgba(255,255,255,.08);color:var(--text-dim);font-size:.72rem;font-weight:800;letter-spacing:.07em}.drop-card-today{border:2px solid #72dbac;background:linear-gradient(145deg,rgba(114,219,172,.1),rgba(255,255,255,.03))}.drop-card-today .drop-age-badge{background:#72dbac;color:#10251c}#earlierTitle{margin-top:2.5rem}

/* Store shopping flow — November 2026 */
#panel-store .panel-head { text-align: start; margin-bottom: 24px; }
#panel-store .store-categories { justify-content: flex-start; gap: 8px; margin-bottom: 18px; }
#panel-store .store-search { max-width: none; margin-bottom: 8px; }
.store-result-count { color: var(--text-dim); font-size: .85rem; margin: 8px 0 24px; }
#panel-store .store-block { margin-top: 32px; }
.store-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.store-section-head .tier-head { margin: 0; }
.store-section-intro { color: var(--text-dim); max-width: 76ch; line-height: 1.65; margin: 8px 0 22px; }
.store-language { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--text-dim); }
.store-language select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font: inherit; }
#storeSoftware { grid-template-columns: repeat(2,minmax(0,1fr)); }
#panel-store .store-card { position: relative; display: flex; flex-direction: column; padding: 20px; gap: 14px; }
#panel-store .store-card[hidden] { display: none; }
#panel-store .store-card-head { align-items: flex-start; gap: 14px; margin: 0; }
#panel-store .store-card-name { font-size: 1.15rem; line-height: 1.35; }
#panel-store .store-card-price { font-size: 1.05rem; flex-shrink: 0; white-space: nowrap; }
#panel-store .store-card-meta { color: var(--accent); font-size: .8rem; font-weight: 700; margin: 0; order: -2; }
#panel-store .store-shots { margin: 0; width: 100%; border-radius: 10px; aspect-ratio: 16/10; overflow: hidden; }
#storeCourses .store-shots { aspect-ratio: 16/10; background: #080d13; }
#storeCourses .store-shot { object-fit: contain; }
#panel-store .store-card-desc { margin: 0; font-size: .92rem; line-height: 1.6; }
.store-product-details { font-size: .85rem; color: var(--text-dim); line-height: 1.6; }
.store-product-details summary { cursor: pointer; color: var(--text); padding: 4px 0; }
.store-product-details p { margin: 8px 0; }
#panel-store .store-card-buy { margin-top: auto; text-align: center; padding: 12px; border: 1px solid var(--border-lit); border-radius: 9px; background: var(--accent-soft); }
.store-guide { display: inline-block; margin-top: 14px; font-size: .9rem; color: var(--accent); }
.store-language select:focus-visible, .store-product-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media(max-width:640px) { #storeSoftware { grid-template-columns: 1fr; } #panel-store .store-card { padding: 16px; } .store-language { width: 100%; justify-content: space-between; } #panel-store .store-categories .button { font-size: .85rem; padding: 10px 12px; } }

#panel-store .panel-head p { margin-inline: 0; }
