/*
 * 首頁（index.html、en/index.html，由 tools/gen-site.py 產生）。共用的顏色與按鈕在 style.css。
 * 主角是開頭那段實機循環影片；其他段落安靜一點，讓截圖自己說話。
 */

/* ---------- 頂列：疊在主視覺上 ---------- */
.bar-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  background: linear-gradient(rgba(20, 11, 5, 0.7), rgba(20, 11, 5, 0));
}
.bar-top .mark img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.bar-top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
}
.bar-top nav a {
  color: var(--cream);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.bar-top nav a:hover {
  color: var(--honey);
}
.bar-top nav .lang {
  border-color: rgba(255, 243, 218, 0.4);
}

/* ---------- 主視覺：實機循環影片 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 1000px);
  padding: 120px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) clamp(40px, 7vh, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero-p,
.hero-v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--bark) 0%, rgba(36, 21, 12, 0.82) 22%, rgba(36, 21, 12, 0.1) 62%),
    linear-gradient(90deg, rgba(36, 21, 12, 0.78) 0%, rgba(36, 21, 12, 0.3) 46%, rgba(36, 21, 12, 0) 70%);
}
.hero-in {
  max-width: 620px;
}
.hero .logo {
  margin: 0 0 16px -10px;
  line-height: 0;
}
.hero .logo img {
  width: clamp(260px, 34vw, 480px);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}
.hero-h {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-shadow: 0 4px 0 var(--outline), 0 10px 30px rgba(0, 0, 0, 0.6);
}
html[lang^='en'] .hero-h {
  font-weight: 700;
  letter-spacing: 0;
}
.hero-t {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--honey);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-s {
  max-width: 46ch;
  margin: 0 0 28px;
  color: var(--cream);
  opacity: 0.86;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.ghost {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid rgba(255, 243, 218, 0.55);
  border-radius: 16px;
  background: rgba(20, 11, 5, 0.35);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.ghost:hover {
  color: var(--cream);
  border-color: var(--cream);
  background: rgba(20, 11, 5, 0.55);
}
.beta {
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--mist);
}
.beta b {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--leaf);
  color: #173b09;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v {
    display: none;
  }
}

/* ---------- 段落 ---------- */
.sec {
  padding: clamp(64px, 9vw, 120px) 0;
}
.sec.alt {
  background: var(--bark-2);
  border-block: 1px solid var(--line);
}
.sec h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin-bottom: 14px;
}
.intro {
  max-width: 58ch;
  margin-bottom: 36px;
  font-size: 1.06rem;
  color: var(--mist);
}
.intro b {
  color: var(--cream);
}
.fine {
  font-size: 0.9rem;
  color: var(--mist);
  max-width: 52ch;
}
.sub-h {
  margin: 72px 0 18px;
  font-size: 1.6rem;
  color: var(--cream);
}
.narrow > * {
  max-width: 820px;
}

figure {
  margin: 0;
}
figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mist);
}
.shot {
  display: block;
  overflow: hidden;
  border: 3px solid var(--edge);
  border-radius: 16px;
  background: var(--bark-3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}
.shot img {
  display: block;
  width: 100%;
  transition: transform 0.35s ease;
}
.shot:hover img {
  transform: scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
  .shot img {
    transition: none;
  }
}

/* 職業：三欄，各自三條路線 */
.classes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cls {
  overflow: hidden;
  background: var(--bark-3);
  border: 3px solid var(--edge);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cls .shot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cls-body {
  padding: 18px 24px 22px;
}
.cls h3 {
  font-size: 2rem;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--edge);
}
.cls-w {
  margin: 2px 0 12px;
  font-size: 0.9rem;
  color: var(--mist);
}
.cls ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cls li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.cls li span {
  font-size: 0.9rem;
  color: var(--mist);
}
.cls li b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--honey);
}
html[lang^='en'] .cls li b {
  font-weight: 600;
}

/* 截圖格：跟內容欄同寬，寬螢幕 4 欄、平板 2 欄、手機 1 欄（不做橫向捲動） */
.reel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4px var(--gutter) 24px;
  box-sizing: border-box;
}
.reel li {
  margin: 0;
  min-width: 0;
}
@media (max-width: 1100px) {
  .reel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .reel {
    grid-template-columns: 1fr;
  }
}

/* 打王：大圖＋兩張小圖 */
.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 22px 24px;
  align-items: start;
}
.mosaic .m-big {
  grid-row: span 2;
}
.systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 40px;
  margin: 56px 0 0;
}
.systems > div {
  padding: 16px 0;
  border-top: 2px solid var(--bark-4);
}
.systems dt {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--honey);
}
html[lang^='en'] .systems dt {
  font-weight: 600;
}
.systems dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--mist);
}

/* 裝備：洗煉圖、流程與機率、紙娃娃 */
.loot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: start;
}
.l-forge {
  grid-column: 1;
  grid-row: 1;
}
.l-doll {
  grid-column: 1;
  grid-row: 2;
}
.l-text {
  grid-column: 2;
  grid-row: 1 / span 2;
}
/* 真的是三個步驟的流程，所以用數字 */
.loop {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  counter-reset: step;
}
.loop li {
  position: relative;
  margin: 0;
  padding: 2px 0 18px 64px;
  counter-increment: step;
}
.loop li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid var(--outline);
  border-radius: 14px;
  background: linear-gradient(#ffe68a, var(--honey) 50%, #f59e22);
  color: #4a2408;
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.loop h3 {
  color: var(--cream);
  font-size: 1.3rem;
}
.loop p {
  margin: 2px 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

/* 裝備等級機率：和公開資料頁同一組數字 */
.tiers {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
}
.tiers caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 6px;
}
.tiers th,
.tiers td {
  padding: 7px 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.tiers th {
  width: 6.5em;
  padding-left: 12px;
  border-left: 4px solid var(--r-common);
  font-weight: 700;
}
.tiers .t1 th {
  border-left-color: var(--r-rare);
}
.tiers .t2 th {
  border-left-color: var(--r-epic);
}
.tiers .t3 th {
  border-left-color: var(--r-unique);
}
.tiers .t4 th {
  border-left-color: var(--r-myth);
}
.tiers td.bar {
  padding: 0 12px;
}
.tiers td.bar i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--r-common);
  min-width: 3px;
}
.tiers .t1 td.bar i {
  background: var(--r-rare);
}
.tiers .t2 td.bar i {
  background: var(--r-epic);
}
.tiers .t3 td.bar i {
  background: var(--r-unique);
}
.tiers .t4 td.bar i {
  background: var(--r-myth);
}
.tiers .w62 {
  width: 100%;
}
.tiers .w27 {
  width: 43.5%;
}
.tiers .w8 {
  width: 12.9%;
}
.tiers .w25 {
  width: 4%;
}
.tiers .w05 {
  width: 1%;
}
.tiers td.num {
  width: 4.5em;
  text-align: right;
  font-family: var(--num);
  font-weight: 600;
  font-size: 1.05rem;
}

/* 世界 */
.world {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
  margin-bottom: 48px;
}
.world .intro {
  margin-bottom: 0;
}

/* 手機：截圖框成手機的樣子（純版面，用邊框與圓角） */
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.phones > figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.phones .shot {
  border: 7px solid #0f0804;
  border-radius: 26px;
}

/* 商城 */
.fairgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: center;
}
.fair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-bottom: 24px;
}
.fair h3 {
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 3px solid var(--bark-4);
  color: var(--cream);
}
.fair .yes h3 {
  border-bottom-color: var(--leaf);
}
.fair .no h3 {
  border-bottom-color: var(--r-myth);
}
.fair ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--mist);
}

/* 預告片 */
.screen video {
  display: block;
  width: 100%;
  border: 3px solid var(--edge);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* 截圖牆 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.grid li {
  margin: 0;
}
.grid a {
  display: block;
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--bark-3);
}
.grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.grid a:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .grid img {
    transition: none;
  }
}

/* 燈箱：沒有 JavaScript，用網址的 #v-… 打開（:target），上一頁或「關閉」就收起來 */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 24px var(--gutter) 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lb:target {
  display: flex;
}
.lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(16, 9, 4, 0.94);
}
.lb figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1680px, 100%);
}
.lb img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100svh - 150px);
  border: 3px solid var(--edge);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lb figcaption {
  margin-top: 12px;
  max-width: 70ch;
  text-align: center;
  color: var(--cream);
  font-size: 0.98rem;
}
.lb-n {
  margin-right: 12px;
  font-family: var(--num);
  color: var(--mist);
}
.lb-nav {
  position: relative;
  display: flex;
  gap: 10px;
}
.lb-nav a {
  padding: 6px 18px;
  border: 2px solid var(--bark-4);
  border-radius: 12px;
  background: var(--bark-3);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.lb-nav a:hover {
  border-color: var(--honey);
  color: var(--honey);
}

/* 常見問題 */
#faq details {
  border-bottom: 1px solid var(--line);
}
#faq details:first-of-type {
  border-top: 1px solid var(--line);
}
#faq summary {
  position: relative;
  padding: 18px 48px 18px 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
}
html[lang^='en'] #faq summary {
  font-weight: 600;
}
#faq summary::-webkit-details-marker {
  display: none;
}
#faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--num);
  font-size: 1.8rem;
  color: var(--honey);
}
#faq details[open] summary::after {
  content: '\2212';
}
#faq summary:hover {
  color: var(--honey);
}
#faq details p {
  max-width: 64ch;
  margin: 0 0 20px;
  color: var(--mist);
}

/* 結尾：再一次邀請開始玩 */
.end {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  background: linear-gradient(rgba(36, 21, 12, 0.72), var(--bark) 92%), url('/media/hero-poster.webp') center / cover;
}
.end img {
  width: min(340px, 70vw);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}
.end-h {
  margin: 10px 0 28px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  color: var(--cream);
  text-shadow: 0 4px 0 var(--outline);
}
html[lang^='en'] .end-h {
  font-weight: 700;
}
.end .beta {
  margin-top: 26px;
}

/* ---------- 平板與手機 ---------- */
@media (max-width: 960px) {
  .classes,
  .phones {
    grid-template-columns: 1fr;
  }
  .classes {
    max-width: 560px;
  }
  .systems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mosaic,
  .loot,
  .world,
  .fairgrid {
    grid-template-columns: 1fr;
  }
  .mosaic .m-big {
    grid-row: auto;
  }
  .l-forge,
  .l-doll,
  .l-text {
    grid-column: 1;
    grid-row: auto;
  }
  .phones {
    max-width: 560px;
  }
  .phones > figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 720px) {
  .bar-top nav a:not(.lang) {
    display: none;
  }
  .hero {
    min-height: 100svh;
    padding-top: 96px;
  }
  .hero::after {
    background: linear-gradient(0deg, var(--bark) 0%, rgba(36, 21, 12, 0.88) 42%, rgba(36, 21, 12, 0.2) 78%);
  }
  .hero .logo {
    margin-left: -6px;
  }
  .cta .btn.big {
    flex: 1 1 100%;
  }
  .ghost {
    flex: 1 1 100%;
    text-align: center;
  }
  .systems,
  .fair {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lb {
    padding-inline: 8px;
  }
  .lb-nav a {
    padding: 6px 14px;
  }
}

/* ---------- 封測預約（表單送到 /api/prereg，沒有 JavaScript） ---------- */
.have-code {
  margin: 14px 0 0;
  font-size: 0.95rem;
}
.have-code a {
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.have-code a:hover {
  color: var(--honey-l);
}
.end .have-code {
  margin-top: 22px;
}
.pr {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 64px;
  align-items: center;
}
.pr-reward {
  margin: 0 0 10px;
  color: var(--cream);
}
.pr-reward b {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--leaf);
  color: #173b09;
}
.pr-count {
  margin: 28px 0 0;
  color: var(--mist);
  font-weight: 700;
}
.pr-count b {
  margin: 0 6px;
  font-family: var(--num);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--honey);
  text-shadow: 0 3px 0 var(--outline);
  vertical-align: -0.12em;
}
html[lang^='en'] .pr-count b {
  margin-left: 0;
}
/* 表單是一塊遊戲介面風的木框面板 */
.pr-form {
  position: relative;
  padding: 28px 28px 30px;
  border: 3px solid var(--outline);
  border-radius: 22px;
  background: linear-gradient(var(--bark-3), var(--bark-2));
  box-shadow: inset 0 2px 0 rgba(255, 226, 160, 0.14), 0 6px 0 var(--edge), 0 22px 40px rgba(0, 0, 0, 0.35);
}
.pr-label,
.pr-pick legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--cream);
}
.pr-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 3px solid var(--outline);
  border-radius: 14px;
  background: var(--cream);
  color: #2a1608;
  font: inherit;
  font-size: 1.1rem;
}
.pr-input::placeholder {
  color: #9b8466;
}
.pr-input:focus {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
.pr-pick {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.pr-pick legend {
  padding: 0;
  font-weight: 500;
  color: var(--mist);
}
.chip {
  position: relative;
  display: inline-block;
  margin: 0 6px 8px 0;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  padding: 5px 16px;
  border: 2px solid var(--bark-4);
  border-radius: 999px;
  background: var(--bark);
  color: var(--cream);
  font-weight: 500;
}
.chip:hover span {
  border-color: var(--mist);
}
.chip input:checked + span {
  border-color: var(--outline);
  background: var(--honey);
  color: #4a2408;
  font-weight: 700;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
/* 蜜罐：真人看不到也按不到，機器人會填 */
.pr-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pr-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 4px;
  font-weight: 700;
  cursor: pointer;
}
.pr-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--honey);
  cursor: pointer;
}
.pr-more {
  margin: 0 0 22px 34px;
  font-size: 0.88rem;
  color: var(--mist);
}
.pr-form .btn {
  width: 100%;
}
@media (max-width: 960px) {
  .pr {
    grid-template-columns: 1fr;
  }
  .pr-text {
    max-width: 640px;
  }
  .pr-count {
    margin-top: 16px;
  }
}
@media (max-width: 720px) {
  .pr-form {
    padding: 22px 18px 24px;
  }
  .pr-form .btn.big {
    padding-inline: 16px;
    font-size: 1.3rem;
  }
}

/* ---------- 封測預約彈出視窗（不用 JavaScript：#prereg 被 :target 時打開，關閉連到 #_） ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.modal:target {
  display: flex;
}
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 6, 0.72);
  backdrop-filter: blur(3px);
  cursor: default;
}
.modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 60px 40px 36px;
  border: 3px solid var(--outline);
  border-radius: 26px;
  background: linear-gradient(var(--bark-2), var(--bark-1, #2a1a10));
  box-shadow: inset 0 2px 0 rgba(255, 226, 160, 0.14), 0 8px 0 var(--edge), 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.18s ease-out;
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--outline);
  background: var(--bark-3);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.modal-x:hover,
.modal-x:focus-visible {
  background: var(--honey);
  color: var(--outline);
}
.modal .pr-form {
  box-shadow: inset 0 2px 0 rgba(255, 226, 160, 0.14);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-card {
    animation: none;
  }
}
@media (max-width: 720px) {
  .modal {
    padding: 12px;
    align-items: flex-start;
  }
  .modal-card {
    padding: 52px 18px 22px;
    max-height: calc(100dvh - 24px);
  }
}
