/* =========================================================
   یک هدیهٔ کوچک — استایل‌ها
   موبایل‌اول، بدون هیچ کتابخانهٔ بیرونی
   ========================================================= */

:root{
  --rose:#e0577f;
  --rose-deep:#b83a63;
  --rose-soft:#ffd9e5;
  --ink:#20202a;
  --ink-soft:#5f6273;
  --line:#e3e5ec;
  --radius:26px;
  --shadow-s:0 2px 10px rgba(30,20,40,.06);
  --shadow-m:0 10px 30px rgba(180,60,110,.13);
  --shadow-l:0 22px 60px rgba(140,40,90,.20);
  --fa:'Vazirmatn','IRANSansX','IRANSans','Segoe UI',Tahoma,system-ui,sans-serif;
  --en:'Playfair Display','Georgia','Times New Roman',serif;
  --ease:cubic-bezier(.22,.9,.28,1);
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--fa);
  color:var(--ink);
  background:#fff;
  min-height:100dvh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
svg{width:100%;height:100%;fill:currentColor;display:block}
[hidden]{display:none !important}

/* =========================================================
   ۱) صفحهٔ جستجو
   ========================================================= */
.search-screen{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px 20px calc(48px + env(safe-area-inset-bottom));
  background:#fff;
  transition:opacity .5s var(--ease), transform .7s var(--ease), filter .5s var(--ease);
}
.search-screen.fade-out{
  opacity:0;
  transform:scale(1.06);
  filter:blur(8px);
  pointer-events:none;
}
.search-wrap{width:100%;max-width:600px;text-align:center}

/* --- لوگو (طراحی اختصاصی) --- */
.wordmark{
  font-family:var(--en);
  font-size:clamp(52px,17vw,84px);
  font-weight:700;
  letter-spacing:.01em;
  margin:0 0 30px;
  direction:ltr;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.02em;
  line-height:1;
  user-select:none;
  animation:pop .8s var(--ease) both;
}
.wordmark span{display:inline-block}
.wordmark .w1{color:#e0577f}
.wordmark .w3{color:#8f7ad6}
.wordmark .w4{color:#f0a03c}
.wordmark .w-heart{
  width:.78em;height:.72em;
  color:#ee4f6f;
  margin:0 .04em;
  transform:translateY(.06em);
  animation:beat 2.4s ease-in-out infinite;
}
@keyframes beat{0%,100%{transform:translateY(.06em) scale(1)}12%{transform:translateY(.06em) scale(1.14)}24%{transform:translateY(.06em) scale(1)}36%{transform:translateY(.06em) scale(1.09)}}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:none}}

/* --- نوار جستجو --- */
.search-box{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  height:52px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadow-s);
  transition:box-shadow .25s,border-color .25s,transform .25s var(--ease);
  animation:pop .8s .06s var(--ease) both;
}
.search-box:hover{box-shadow:0 4px 18px rgba(30,20,40,.10);border-color:#d7dae3}
.search-box:focus-within{
  box-shadow:0 6px 24px rgba(224,87,127,.18);
  border-color:var(--rose-soft);
}
.icon-search{width:20px;height:20px;flex:none;color:#9aa0ad}
.icon-clear{width:22px;height:22px;flex:none;color:#b6bac4;padding:0;transition:color .2s}
.icon-clear:hover{color:var(--rose)}
.search-input{
  flex:1;min-width:0;
  border:0;outline:0;background:none;
  font:inherit;font-size:16.5px;
  color:var(--ink);
  height:100%;
  padding:0;
}
.search-input::placeholder{color:#a2a7b3}
.search-input::-webkit-search-cancel-button{display:none}

.btn-row{
  display:flex;justify-content:center;gap:12px;
  margin:26px 0 4px;
  animation:pop .8s .12s var(--ease) both;
}
.s-btn{
  padding:10px 18px;
  font-size:14px;
  color:#3c3f4c;
  background:#f7f8fa;
  border:1px solid transparent;
  border-radius:10px;
  transition:.2s var(--ease);
}
.s-btn:hover{
  background:#fff;
  border-color:#dfe2e9;
  box-shadow:var(--shadow-s);
  transform:translateY(-1px);
  color:var(--rose-deep);
}

/* --- پیام نتیجه‌ای یافت نشد --- */
.no-result{
  margin:20px auto 0;
  max-width:440px;
  text-align:right;
  padding:14px 16px;
  border-radius:14px;
  background:#fafafb;
  border:1px solid #eceef3;
  animation:shake .45s var(--ease) both;
}
.nr-title{display:block;font-size:15.5px;font-weight:700;color:#2b2d38}
.nr-sub{display:block;margin-top:6px;font-size:13px;color:var(--ink-soft);line-height:1.9}
@keyframes shake{0%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}100%{transform:none}}

/* --- پیشنهادها --- */
.suggest{margin-top:34px;animation:pop .8s .18s var(--ease) both}
.suggest-title{
  font-size:13.5px;
  letter-spacing:.02em;
  color:#8b8f9c;
  margin:0 0 12px;
  direction:ltr;
}
.suggest-list{
  list-style:none;margin:0;padding:0;
  border:1px solid #edeff4;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-s);
}
.suggest-item{
  display:flex;align-items:center;gap:12px;
  width:100%;
  padding:14px 16px;
  font-size:15.5px;
  text-align:right;
  border-bottom:1px solid #f2f3f7;
  transition:background .18s,padding .25s var(--ease);
}
.suggest-list li:last-child .suggest-item{border-bottom:0}
.suggest-item:hover,.suggest-item:focus-visible{background:#fdf4f7;outline:0;padding-inline-start:22px}
.suggest-item .si-icon{width:17px;height:17px;flex:none;color:#b0b5c0;transition:color .2s}
.suggest-item:hover .si-icon{color:var(--rose)}
.suggest-item .si-text{flex:1}
.suggest-item .si-heart{opacity:0;transition:opacity .2s;font-size:13px}
.suggest-item:hover .si-heart{opacity:1}

/* --- نوار لودینگ --- */
.load-bar{
  position:fixed;inset-inline:0;top:0;height:3px;
  background:rgba(224,87,127,.15);
  overflow:hidden;z-index:50;
}
.load-bar span{
  position:absolute;inset-block:0;width:40%;
  background:linear-gradient(90deg,#f0a03c,#ee4f6f,#8f7ad6);
  animation:slide 1s linear infinite;
}
@keyframes slide{from{inset-inline-start:-40%}to{inset-inline-start:100%}}

/* =========================================================
   ۲) صفحهٔ نتیجه
   ========================================================= */
.result-screen{
  position:relative;
  min-height:100dvh;
  background:
    radial-gradient(1200px 700px at 85% -8%, #ffe3ee 0%, rgba(255,227,238,0) 60%),
    radial-gradient(900px 600px at 5% 12%, #f2e7ff 0%, rgba(242,231,255,0) 55%),
    linear-gradient(180deg,#fff7fa 0%,#ffeef5 32%,#fde8f1 62%,#f6ecfb 100%);
  overflow-x:hidden;
  opacity:0;
  transition:opacity 1s var(--ease);
}
.result-screen.visible{opacity:1}

.fx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.hearts{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.heart{
  position:absolute;bottom:-8vh;
  color:rgba(232,110,150,.55);
  animation:rise linear forwards;
  will-change:transform,opacity;
}
@keyframes rise{
  0%{transform:translateY(0) scale(.6) rotate(0);opacity:0}
  10%{opacity:1}
  90%{opacity:.9}
  100%{transform:translateY(-115vh) scale(1.05) rotate(var(--spin,20deg));opacity:0}
}

/* --- نوار بالای نتایج (سبک صفحهٔ نتایج تصویری) --- */
.res-header{
  position:sticky;top:0;z-index:20;
  padding:calc(10px + env(safe-area-inset-top)) 14px 0;
  background:linear-gradient(180deg,rgba(255,250,252,.96) 60%,rgba(255,250,252,.72));
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(224,87,127,.14);
  animation:down .7s var(--ease) both;
}
@keyframes down{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:none}}
.res-bar{display:flex;align-items:center;gap:10px}
.res-logo{
  font-family:var(--en);font-weight:700;font-size:22px;line-height:1;
  direction:ltr;display:flex;align-items:center;gap:.02em;flex:none;padding:4px 2px;
  transition:transform .25s var(--ease);
}
.res-logo:hover{transform:scale(1.06)}
.res-logo .w1{color:#e0577f}
.res-logo .w3{color:#8f7ad6}
.res-logo .w4{color:#f0a03c}
.res-logo .w-heart{width:.8em;height:.74em;color:#ee4f6f;transform:translateY(.06em)}
.res-search{
  flex:1;min-width:0;
  display:flex;align-items:center;gap:9px;
  height:44px;padding:0 15px;
  background:#fff;border:1px solid rgba(224,87,127,.22);
  border-radius:999px;box-shadow:0 3px 12px rgba(180,70,120,.10);
}
.res-search .icon-search{width:17px;height:17px;flex:none;color:#c48ba5}
.res-query{
  flex:1;min-width:0;font-size:14.5px;color:#4a3540;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.res-heart{font-size:13px;flex:none}

.res-tabs{
  display:flex;gap:4px;margin-top:8px;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.res-tabs::-webkit-scrollbar{display:none}
.tab{
  position:relative;flex:none;
  padding:9px 14px 11px;
  font-size:14px;color:#96707f;white-space:nowrap;
  transition:color .2s;
}
.tab::after{
  content:'';position:absolute;inset-inline:8px;bottom:0;height:3px;border-radius:3px 3px 0 0;
  background:var(--rose);transform:scaleX(0);transition:transform .3s var(--ease);
}
.tab:hover{color:var(--rose-deep)}
.tab.is-active{color:var(--rose-deep);font-weight:700}
.tab.is-active::after{transform:scaleX(1)}

.res-stats{
  position:relative;z-index:2;
  margin:12px 18px 14px;font-size:12px;color:#b0879a;text-align:right;
  animation:up .8s .15s var(--ease) both;
}

/* --- نتیجهٔ برتر --- */
.hero{
  position:relative;z-index:2;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;
  padding:38px 22px 30px;
}
.hero-kicker{
  font-size:12.5px;color:#b06a89;letter-spacing:.04em;
  margin:0 0 18px;opacity:0;animation:up .9s .25s var(--ease) forwards;
}
.hero-title{
  margin:0;
  font-size:clamp(56px,20vw,120px);
  font-weight:800;
  line-height:1.05;
  background:linear-gradient(120deg,#f0709a 0%,#e0577f 35%,#a06ad0 100%);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;
  text-shadow:0 12px 40px rgba(224,87,127,.18);
  opacity:0;animation:up 1.1s .4s var(--ease) forwards;
}
.hero-sub{
  margin:22px 0 0;
  font-size:clamp(15px,4.3vw,20px);
  line-height:2.1;
  color:#7a4c62;
  max-width:520px;
  opacity:0;animation:up 1.1s .65s var(--ease) forwards;
}
@keyframes up{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* --- گالری --- */
.gallery-section{position:relative;z-index:2;padding:0 14px 26px;max-width:1180px;margin:0 auto}
.gallery{
  columns:2;
  column-gap:12px;
}
.g-item{
  break-inside:avoid;
  margin:0 0 12px;
  border-radius:18px;
  overflow:hidden;
  background:#fff0f5;
  box-shadow:0 6px 18px rgba(170,70,115,.12);
  cursor:zoom-in;
  position:relative;
  opacity:0;
  transform:translateY(26px) scale(.97);
  transition:opacity .7s var(--ease),transform .7s var(--ease),box-shadow .35s var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.g-item.in{opacity:1;transform:none}
.g-item img{
  width:100%;height:auto;
  transition:transform .6s var(--ease),filter .4s;
  background:linear-gradient(135deg,#ffe6ef,#f4e7ff);
}
.g-item:hover{box-shadow:0 18px 40px rgba(170,60,110,.24);transform:translateY(-6px)}
.g-item:hover img{transform:scale(1.05)}
.g-item::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(90,25,55,.35));
  opacity:0;transition:opacity .35s;
}
.g-item:hover::after{opacity:1}
.g-cap{
  position:absolute;inset-inline:12px;bottom:10px;z-index:2;
  color:#fff;font-size:12.5px;
  text-shadow:0 1px 6px rgba(0,0,0,.5);
  opacity:0;transform:translateY(6px);
  transition:.35s var(--ease);
}
.g-item:hover .g-cap{opacity:1;transform:none}
.gallery-empty{
  text-align:center;color:#9b6d83;font-size:14px;line-height:2;
  background:rgba(255,255,255,.6);border:1px dashed #eec3d5;
  border-radius:16px;padding:20px;
}
.gallery-empty code{background:#fff;padding:2px 7px;border-radius:6px;color:var(--rose-deep);direction:ltr;display:inline-block}

/* =========================================================
   ۳) نمایشگر تمام‌صفحه
   ========================================================= */
.viewer{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center}
.viewer-backdrop{
  position:absolute;inset:0;
  background:rgba(22,8,16,.86);
  -webkit-backdrop-filter:blur(22px) saturate(120%);
  backdrop-filter:blur(22px) saturate(120%);
  opacity:0;transition:opacity .35s var(--ease);
}
.viewer.open .viewer-backdrop{opacity:1}
.viewer-stage{
  position:relative;z-index:2;margin:0;
  max-width:94vw;max-height:88dvh;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  transform:scale(.86);opacity:0;
  transition:transform .42s var(--ease),opacity .32s var(--ease);
  touch-action:pan-y;
}
.viewer.open .viewer-stage{transform:scale(1);opacity:1}
.viewer-stage img{
  max-width:94vw;max-height:78dvh;
  width:auto;height:auto;
  border-radius:16px;
  box-shadow:0 30px 90px rgba(0,0,0,.6);
  user-select:none;
}
.viewer-cap{color:rgba(255,255,255,.86);font-size:13.5px;text-align:center;min-height:1em}
.viewer-count{
  position:absolute;z-index:3;
  top:calc(24px + env(safe-area-inset-top));right:22px;
  color:rgba(255,255,255,.7);font-size:13px;direction:ltr;letter-spacing:.05em;
}
.v-btn{
  position:absolute;z-index:3;
  display:grid;place-items:center;
  width:46px;height:46px;padding:11px;
  color:#fff;border-radius:50%;
  background:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background .2s,transform .2s var(--ease),opacity .2s;
}
.v-btn:hover{background:rgba(255,255,255,.24);transform:scale(1.08)}
.v-close{top:calc(14px + env(safe-area-inset-top));left:14px}
.v-prev{inset-inline-start:10px;top:50%;margin-top:-23px}
.v-next{inset-inline-end:10px;top:50%;margin-top:-23px}
.v-prev svg,.v-next svg{transform:scaleX(1)}
@media (max-width:700px){
  .v-prev,.v-next{display:none}
  .viewer-stage img{max-height:72dvh}
}

/* =========================================================
   ۴) پیام صوتی
   ========================================================= */
.voice-section{
  position:relative;z-index:2;
  max-width:520px;margin:0 auto;padding:6px 20px 34px;text-align:center;
}
.voice-hint{margin:0 0 12px;font-size:13.5px;color:#a3708a}
.voice-card{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  border-radius:22px;
  background:linear-gradient(140deg,#fff 0%,#fff2f7 100%);
  border:1px solid rgba(224,87,127,.22);
  box-shadow:0 12px 34px rgba(170,60,110,.16);
  transition:box-shadow .35s var(--ease),transform .35s var(--ease);
}
.voice-section.playing .voice-card{
  box-shadow:0 14px 40px rgba(224,87,127,.30),0 0 0 4px rgba(255,255,255,.5);
  transform:translateY(-2px);
}
.v-play{
  flex:none;display:grid;place-items:center;
  width:48px;height:48px;padding:13px;
  color:#fff;border-radius:50%;
  background:linear-gradient(150deg,#ee6f95,#d4356c);
  box-shadow:0 6px 18px rgba(200,50,100,.38);
  transition:transform .2s var(--ease),box-shadow .2s;
}
.v-play:hover{transform:scale(1.06)}
.v-play:active{transform:scale(.96)}
.v-play .ic-pause{display:none}
.voice-section.playing .v-play .ic-play{display:none}
.voice-section.playing .v-play .ic-pause{display:block}
.voice-section.playing .v-play{animation:pulse 2s ease-in-out infinite}
@keyframes pulse{
  0%,100%{box-shadow:0 6px 18px rgba(200,50,100,.38),0 0 0 0 rgba(224,87,127,.35)}
  60%{box-shadow:0 6px 18px rgba(200,50,100,.38),0 0 0 12px rgba(224,87,127,0)}
}
.wave{
  flex:1;min-width:0;height:40px;
  display:flex;align-items:center;gap:2px;
  cursor:pointer;   /* راست‌چین: موج از سمت راست (کنار دکمهٔ پخش) پر می‌شود */
}
.wave:focus-visible{outline:2px solid rgba(224,87,127,.5);outline-offset:4px;border-radius:8px}
.wave .bar{
  flex:1;min-width:2px;border-radius:2px;
  background:rgba(224,87,127,.26);
  transition:background .2s,transform .2s var(--ease);
  transform-origin:center;
}
.wave .bar.on{background:linear-gradient(180deg,#ee6f95,#c9356a)}
.voice-section.playing .wave .bar.on{animation:jiggle 1s ease-in-out infinite}
@keyframes jiggle{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.62)}}
.v-time{flex:none;font-size:12.5px;color:#a3708a;min-width:34px;direction:ltr}

/* =========================================================
   ۵) نامه
   ========================================================= */
.letter-section{position:relative;z-index:2;padding:20px 20px 70px;max-width:760px;margin:0 auto;text-align:center}
.envelope{
  position:relative;
  width:min(320px,86vw);
  aspect-ratio:16/10;
  margin:0 auto;
  display:grid;place-items:center;
  border-radius:16px;
  background:linear-gradient(160deg,#fff 0%,#ffeaf2 100%);
  box-shadow:0 16px 40px rgba(170,60,110,.20);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
  overflow:hidden;
}
.envelope:hover{transform:translateY(-5px) rotate(-.6deg);box-shadow:0 26px 60px rgba(170,60,110,.30)}
.env-flap{
  position:absolute;top:0;inset-inline:0;height:58%;
  background:linear-gradient(180deg,#f7b7cd,#efa1bd);
  clip-path:polygon(0 0,100% 0,50% 100%);
  transform-origin:top center;
  transition:transform .6s var(--ease);
}
.envelope[aria-expanded="true"] .env-flap{transform:rotateX(180deg)}
.env-body{position:absolute;inset:0;border:1.5px solid rgba(224,87,127,.28);border-radius:16px}
.env-seal{
  position:absolute;top:47%;inset-inline-start:50%;
  transform:translate(50%,-50%);
  width:40px;height:40px;display:grid;place-items:center;
  background:linear-gradient(150deg,#e0577f,#c33f68);
  color:#fff;font-size:17px;border-radius:50%;
  box-shadow:0 6px 16px rgba(190,50,95,.45);
  animation:beat2 2.6s ease-in-out infinite;
}
@keyframes beat2{0%,100%{transform:translate(50%,-50%) scale(1)}14%{transform:translate(50%,-50%) scale(1.12)}28%{transform:translate(50%,-50%) scale(1)}}
.env-label{
  position:absolute;bottom:12%;inset-inline:0;
  font-size:15px;font-weight:700;color:#a33f68;
}
.envelope[aria-expanded="true"]{opacity:0;transform:scale(.9) translateY(-10px);pointer-events:none;height:0;margin:0;padding:0;transition:.5s var(--ease)}

/* کاغذ نامه */
.letter-paper{
  margin:6px auto 0;
  max-width:640px;
  transform-origin:top center;
  animation:unfold .95s var(--ease) both;
  perspective:1200px;
}
@keyframes unfold{
  0%{opacity:0;transform:rotateX(-88deg) scale(.92);filter:blur(4px)}
  55%{opacity:1;transform:rotateX(12deg) scale(1)}
  75%{transform:rotateX(-5deg)}
  100%{opacity:1;transform:none;filter:none}
}
.letter-inner{
  position:relative;
  padding:34px 24px 30px;
  border-radius:20px;
  background:
    radial-gradient(600px 300px at 50% 0%,#fffdfe 0%,#fff8fb 60%,#fff4f9 100%);
  border:1px solid rgba(224,87,127,.30);
  box-shadow:
    0 0 0 6px rgba(255,255,255,.55),
    0 20px 60px rgba(170,60,110,.20),
    0 0 40px rgba(240,150,190,.35);
  animation:glow 4.5s ease-in-out infinite;
  overflow:hidden;
}
.letter-inner::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(224,87,127,.12) 1px,transparent 1px);
  background-size:22px 22px;opacity:.5;
}
@keyframes glow{
  0%,100%{box-shadow:0 0 0 6px rgba(255,255,255,.55),0 20px 60px rgba(170,60,110,.18),0 0 30px rgba(240,150,190,.28)}
  50%{box-shadow:0 0 0 6px rgba(255,255,255,.65),0 20px 60px rgba(170,60,110,.24),0 0 56px rgba(240,140,185,.55)}
}
.letter-text{
  position:relative;
  font-size:16px;line-height:2.5;
  color:#5d3b4c;
  white-space:pre-wrap;
  text-align:right;
}
.letter-text .lt-line{opacity:0;animation:up .7s var(--ease) forwards}
.letter-text .lt-sign{
  display:block;margin-top:14px;
  font-weight:700;color:var(--rose-deep);
}
.corner{position:absolute;font-size:18px;color:rgba(224,87,127,.45)}
.corner.tl{top:10px;inset-inline-start:14px}
.corner.br{bottom:10px;inset-inline-end:14px}
.letter-hearts{margin-top:18px;text-align:center;color:rgba(224,87,127,.6);letter-spacing:.5em;font-size:13px}

.foot{
  position:relative;z-index:2;
  text-align:center;font-size:12.5px;color:#a97b8f;
  padding:0 20px calc(34px + env(safe-area-inset-bottom));
}

/* =========================================================
   ۶) دسکتاپ
   ========================================================= */
@media (min-width:640px){
  .gallery{columns:3;column-gap:16px}
  .g-item{margin-bottom:16px;border-radius:22px}
  .res-header{padding-inline:22px}
  .res-logo{font-size:26px}
  .res-search{height:48px;max-width:640px}
  .res-stats{margin-inline:24px}
  .voice-card{padding:14px 18px}
  .letter-inner{padding:46px 44px 38px}
  .letter-text{font-size:17px}
  .search-box{height:56px;padding:0 20px}
  .search-input{font-size:17px}
}
@media (min-width:1024px){
  .gallery{columns:4;column-gap:18px}
  .g-item{margin-bottom:18px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.12s !important}
  .g-item{opacity:1;transform:none}
}
