/* দেশি টাইপ — light theme only, mobile first. */

:root {
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --text: #1E1E1E;
  --muted: #6B6B6B;
  --border: #EDE7DD;
  --primary: #0F7B5F;
  --primary-press: #0C664F;
  --accent: #E63946;
  --accent-soft: #FDEDEE;
  --gold: #B8860B;

  --radius: 18px;
  --radius-sm: 16px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(30, 30, 30, 0.08), 0 1px 3px rgba(30, 30, 30, 0.05);
  --shadow-sm: 0 2px 10px rgba(30, 30, 30, 0.05);

  --head: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
  --body: "Hind Siliguri", "Baloo Da 2", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Per-type colours, set from data on the result screen and on tiles/chips. */
  --t-bg: #E6FCF5;
  --t-accent: var(--primary);

  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  animation: screen-in 0.35s var(--ease) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- brand ---------- */

.brand-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 8px;
}

/* The full logo (assets/brand/logo.svg: mark + দেশি টাইপ + deshitype.com), 56px tall. */
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  min-height: 60px;
  font-size: 20px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 123, 95, 0.24);
}

.btn-primary:active {
  background: var(--primary-press);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* The result actions: outlined in the result type's colour, no fill. */
.btn-outline {
  background: transparent;
  color: var(--t-accent, var(--primary));
  border: 2px solid var(--t-accent, var(--primary));
}

.btn-outline:active {
  background: var(--t-bg, transparent);
}

/* ডাউনলোড করো: the result type's colour (the result screen sets --t-accent). */
.btn-type {
  background: var(--t-accent, #1971C2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 30, 30, 0.18);
}

.btn-type:active {
  filter: brightness(0.88);
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .btn-type {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--t-accent, #1971C2) 28%, transparent);
  }
}

.btn-icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 14px;
  background: none;
  border: 0;
  color: var(--primary);
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.94);
}

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1.5px solid rgba(30, 30, 30, 0.08);
  border-radius: 999px;
  background: var(--t-bg);
  color: var(--text);
  font-family: var(--head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: transform 0.12s ease;
}

button.chip {
  min-height: 52px;
}

button.chip:active {
  transform: scale(0.96);
}

/* Bangla digits inside body text: the headline font, whose digit shapes are the familiar ones. */
.num {
  font-family: var(--head);
}

.chip-code {
  color: var(--t-accent);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.chip-title {
  font-weight: 600;
  padding-top: 1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* "৮৩% মিল" next to the best-match chips, in the result type's colours. */
.match-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 2px solid var(--t-accent);
  border-radius: 999px;
  background: var(--t-bg);
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}

/* ডাউনলোড করো, last item in the name/photo box. */
.personalize .btn {
  margin-top: 4px;
}

/* ---------- 1–2. home ---------- */

.screen-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
}

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

/* The illustration above the title: the types taking turns on the home screen,
   or the friend's type on a challenge link. Rounded corners, so nothing is cut off. */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--t-bg);
  transition: background-color 0.45s ease;
}

.hero-art img {
  display: block;
  width: 140px;
  height: 140px;
}

/* Taking turns: the next one slides in from the left, the old one out to the right. */
.hero-art .slide-in {
  animation: art-in 0.45s var(--ease) both;
}

.hero-art .slide-out {
  position: absolute;
  top: 12px;
  left: 12px;
  animation: art-out 0.45s var(--ease) both;
}

@keyframes art-in {
  from { transform: translateX(-130%); }
  to { transform: none; }
}

@keyframes art-out {
  from { transform: none; }
  to { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .slide-in,
  .hero-art .slide-out {
    animation: none;
  }
}

.hero-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.hero-title,
.hero-sub {
  overflow-wrap: anywhere;
}

.hero-title strong,
.hero-sub strong {
  unicode-bidi: isolate;
}

.hero-title strong {
  color: var(--primary);
}

.hero-sub {
  margin-top: 14px;
  color: #454545;
  font-size: 18px;
  line-height: 1.6;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

/* Six types as a teaser: illustration + code, three to a row. */
.teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.teaser-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 90px;
  padding: 6px 6px 4px;
  border: 1.5px solid rgba(30, 30, 30, 0.08);
  border-radius: var(--radius-sm);
  background: var(--t-bg);
}

.teaser-art {
  display: block;
  width: 56px;
  height: 56px;
}

.teaser-code {
  font-family: var(--head);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--t-accent);
}

.screen-home .link-btn {
  align-self: center;
  margin-top: 10px;
}

.site-footer {
  margin-top: auto;
  padding-top: 32px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 3. quiz ---------- */

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.back-link {
  min-height: 52px;
  margin-left: -10px;
  padding: 8px 10px;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
}

.counter {
  font-family: var(--head);
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  padding-top: 2px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.35s var(--ease);
}

.question-wrap {
  padding-top: 28px;
}

.question {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(23px, 6.4vw, 28px);
  line-height: 1.4;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.option {
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.option:active {
  transform: scale(0.98);
}

.option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16);
}

/* ছেলে / মেয়ে screen: the question sits where question 1 does (below the 52px top row and the progress bar). */
.screen-gender .question-wrap {
  padding-top: 88px;
}

.gender-options .option {
  text-align: center;
}

.gender-skip {
  display: flex;
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.slide-next {
  animation: slide-from-right 0.32s var(--ease) both;
}

.slide-prev {
  animation: slide-from-left 0.32s var(--ease) both;
}

@keyframes slide-from-right {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-from-left {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 4. loading ---------- */

.screen-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
  text-align: center;
}

.loader-cup {
  font-size: 76px;
  line-height: 1;
  animation: bounce 0.9s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-22px) rotate(-6deg); }
  60% { transform: translateY(0) rotate(4deg); }
}

.loader-line {
  min-height: 3.4em;
  max-width: 300px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}

.line-in {
  animation: line-in 0.3s var(--ease) both;
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 5. result ---------- */

.section-title,
.result-intro {
  margin: 16px 0 12px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
}

.card-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1350;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.compat {
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1.5px dashed var(--border);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-row .btn {
  font-size: 16px;
  padding: 8px 12px;
}

.desc {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.75;
}

.traits {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.trait {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--t-accent);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.trait-label {
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: var(--t-accent);
}

.trait-text {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.6;
}

.quote {
  margin: 18px 0 0;
  padding: 18px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--t-bg);
  text-align: center;
}

.quote-label {
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: var(--t-accent);
}

.quote-text {
  margin: 8px 0 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(16px, 4.4vw, 18px);
  line-height: 1.45;
}

.profile {
  margin-top: 18px;
  padding: 16px 18px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.profile-title {
  margin-bottom: 12px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
}

.dim-list {
  display: grid;
  gap: 12px;
}

.dim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 3.6em;
  align-items: center;
  gap: 10px;
}

.dim-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
}

.dim-emoji {
  flex: none;
  font-size: 18px;
  line-height: 1;
}

.dim-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.dim-bar i {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
}

.dim-bar i.on {
  background: var(--t-accent);
}

.dim-word {
  font-family: var(--head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--t-accent);
  text-align: right;
}

/* Small phones (320px): narrower bars so the longest names stay on one line. */
@media (max-width: 359px) {
  .dim-row {
    grid-template-columns: minmax(0, 1fr) 56px auto;
    gap: 8px;
  }

  .dim-name {
    gap: 6px;
    font-size: 14.5px;
  }
}

.sheet-dims {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.relations {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.rel-label {
  margin-bottom: 8px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
}

.personalize {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.field-label {
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.text-input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--body);
  font-size: 17px; /* ≥16px stops iOS from zooming in */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.15);
}

.photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1.5px dashed #CFC6B8;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.photo-btn:active {
  transform: scale(0.98);
}

#photo-input:focus-visible + .photo-btn {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}


.photo-icon {
  font-size: 20px;
  line-height: 1;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-bottom: 8px;
}

.actions .link-btn {
  justify-self: center;
}

/* ---------- 6. gallery ---------- */

.gallery-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 18px;
}

.gallery-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 52px;
  padding: 14px 14px 16px;
  border: 1.5px solid rgba(30, 30, 30, 0.07);
  border-radius: var(--radius);
  background: var(--t-bg);
  text-align: left;
  transition: transform 0.12s ease;
}

button.type-tile:active {
  transform: scale(0.97);
}

.tile-art {
  display: block;
  width: 112px;
  height: 112px;
}

/* The 🔒 on the locked tile. */
.tile-emoji {
  font-size: 34px;
  line-height: 1.2;
}

.tile-code {
  margin-top: 4px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: var(--t-accent);
}

.tile-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}

.tile-tagline {
  margin-top: 4px;
  color: #4F4F4F;
  font-size: 13.5px;
  line-height: 1.5;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .chip {
    border-color: color-mix(in srgb, var(--t-accent) 22%, transparent);
  }

  .type-tile:not(.tile-locked):not(.tile-rare) {
    border-color: color-mix(in srgb, var(--t-accent) 18%, transparent);
  }
}

.tile-locked,
.tile-rare {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}

.tile-locked {
  border: 2px dashed var(--gold);
  background: #FFF7E6;
}

.tile-locked .tile-title {
  margin-top: 4px;
  color: var(--gold);
}

.tile-rare {
  border: 2px solid var(--gold);
}

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  background: rgba(30, 30, 30, 0.45);
  animation: fade-in 0.2s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-overlay {
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px max(28px, env(safe-area-inset-bottom));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--card);
  box-shadow: 0 -8px 30px rgba(30, 30, 30, 0.15);
  animation: sheet-up 0.3s var(--ease) both;
}

@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.sheet-close,
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  font-size: 18px;
}

.sheet-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px 22px;
  border-radius: var(--radius);
  background: var(--t-bg);
  text-align: center;
}

.sheet-title + .rare-pill {
  margin: 8px 0 2px;
}

.rare-pill {
  margin-bottom: 10px;
  padding: 5px 14px 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.sheet-art {
  display: block;
  width: 180px;
  height: 180px;
  margin-bottom: 6px;
}

/* The 🔒 on the locked sheet. */
.sheet-emoji {
  font-size: 60px;
  line-height: 1.15;
}

.sheet-code {
  font-family: var(--head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  color: var(--t-accent);
}

.sheet-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.35;
}

.sheet-tagline {
  margin-top: 6px;
  color: #4F4F4F;
  font-size: 16px;
  line-height: 1.6;
}

.sheet-hero-locked {
  border: 2px dashed var(--gold);
  background: #FFF7E6;
}

.sheet-hero-locked .sheet-title {
  margin-top: 6px;
  color: var(--gold);
}

.sheet-cta {
  margin-top: 18px;
}

.sheet-desc {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.75;
}

.modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  animation: screen-in 0.25s var(--ease) both;
}

.save-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58vh;
  max-height: 58dvh;
  margin: 60px auto 4px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  -webkit-touch-callout: default;
  user-select: auto;
}

.save-text {
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
}

.save-hint {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
