:root {
  --ink: #211d4f;        /* 深夜の配信画面の藍 */
  --ink-soft: #5b5885;
  --paper: #f4f5fb;
  --line: #dcdcec;
  --signal: #2fc6e0;     /* 配信の信号色 */
  --live: #ff3d5a;       /* LIVE の赤 */
  --hi: #ffd23f;
  --white: #fff;
  --r-N: #8f93a8;
  --r-R: #3f8cff;
  --r-SR: #9a5cff;
  --r-SSR: #f0a800;
  --r-UR: #ff3d8b;
  --r-LR: #211d4f;
  --display: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- ヘッダー ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: rgba(244, 245, 251, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display); font-size: 18px; text-decoration: none;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255, 61, 90, .18); }
.pt { margin-left: auto; display: flex; align-items: baseline; gap: 4px; padding: 2px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.pt-label { font-size: 12px; color: var(--ink-soft); }
.pt b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.tabs { display: flex; gap: 2px; }
.tabs a { text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--ink); color: var(--white); }
.demo-banner { background: var(--hi); text-align: center; padding: 6px 16px; font-size: 13px; font-weight: 500; }

main { max-width: 980px; margin: 0 auto; padding: 20px 20px 80px; }
.view { animation: none; }
.h { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 8px 0 16px; }

/* ---------- パック選択 ---------- */
.packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
}
.chip span { font-weight: 700; font-size: 14px; }
.chip small { font-size: 11px; color: var(--ink-soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.on small { color: rgba(255, 255, 255, .7); }
.lead { text-align: center; color: var(--ink-soft); margin: 14px auto 0; max-width: 40em; font-size: 14px; }

/* ---------- ステージ（伏せカードの壁＋パック） ---------- */
.stage { position: relative; height: 380px; margin: 8px -20px 0; overflow: hidden; display: grid; place-items: center; }
.wall {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; padding: 20px 10px;
  filter: blur(3px) saturate(.8); opacity: .55;
  transform: rotate(-4deg) scale(1.1);
  mask-image: radial-gradient(ellipse at center, transparent 18%, #000 55%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 18%, #000 55%);
}
.w-card { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--white); border: 2px solid var(--white); box-shadow: 0 4px 10px rgba(33, 29, 79, .15); }
.w-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* パック本体：配信画面のような藍の袋に信号色の走査線 */
.pack {
  position: relative; z-index: 1;
  width: 190px; height: 270px; border: 0; cursor: pointer; padding: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #3a3480 0%, var(--ink) 55%, #120f33 100%);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 22px 40px rgba(33, 29, 79, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .25s;
}
.pack:hover { transform: translateY(-4px) rotate(-1deg); }
.pack::after { /* 光沢 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
}
.pack-crimp {
  position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 7px);
  border-radius: 6px 6px 0 0;
}
.pack-crimp.bottom { top: auto; bottom: 0; border-radius: 0 0 6px 6px; }
.pack-onair {
  font-family: var(--display); font-size: 13px; letter-spacing: .08em;
  background: var(--live); padding: 2px 10px; border-radius: 4px;
  box-shadow: 0 0 16px rgba(255, 61, 90, .7);
}
.pack-title { font-family: var(--display); font-size: 26px; line-height: 1.2; text-align: center; padding: 0 12px; }
.pack-sub { font-size: 12px; color: var(--signal); font-weight: 700; }

.progress { text-align: center; margin: 4px 0 0; font-weight: 500; }
.progress b { font-family: var(--display); font-weight: 400; }
.rates { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 2px 0 16px; }
.controls { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.controls.fresh { margin-top: 12px; }
.fresh-note { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--ink-soft); margin: 0; }
.hint { text-align: center; font-size: 13px; color: var(--ink-soft); min-height: 1.7em; margin-top: 10px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn small { font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.btn.primary { background: var(--live); border-color: var(--live); color: var(--white); min-width: 220px; font-size: 17px; padding: 14px 28px; box-shadow: 0 6px 0 #c4203b; }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #c4203b; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: inherit; }
.btn.disabled { opacity: .5; cursor: default; }
.btn.danger { color: var(--live); border-color: var(--live); }
.fx { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: transparent; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 18px;
}
.icon-btn.on { color: var(--live); background: var(--white); }

/* ---------- カード ---------- */
.card {
  --rc: var(--r-N);
  width: 280px; background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 12px; text-align: left;
  border: 4px solid var(--rc);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  position: relative;
}
.card.r-R { --rc: var(--r-R); }
.card.r-SR { --rc: var(--r-SR); }
.card.r-SSR { --rc: var(--r-SSR); background: linear-gradient(180deg, #fff9e3, #fff 40%); }
.card.r-UR { --rc: var(--r-UR); border-image: linear-gradient(135deg, #ff3d8b, #ffd23f, #2fc6e0, #9a5cff) 1; border-radius: 0; background: linear-gradient(180deg, #fff0f6, #fff 40%); }
.card.r-LR { --rc: var(--r-LR); background: linear-gradient(160deg, #2b2668, #120f33); color: var(--white); border-color: var(--hi); box-shadow: 0 0 0 2px var(--ink), 0 0 40px rgba(255, 210, 63, .55); }
.c-head { display: flex; align-items: center; gap: 8px; }
.c-name { font-weight: 700; font-size: 17px; line-height: 1.3; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-rar { font-family: var(--display); font-size: 13px; color: var(--white); background: var(--rc); padding: 1px 8px; border-radius: 6px; }
.card.r-UR .c-rar { background: linear-gradient(135deg, #ff3d8b, #9a5cff); }
.card.r-LR .c-rar { background: var(--hi); color: var(--ink); }
.c-img { position: relative; margin: 8px 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--line); }
.c-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-new { position: absolute; top: 8px; right: 8px; background: var(--live); color: var(--white); font-family: var(--display); font-size: 12px; padding: 1px 8px; border-radius: 4px; }
.c-retired { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(33, 29, 79, .82); color: var(--white); font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; }
.card.mini .c-retired { font-size: 10px; }
.z-retired { display: block; font-size: 12px; color: var(--ink-soft); }
.c-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; opacity: .75; }
.c-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.c-bio { font-size: 13px; margin: 6px 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; }
.c-stat { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; border-top: 1px solid rgba(128, 128, 160, .25); padding-top: 6px; font-size: 12px; }
.c-stat span:first-child { margin-right: auto; opacity: .75; }
.c-stat b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.c-foot { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; margin-top: 4px; }

.card.mini { width: 100%; padding: 6px; border-width: 3px; border-radius: 10px; box-shadow: none; }
.card.mini .c-name { font-size: 12px; }
.card.mini .c-rar { font-size: 10px; padding: 0 5px; }
.card.mini .c-img { margin: 5px 0 3px; }
.card.mini .c-new { font-size: 10px; top: 4px; right: 4px; }
.c-mini-stat { font-size: 11px; text-align: right; opacity: .7; }

/* ---------- 演出オーバーレイ ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: radial-gradient(ellipse at center, #2b2668 0%, #0d0b26 75%);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 20px; overflow-y: auto;
}
/* 画面に収まるときは上下中央、収まらないときは上から並べてスクロールできるように、
   中身を縮めず（flex-shrink: 0）、中央寄せは上下の auto 余白で行う */
.ov-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 300px; justify-content: center; width: 100%; flex-shrink: 0; margin-top: auto; }
.ov-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; flex-shrink: 0; margin-bottom: auto; }
.ov-actions .btn:not(.primary) { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.earned { margin: 0; font-size: 14px; opacity: .85; text-align: center; }
.card-actions { display: flex; gap: 10px; align-items: center; }

.pack.big { width: 210px; height: 300px; cursor: default; }
.pack.big:hover { transform: none; }
.pack.glow-SSR { box-shadow: 0 0 50px 10px rgba(240, 168, 0, .65); }
.pack.glow-UR { box-shadow: 0 0 60px 14px rgba(255, 61, 139, .7); }
.pack.glow-LR { box-shadow: 0 0 80px 20px rgba(255, 210, 63, .85); }
.pack.shake { animation: shake 1s ease-in-out; }
.pack.tear .pack-crimp:not(.bottom) { animation: tearOff .45s ease-in forwards; }
.pack.tear { animation: puff .45s ease-in forwards; }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-6deg) scale(1.02); }
  30% { transform: rotate(6deg); }
  45% { transform: rotate(-8deg) scale(1.04); }
  60% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg) scale(1.06); }
}
@keyframes tearOff { to { transform: translate(60px, -140px) rotate(35deg); opacity: 0; } }
@keyframes puff { to { transform: scale(1.15); opacity: 0; } }
.flash { position: fixed; inset: 0; background: var(--white); animation: flash .5s ease-out forwards; pointer-events: none; }
.flash.f-SSR { background: #ffe08a; }
.flash.f-UR { background: linear-gradient(135deg, #ff9ac4, #b9f0ff); }
.flash.f-LR { background: var(--hi); }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }

/* めくり */
.flipper { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.flipper .front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flipper .back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; border: 4px solid rgba(255, 255, 255, .8);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #3a3480, var(--ink));
  display: grid; place-items: center;
}
.flipper .back span { font-family: var(--display); color: var(--signal); font-size: 14px; writing-mode: vertical-rl; letter-spacing: .15em; }
.reveal .flipper { transform: rotateY(180deg) scale(.6); }
.reveal.go .flipper { animation: riseFlip 1.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.reveal.instant.go .flipper { animation: none; transform: none; }
@keyframes riseFlip {
  0% { transform: rotateY(180deg) scale(.6) translateY(40px); opacity: 0; }
  35% { transform: rotateY(180deg) scale(1); opacity: 1; }
  55% { transform: rotateY(180deg) scale(1); }
  100% { transform: rotateY(0) scale(1); }
}
.back.r-SSR { box-shadow: 0 0 40px rgba(240, 168, 0, .8); border-color: var(--r-SSR); }
.back.r-UR { box-shadow: 0 0 46px rgba(255, 61, 139, .85); border-color: var(--r-UR); }
.back.r-LR { box-shadow: 0 0 60px rgba(255, 210, 63, 1); border-color: var(--hi); }

/* 10連 */
.ten { display: grid; grid-template-columns: repeat(5, 130px); gap: 12px; }
.slot { border: 0; padding: 0; background: none; cursor: pointer; position: relative; display: block; width: 100%; text-align: left; }
.slot .flipper { transform: rotateY(180deg); }
.slot.go .flipper { transform: rotateY(0); }
.slot .back { border-radius: 10px; }
.slot .back span { font-size: 11px; }

/* 詳細モーダル */
.detail { position: fixed; inset: 0; z-index: 60; background: rgba(13, 11, 38, .85); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.detail-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--white); }
.detail-inner > .btn { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }

/* ---------- 図鑑 ---------- */
.zukan-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 18px; }
.z-total { margin: 0; font-size: 15px; }
.z-total b { font-family: var(--display); font-weight: 400; font-size: 40px; }
.z-bars { display: grid; gap: 4px; }
.z-bar { display: grid; grid-template-columns: 40px 1fr 110px; align-items: center; gap: 10px; font-size: 12px; }
.z-k { font-family: var(--display); }
.z-track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.z-fill { display: block; height: 100%; background: var(--r-N); }
.z-bar.r-R .z-fill { background: var(--r-R); }
.z-bar.r-SR .z-fill { background: var(--r-SR); }
.z-bar.r-SSR .z-fill { background: var(--r-SSR); }
.z-bar.r-UR .z-fill { background: var(--r-UR); }
.z-bar.r-LR .z-fill { background: var(--hi); }
.z-n { text-align: right; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
/* 検索欄は1行を広く使う。スマホで拡大されないように文字は16px */
.search {
  flex: 1 1 100%; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px 9px 36px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b5885' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px center;
}
select { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.grid .slot .flipper { transform: none; }
.count { position: absolute; bottom: -6px; right: -4px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; }
.more, .empty { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; }

/* ---------- 実績 ---------- */
.achv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.achv li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); }
.achv li.done { color: var(--ink); border-color: var(--ink); }
.a-mark { font-size: 22px; color: var(--line); }
.achv li.done .a-mark { color: var(--r-SSR); }
.a-body { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.a-body span { font-size: 13px; }
.a-pt { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- サイト制作者 ---------- */
.maker { display: flex; justify-content: center; padding: 8px 0 24px; }
.maker-card {
  width: min(360px, 100%); text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 24px 24px;
}
.maker-icon-wrap {
  width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 200deg, var(--live), var(--signal), var(--live));
}
.maker-icon { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--white); background: var(--line); }
.maker-name { font-family: var(--display); font-size: 26px; line-height: 1.2; margin: 0; }
.maker-desc { margin: 6px 0 0; font-weight: 700; color: var(--ink-soft); }
.maker-id { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.maker-links { display: grid; gap: 10px; margin-top: 22px; }
.maker-link { width: 100%; }
.maker-mark { font-size: 16px; line-height: 1; }
.maker-mark.live { color: var(--live); font-size: 12px; }

/* ---------- このサイト ---------- */
.prose { max-width: 40em; }
.prose h2 { font-size: 17px; margin: 28px 0 6px; }
.prose p { margin: 6px 0; }
.prose ul { margin: 8px 0; padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose .note { font-size: 13px; color: var(--ink-soft); }
/* レア度の決め方の表。スマホでは横にスクロールできるようにする */
.rarity-table-wrap { overflow-x: auto; margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.rarity-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.rarity-table th, .rarity-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.rarity-table tbody tr:last-child td { border-bottom: 0; }
.rarity-table th { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.rarity-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rarity-table th small { font-weight: 500; }
.rarity-table .sc-range { display: block; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 480px) {
  .rarity-table { font-size: 13px; }
  .rarity-table th, .rarity-table td { padding: 8px 7px; }
  .rar-tag { min-width: 38px; }
}
.rar-tag { display: inline-block; min-width: 44px; text-align: center; font-family: var(--display); font-size: 13px; color: var(--white); background: var(--r-N); padding: 1px 8px; border-radius: 6px; }
.rar-tag.r-R { background: var(--r-R); }
.rar-tag.r-SR { background: var(--r-SR); }
.rar-tag.r-SSR { background: var(--r-SSR); }
.rar-tag.r-UR { background: linear-gradient(135deg, #ff3d8b, #9a5cff); }
.rar-tag.r-LR { background: var(--hi); color: var(--ink); }

/* ---------- トースト ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ガチャの結果画面ではボタンが下にあるので、お知らせは上に出す */
body.locked .toast { bottom: auto; top: 16px; transform: translate(-50%, -20px); }
body.locked .toast.show { transform: translate(-50%, 0); }

/* ---------- スマホ ---------- */
@media (max-width: 700px) {
  .top { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tabs a { flex: 1 1 auto; text-align: center; padding: 6px 4px; font-size: 13px; }
  main { padding: 14px 14px 60px; }
  .stage { height: 330px; margin: 8px -14px 0; }
  .wall { grid-template-columns: repeat(5, 1fr); }
  .ten { grid-template-columns: repeat(3, 96px); gap: 8px; }
  .card { width: min(280px, 82vw); }
  .zukan-summary { grid-template-columns: 1fr; gap: 8px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .btn.primary { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
