.catalog-portrait{position:relative;width:100%;height:265px;overflow:hidden;background:#17333b;isolation:isolate}.catalog-photo{position:absolute;left:0;top:50%;width:100%;aspect-ratio:1;transform:translateY(-50%);background-image:url('./assets/adoption-portraits-v3.png');background-size:300% 200%;background-position:var(--photo-x) var(--photo-y);background-repeat:no-repeat}.catalog-portrait .portrait-caption{position:absolute;bottom:10px;left:13px;z-index:2;font-size:10px;letter-spacing:.1em;padding:3px 7px;border-radius:5px;background:#0b252b88;color:#d4ddcb;backdrop-filter:blur(5px)}.dialog-art .catalog-portrait{height:300px}.match-shell{position:relative;min-height:100svh;isolation:isolate;color:var(--ink);background:var(--paper);overflow-x:clip}.match-forest{position:fixed;inset:0;z-index:-2;background:linear-gradient(90deg,#081b25f5,#081b25d4 45%,#081b25e9),url('./assets/forest-reference.png') center/cover;pointer-events:none}.match-shell:after{content:'';position:absolute;left:48%;top:14%;width:500px;height:500px;max-width:50vw;border-radius:50%;background:var(--cream);filter:blur(70px);z-index:-1;pointer-events:none}.match-header{position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1440px;margin:auto;padding:25px 4vw;z-index:8}.match-header .brand-logo{background:var(--white);border:1px solid var(--line);color:var(--gold-ink)}.match-header .brand-name{color:var(--ink)}.match-header .brand-name span{color:var(--gold-ink)!important}.match-header .brand-sub{color:var(--green)}.match-header-title{display:flex;gap:8px;align-items:center;color:var(--green);font-size:15px;letter-spacing:.15em}.match-header-title .ico{color:var(--gold-ink)}.match-header-actions{display:flex;gap:13px;align-items:center}.match-header-favorites{display:flex;gap:9px;align-items:center;font-size:16px;color:var(--gold-ink);background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:11px 14px;min-height:45px}.match-header-favorites b{min-width:23px;text-align:center;background:var(--cream);border-radius:7px;color:var(--gold-ink);font-size:13px;font-weight:500;padding:3px 6px}.match-home-button{display:flex;gap:8px;align-items:center;min-height:44px;color:var(--link);font-size:16px;padding:9px}.match-header-actions button:hover{color:var(--ink);background:var(--sage)}.match-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,440px);gap:80px;align-items:center;max-width:1130px;margin:0 auto;padding:15px 35px 30px;min-height:calc(100svh - 104px)}.match-intro{padding-bottom:25px}.match-intro .world-eyebrow{justify-content:flex-start;font-size:10px;color:var(--ink-light)}.match-intro h1{font-family:'Noto Serif TC','Songti TC',serif;font-weight:500;letter-spacing:.02em;font-size:40px;line-height:1.55;margin:22px 0 18px;color:var(--ink)}.match-intro-description{color:var(--ink-light);font-size:19px;line-height:1.95;max-width:390px}.match-style-pill{display:inline-flex;align-items:center;gap:9px;min-height:45px;border:1px solid var(--line);background:var(--white);border-radius:12px;padding:10px 13px;font-size:16px;line-height:1.6;margin-top:23px;color:var(--gold-ink)}.match-style-pill:hover{background:var(--sage);border-color:var(--gold-line)}.match-style-pill .ico{width:18px;height:18px}.match-filter{display:flex;gap:8px;margin-top:30px}.match-filter button{display:flex;align-items:center;gap:9px;justify-content:center;padding:10px 16px;border-radius:25px;min-height:45px;font-size:17px;color:var(--ink-light);border:1px solid var(--line);background:var(--white);transition:background .2s,color .2s}.match-filter button span{font-size:12px;opacity:.75}.match-filter button.active{background:var(--orange);color:var(--ink);border-color:var(--gold-line)}.match-filter button:hover{border-color:var(--gold-line)}.match-instruction{display:flex;align-items:center;gap:15px;margin-top:29px;color:var(--ink-light);font-size:16px;line-height:1.6}.match-instruction span{display:flex;gap:7px;align-items:center}.match-instruction span:last-child{color:var(--green)}.match-instruction>i{height:15px;width:1px;background:var(--sage)}.match-keyboard-hint{font-size:13px;color:var(--muted);margin-top:10px}.match-round-stats{display:flex;gap:21px;color:var(--muted);font-size:14px;margin-top:28px}.match-round-stats b{font-size:17px;font-weight:500;color:var(--gold-ink);margin-left:5px}.match-explanation{font-size:13px;color:var(--ink-light);line-height:1.9;max-width:350px;padding-top:18px;margin-top:19px;border-top:1px solid var(--line)}.match-arena{width:100%;max-width:440px;justify-self:center}.match-deck-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--ink-light);margin:0 9px 17px;gap:15px}.match-position{font:21px Georgia,serif;color:var(--gold-ink)}.match-position i{font:13px 'Noto Sans TC',sans-serif;color:var(--ink-light);font-style:normal}.match-deck{position:relative;width:100%;height:565px;isolation:isolate}.match-card{position:absolute;inset:0;width:100%;height:100%;border-radius:27px;overflow:hidden;background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);z-index:3;transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) rotate(var(--drag-angle,0deg));transform-origin:50% 80%;transition:transform .23s cubic-bezier(.22,.7,.4,1);touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;will-change:transform;animation:match-card-arrival .25s ease-out both}.match-card:focus-visible{outline:2px solid var(--focus);outline-offset:5px}.match-card.dragging{transition:none!important;cursor:grabbing;animation:none}.match-card.is-leaving{transition:transform .28s ease-in,opacity .28s;animation:none;pointer-events:none}.match-card-rear{z-index:1;pointer-events:none;border-color:#77908c38;animation:none}.match-card-rear.rear-1{transform:translateY(10px) scale(.963) rotate(2deg);opacity:.65}.match-card-rear.rear-2{transform:translateY(18px) scale(.929) rotate(-3deg);opacity:.35}.match-card-rear .catalog-portrait{height:100%}.match-card-photo{position:absolute;inset:0 0 auto;aspect-ratio:1;width:100%}.match-card-photo .catalog-portrait{height:100%;width:100%}.match-card-photo .portrait-caption{display:none}.match-card-shade{position:absolute;inset:0;background:linear-gradient(0deg,#09232ffb 0%,#09232ff7 24%,#09232fd9 34%,#09232f50 49%,transparent 66%);pointer-events:none;z-index:1}.match-card-top{position:absolute;top:17px;left:17px;right:17px;z-index:3;display:flex;justify-content:space-between;gap:8px}.match-fit-badge,.match-saved-badge{display:inline-flex;gap:6px;align-items:center;font-size:12px;line-height:1.5;padding:7px 10px;border:1px solid #d4c79566;background:#122f3bc9;backdrop-filter:blur(10px);color:#efdfb9;border-radius:25px;white-space:nowrap}.match-fit-badge .ico,.match-saved-badge .ico{width:14px;height:14px}.match-saved-badge{background:#224841d9;color:#d8e8c8;border-color:#8db08e88}.match-saved-badge .ico{fill:#a8ceac}.match-card-info{position:absolute;bottom:0;left:0;right:0;padding:0 26px 24px;z-index:2;pointer-events:none}.match-card-info button{pointer-events:auto}.match-name{display:flex;align-items:baseline;gap:14px}.match-name h2{font-size:38px;color:var(--ink);letter-spacing:.02em;line-height:1.4}.match-name>span{font-size:22px;color:var(--ink-light);font-weight:400}.match-basic{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:15px;line-height:1.5;margin-top:7px}.match-basic i{font-style:normal;opacity:.5}.match-personality{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.match-personality span{display:inline-block;padding:5px 10px;border-radius:7px;border:1px solid var(--line);background:var(--soft);color:var(--ink-light);font-size:14px;line-height:1.5}.match-reason{font-size:17px;color:var(--green);line-height:1.85;margin:13px 0 9px;max-width:100%;min-height:62px}.match-detail-button{display:flex;align-items:center;gap:5px;color:var(--link);font-size:15px;min-height:36px;padding:6px 0}.match-detail-button:hover{color:var(--ink);text-decoration:underline;text-underline-offset:5px}.swipe-stamp{position:absolute;z-index:5;top:72px;padding:7px 17px;border-radius:10px;border:3px solid currentColor;font-size:35px;font-weight:800;letter-spacing:.1em;line-height:1.5;pointer-events:none;background:#051d2855}.swipe-stamp-like{left:24px;transform:rotate(-14deg);color:#b7e2b9;opacity:var(--like-opacity,0)}.swipe-stamp-pass{right:24px;transform:rotate(13deg);color:#f3b8af;opacity:var(--pass-opacity,0)}.match-controls{display:flex;align-items:flex-start;justify-content:center;gap:29px;margin-top:28px;position:relative;z-index:4}.match-control-wrap{display:flex;flex-direction:column;align-items:center;gap:10px}.match-control-wrap>button{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;transition:transform .18s,background .18s,box-shadow .18s;border:1px solid var(--line);box-shadow:0 7px 22px #02131d44}.match-control-wrap>button:hover:not(:disabled){transform:translateY(-4px) scale(1.05)}.match-control-wrap>button:active:not(:disabled){transform:translateY(0) scale(.97)}.match-control-wrap>button:disabled{opacity:.3;cursor:default}.match-control-wrap>span{font-size:13px;color:var(--ink-light)}.match-control-wrap .ico{width:31px;height:31px}.match-control-wrap .match-undo{width:50px;height:50px;margin-top:10px;background:var(--white);color:var(--gold-ink);border-color:var(--line)}.match-undo .ico{width:23px;height:23px}.match-control-wrap:first-child>span{margin-top:0}.match-control-wrap .match-pass{background:var(--soft);color:var(--danger);border-color:var(--line)}.match-control-wrap .match-like{background:linear-gradient(130deg,var(--soft),var(--soft));color:var(--green);border-color:var(--line);box-shadow:0 7px 25px #609b6c23}.match-like .ico{fill:currentColor;width:33px;height:33px}.match-card-note{font-size:11px;color:var(--muted);text-align:center;margin-top:16px;line-height:1.6}.match-announcement{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:35;background:var(--orange);color:var(--ink);padding:10px 19px;border-radius:13px;font-size:15px;line-height:1.6;max-width:calc(100vw - 35px);text-align:center;pointer-events:none;box-shadow:0 7px 30px #00101a55}.match-announcement:empty{display:none}.match-deck.is-finished{height:565px}.match-finished{position:relative;min-height:100%;border:1px solid var(--line);border-radius:27px;background:linear-gradient(140deg,var(--white),var(--white));padding:31px 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:var(--shadow)}.match-finished-symbol{display:grid;place-items:center;width:65px;height:65px;background:var(--cream);border:1px solid var(--line);border-radius:50%;color:var(--gold-ink);margin-bottom:21px}.match-finished-symbol .ico{width:29px;height:29px}.match-finished h2{font-family:'Noto Serif TC',serif;font-weight:500;color:var(--ink);font-size:28px;line-height:1.6;margin-bottom:15px}.match-finished>p{font-size:17px;line-height:1.9;color:var(--ink-light)}.match-finished>p strong{color:var(--ink);font-size:20px;font-weight:500}.match-loved-strip{display:flex;justify-content:center;gap:12px;width:100%;margin:23px 0 3px}.match-loved-strip button{width:78px;display:flex;flex-direction:column;align-items:center;gap:8px}.match-loved-strip .pet-portrait{width:72px;height:72px;border-radius:50%;border:2px solid var(--line)}.match-loved-strip .portrait-caption{display:none}.match-loved-strip button>span{color:var(--ink-light);font-size:14px}.match-finished-actions{width:100%;display:flex;flex-direction:column;gap:13px;margin-top:25px}.match-finished-actions .btn{font-size:17px;min-height:49px}.match-finished .match-finished-note{font-size:12px;color:var(--muted);margin-top:20px;line-height:1.7}.match-shell .brand{flex-shrink:0}.match-shell .brand-sub{font-size:10px}
@keyframes match-card-arrival{from{opacity:.4;scale:.985}to{opacity:1;scale:1}}
@media(min-width:1600px){.match-layout{max-width:1250px;grid-template-columns:1fr 460px;gap:120px;padding-top:20px;padding-bottom:40px}.match-deck,.match-deck.is-finished{height:600px}.match-arena{max-width:460px}.match-intro h1{font-size:46px}.match-intro-description{font-size:21px;max-width:425px}.match-card-info{padding:0 28px 26px}.match-reason{font-size:18px;min-height:66px}}
@media(max-width:1100px){.match-layout{gap:45px;padding-left:35px;padding-right:35px;grid-template-columns:minmax(280px,1fr) minmax(330px,410px);max-width:960px}.match-intro h1{font-size:34px}.match-intro-description{font-size:18px}.match-style-pill{font-size:14px}.match-filter{gap:7px}.match-filter button{font-size:16px;padding:9px 14px}.match-instruction{font-size:14px;gap:12px}.match-instruction .ico{width:17px;height:17px}.match-deck,.match-deck.is-finished{height:540px}.match-card-info{padding:0 22px 21px}.match-name h2{font-size:34px}.match-reason{font-size:16px;line-height:1.8;min-height:58px}.match-name>span{font-size:20px}.match-header-title{font-size:13px;letter-spacing:.1em}.match-fit-badge,.match-saved-badge{font-size:11px;padding:6px 8px}.match-saved-badge{gap:4px}.match-finished h2{font-size:26px}}
@media(max-width:800px){.match-header{padding:18px 24px;gap:12px}.match-header .brand-name{font-size:25px}.match-header .brand-logo{width:43px;height:43px}.match-header-title{display:none}.match-header-actions{gap:9px}.match-header-favorites{font-size:14px;padding:9px 11px;min-height:41px}.match-home-button{font-size:14px;padding:8px}.match-layout{grid-template-columns:1fr;max-width:490px;padding:0 25px 25px;gap:17px;min-height:0}.match-intro{padding-bottom:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}.match-intro>.world-eyebrow{display:none}.match-intro h1{grid-column:1/-1;font-size:25px;letter-spacing:0;line-height:1.5;margin:0 0 14px;text-align:center}.match-intro h1 br{display:none}.match-intro-description{display:none}.match-style-pill{grid-column:1;font-size:13px;margin:0;padding:8px 9px;min-height:38px;gap:6px;border-radius:10px;justify-self:start;max-width:100%;line-height:1.5;text-align:left}.match-style-pill>.ico:first-child{display:none}.match-style-pill>.ico:last-child{width:14px;height:14px;flex-shrink:0}.match-filter{grid-column:2;margin:0;gap:4px;align-self:center}.match-filter button{font-size:14px;padding:8px 10px;min-height:38px;gap:0;border-radius:10px}.match-filter button span{display:none}.match-instruction,.match-keyboard-hint,.match-round-stats,.match-explanation{display:none}.match-arena{max-width:390px}.match-deck-heading{font-size:12px;margin:0 6px 13px}.match-position{font-size:19px}.match-position i{font-size:11px}.match-deck,.match-deck.is-finished{height:min(490px,calc(100svh - 294px));min-height:370px}.match-card{border-radius:23px}.match-card-rear.rear-1{transform:translateY(8px) scale(.963) rotate(1.7deg)}.match-card-rear.rear-2{transform:translateY(14px) scale(.929) rotate(-2.6deg)}.match-card-top{left:14px;right:14px;top:14px}.match-card-info{padding:0 23px 19px}.match-name h2{font-size:34px}.match-name>span{font-size:20px}.match-basic{font-size:13px;margin-top:5px}.match-personality{margin-top:10px;gap:6px}.match-personality span{font-size:13px;padding:4px 9px}.match-reason{font-size:16px;line-height:1.7;min-height:54px;margin:11px 0 4px}.match-detail-button{font-size:14px;min-height:33px;padding:6px 0}.match-controls{gap:26px;margin-top:21px}.match-control-wrap>button{width:59px;height:59px}.match-control-wrap .match-undo{width:44px;height:44px;margin-top:7px}.match-control-wrap .ico{width:28px;height:28px}.match-control-wrap .match-undo .ico{width:21px;height:21px}.match-control-wrap .match-like .ico{width:28px;height:28px}.match-control-wrap{gap:7px}.match-control-wrap>span{font-size:11px}.match-card-note{font-size:10px;margin-top:12px}.swipe-stamp{top:65px;font-size:30px;padding:5px 13px}.match-finished{padding:23px;border-radius:23px}.match-finished h2{font-size:25px;margin-bottom:12px}.match-finished-symbol{width:52px;height:52px;margin-bottom:16px}.match-finished-symbol .ico{width:25px;height:25px}.match-finished>p{font-size:15px;line-height:1.8}.match-loved-strip{margin:17px 0 0;gap:10px}.match-loved-strip .pet-portrait{width:61px;height:61px}.match-loved-strip button{width:66px;gap:6px}.match-loved-strip button>span{font-size:12px}.match-finished-actions{margin-top:20px;gap:11px}.match-finished-actions .btn{font-size:16px;min-height:43px;padding:10px 16px;border-radius:12px}.match-finished .match-finished-note{font-size:11px;margin-top:15px}.match-announcement{font-size:13px;padding:9px 15px;bottom:17px}.catalog-portrait{height:250px}}
@media(max-width:480px){.match-header{padding:17px 18px;gap:9px}.match-header .brand{gap:8px}.match-header .brand-logo{width:37px;height:37px}.match-header .brand-logo .ico{width:23px;height:23px}.match-header .brand-name{font-size:22px}.match-header .brand-sub{font-size:8px}.match-header-actions{gap:7px}.match-header-favorites{padding:8px 9px;min-height:38px;gap:6px;border-radius:10px}.match-header-favorites>span{display:none}.match-header-favorites b{min-width:19px;font-size:12px;padding:2px 5px}.match-home-button{font-size:13px;padding:7px 4px;gap:5px;min-height:38px}.match-home-button .ico{width:17px;height:17px}.match-layout{padding:0 18px 20px;gap:14px;max-width:440px}.match-intro h1{font-size:24px;line-height:1.5;margin-bottom:13px}.match-style-pill{font-size:11px;min-height:35px;padding:7px 8px;gap:4px}.match-style-pill .ico{display:none!important}.match-filter button{font-size:13px;padding:7px 9px;min-height:35px}.match-filter{gap:4px}.match-deck-heading{margin-bottom:12px;font-size:11px}.match-deck,.match-deck.is-finished{height:min(480px,calc(100svh - 284px));min-height:360px}.match-card-info{padding:0 20px 16px}.match-name h2{font-size:32px}.match-name>span{font-size:19px}.match-basic{font-size:12px}.match-personality{margin-top:9px}.match-personality span{font-size:12px;padding:4px 8px}.match-reason{font-size:15px;line-height:1.75;margin:10px 0 3px;min-height:52px}.match-detail-button{font-size:13px;min-height:31px;padding:5px 0}.match-card-top{left:12px;right:12px;top:12px}.match-fit-badge,.match-saved-badge{font-size:10px;padding:6px 8px;gap:4px}.match-fit-badge .ico,.match-saved-badge .ico{width:12px;height:12px}.match-controls{margin-top:19px;gap:27px}.match-control-wrap>button{width:58px;height:58px}.match-control-wrap .match-undo{width:44px;height:44px;margin-top:7px}.match-control-wrap>span{font-size:11px}.match-card-note{font-size:9px;margin-top:11px}.match-finished h2{font-size:24px}.match-finished>p{font-size:14px}.match-finished .match-finished-note{font-size:10px}.match-finished-actions .btn{font-size:15px}.match-announcement{font-size:12px}.catalog-portrait{height:270px}.dialog-art .catalog-portrait{height:255px}}
@media(max-width:360px){.match-header{padding:15px 14px}.match-header .brand-name{font-size:20px}.match-header .brand-logo{width:33px;height:33px}.match-header .brand-sub{font-size:7px}.match-header-favorites{padding:7px 8px;min-height:35px}.match-home-button{font-size:12px;gap:4px}.match-layout{padding-left:15px;padding-right:15px}.match-intro h1{font-size:21px}.match-filter button{font-size:12px;padding:7px 8px}.match-style-pill{font-size:10px;padding:6px 7px}.match-card-info{padding-left:17px;padding-right:17px}.match-name h2{font-size:29px}.match-reason{font-size:14px}.match-fit-badge{font-size:9px}.match-saved-badge{font-size:9px;padding:5px 6px}.match-saved-badge .ico{display:none}.match-card-shade{background:linear-gradient(0deg,#09232ffb 0%,#09232ff7 24%,#09232fd9 40%,#09232f40 59%,transparent 73%)}.match-finished h2{font-size:21px}.match-finished-symbol{display:none}.match-loved-strip .pet-portrait{width:52px;height:52px}.match-finished{padding:21px}.match-finished>p{font-size:13px}.match-finished-actions .btn{font-size:14px;min-height:40px}.match-finished-actions{margin-top:15px}}
@media(max-height:820px) and (min-width:801px){.match-header{padding-top:19px;padding-bottom:19px}.match-layout{min-height:calc(100svh - 87px);padding-top:9px;padding-bottom:20px}.match-deck,.match-deck.is-finished{height:475px}.match-arena{max-width:385px}.match-card-info{padding-bottom:17px}.match-name h2{font-size:33px}.match-reason{font-size:16px;min-height:55px;margin:10px 0 4px}.match-basic{margin-top:4px;font-size:13px}.match-personality{margin-top:10px}.match-personality span{font-size:13px}.match-detail-button{min-height:32px}.match-controls{margin-top:22px;gap:27px}.match-control-wrap>button{width:59px;height:59px}.match-control-wrap .match-undo{width:44px;height:44px;margin-top:7px}.match-control-wrap{gap:7px}.match-control-wrap>span{font-size:11px}.match-card-note{margin-top:10px}.match-intro h1{font-size:35px}.match-intro-description{font-size:18px}.match-filter{margin-top:24px}.match-round-stats{margin-top:23px}.match-explanation{margin-top:14px;padding-top:15px}.match-finished h2{font-size:24px}.match-finished>p{font-size:15px}.match-finished-symbol{width:54px;height:54px;margin-bottom:17px}.match-loved-strip{margin-top:17px}.match-finished-actions{margin-top:19px}.match-finished-actions .btn{min-height:44px;font-size:16px}.match-finished .match-finished-note{margin-top:13px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.match-card{animation:none!important;transition:none!important}}.no-motion .match-card{animation:none!important;transition:none!important}
.match-finished{height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#83917a #0c2634;padding:24px}.match-finished-symbol{width:43px;height:43px;margin-bottom:14px;flex-shrink:0}.match-finished-symbol .ico{width:23px;height:23px}.match-finished h2{font-size:25px;line-height:1.5;margin-bottom:12px}.match-finished>p{font-size:15px;line-height:1.8}.match-loved-strip{margin-top:17px;gap:10px}.match-loved-strip .pet-portrait{width:57px;height:57px}.match-loved-strip button{width:66px;gap:6px}.match-loved-strip button>span{font-size:12px}.match-finished-actions{margin-top:19px;gap:10px}.match-finished-actions .btn{min-height:44px;font-size:16px;padding:10px 14px}.match-finished .match-finished-note{font-size:11px;line-height:1.7;margin-top:14px}
@media(max-width:800px){.match-finished-symbol{display:none}.match-finished{padding:22px}.match-finished h2{font-size:24px}.match-finished>p{font-size:14px}.match-finished-actions .btn{font-size:15px;min-height:42px}.match-finished .match-finished-note{font-size:10px}.match-loved-strip .pet-portrait{width:54px;height:54px}.match-loved-strip{margin-top:15px}.match-finished-actions{margin-top:17px}}

.match-card-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#09232f,transparent 23%);pointer-events:none}
@media(max-width:480px){.match-layout{padding-bottom:12px}}
/* Visible, non-committing swipe guidance. */
.swipe-guide-buttons{display:flex;align-items:center;gap:12px;margin-left:auto}.swipe-guide-buttons button{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--gold-ink);padding:7px 1px;min-height:32px;white-space:nowrap}.swipe-guide-buttons button:hover{color:var(--link);text-decoration:underline;text-underline-offset:4px}.swipe-guide-buttons .ico{width:16px;height:16px}.match-deck-heading{gap:12px}.swipe-direction-signs{position:absolute;left:14px;right:14px;top:67px;display:flex;justify-content:space-between;gap:10px;z-index:5;pointer-events:none}.swipe-direction-signs>span{display:flex;align-items:center;gap:6px;padding:7px 11px;border-radius:22px;font-size:13px;font-weight:600;border:1px solid;backdrop-filter:blur(9px);box-shadow:0 3px 12px #00101925}.direction-pass{background:#392832c9;border-color:#efb3ac80!important;color:#ffd2cb}.direction-like{background:#204939d4;border-color:#b4d3aa9c!important;color:#d7f0c9}.direction-pass .ico{animation:swipe-arrow-left 3s ease-in-out infinite}.direction-like .ico{animation:swipe-arrow-right 3s ease-in-out infinite}.swipe-teach{position:absolute;z-index:9;top:31%;left:50%;transform:translateX(-50%);width:calc(100% - 56px);max-width:340px;padding:21px 20px 16px;text-align:center;border:1px solid var(--line);border-radius:21px;background:linear-gradient(135deg,var(--white),var(--white));box-shadow:var(--shadow);backdrop-filter:blur(17px);pointer-events:none;color:var(--gold-ink)}.swipe-teach strong{display:block;font-size:21px;font-weight:600;line-height:1.6}.swipe-teach>p{font-size:14px;color:var(--green);line-height:1.7;margin:9px 0 12px}.swipe-teach>button{pointer-events:auto;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid var(--line);background:var(--cream);border-radius:10px;color:var(--gold-ink);font-size:15px}.swipe-teach>button:hover{background:var(--sage)}.gesture-demo{position:relative;height:72px;margin:12px 0 0;display:flex;align-items:center;justify-content:space-between}.gesture-trail{position:absolute;top:34px;left:12%;right:12%;border-top:1px dashed var(--line)}.gesture-finger{position:absolute;left:calc(50% - 19px);top:15px;width:38px;height:44px;display:grid;place-items:center;filter:drop-shadow(0 4px 8px #001019);color:#ffe2a9;animation:swipe-hand-demo 4.8s ease-in-out 2}.gesture-finger .ico{width:35px;height:35px;fill:#224047;stroke-width:1.6}.gesture-label{position:relative;z-index:2;font-size:13px;padding:5px 0;line-height:1.5}.gesture-label.left{color:var(--danger)}.gesture-label.right{color:var(--green)}.is-tutorial .match-card:not(.match-card-rear){animation:swipe-card-demo 4.8s ease-in-out 2}.method-table-wrap{margin:23px 0;overflow-x:auto}.method-table{width:100%;border-collapse:collapse;text-align:left;color:var(--green);font-size:17px;line-height:1.85}.method-table th,.method-table td{padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}.method-table th{color:var(--gold-ink);font-weight:600;background:var(--soft)}.method-table td:first-child{width:32%;color:var(--gold-ink)}.no-motion .gesture-finger,.no-motion .swipe-direction-signs .ico,.no-motion .is-tutorial .match-card{animation:none!important}
@keyframes swipe-hand-demo{0%,7%,47%,53%,93%,100%{transform:translateX(0) rotate(0)}24%,32%{transform:translateX(-72px) rotate(-15deg)}70%,78%{transform:translateX(72px) rotate(15deg)}}
@keyframes swipe-card-demo{0%,7%,47%,53%,93%,100%{translate:0 0;rotate:0deg}24%,32%{translate:-13px 0;rotate:-1.8deg}70%,78%{translate:13px 0;rotate:1.8deg}}
@keyframes swipe-arrow-left{0%,100%,50%{translate:0 0;opacity:.8}25%{translate:-5px 0;opacity:1}}
@keyframes swipe-arrow-right{0%,100%,50%{translate:0 0;opacity:.8}75%{translate:5px 0;opacity:1}}
@media(max-width:800px){.swipe-guide-buttons{gap:10px}.swipe-guide-buttons button{font-size:11px;padding:5px 0;min-height:30px}.swipe-guide-buttons .ico{width:14px;height:14px}.match-deck-heading{gap:9px;margin-bottom:10px}.swipe-direction-signs{left:12px;right:12px;top:58px}.swipe-direction-signs>span{font-size:12px;padding:6px 9px;gap:5px}.swipe-direction-signs .ico{width:16px;height:16px}.swipe-teach{width:calc(100% - 44px);padding:18px 16px 14px;top:30%;border-radius:18px}.swipe-teach strong{font-size:19px}.swipe-teach>p{font-size:12px;margin:5px 0 11px}.swipe-teach>button{font-size:14px;min-height:38px}.gesture-demo{height:67px;margin-top:9px}.gesture-finger{top:13px}.gesture-trail{top:32px}.gesture-label{font-size:12px}.method-table{font-size:15px}.method-table th,.method-table td{padding:11px 9px}.method-table td:first-child{width:34%}}
@media(max-width:360px){.swipe-guide-buttons{gap:8px}.swipe-guide-buttons button{font-size:10px}.match-deck-heading{gap:6px}.swipe-guide-buttons .ico{display:none}.swipe-direction-signs>span{font-size:11px;padding:5px 8px}.swipe-teach strong{font-size:17px}.swipe-teach{width:calc(100% - 34px);padding:16px 14px 12px}.gesture-finger{animation-name:swipe-hand-small}.gesture-label{font-size:11px}}
@keyframes swipe-hand-small{0%,7%,47%,53%,93%,100%{transform:translateX(0) rotate(0)}24%,32%{transform:translateX(-52px) rotate(-15deg)}70%,78%{transform:translateX(52px) rotate(15deg)}}
@media(prefers-reduced-motion:reduce){.gesture-finger,.swipe-direction-signs .ico,.is-tutorial .match-card{animation:none!important}}

/* Stable scrolling and isolated card transitions */
.match-shell,.main-wrap{animation:none!important;translate:none!important;rotate:none!important}
.match-card{animation:none;scale:1;translate:none;rotate:none}
.is-tutorial .match-card:not(.match-card-rear){animation:none!important;translate:none;rotate:none}
.match-card.dragging,.match-card.is-leaving{scale:1;translate:none;rotate:none}
.match-card-rear.rear-1{transform:translateY(8px) scale(.97);opacity:.45}
.match-card-rear.rear-2{transform:translateY(14px) scale(.94);opacity:.2}
@media(max-width:800px){
.main-header{position:relative;top:auto;inset-block-start:auto;backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--white);z-index:5}
.main-header-inner{padding-top:max(15px,env(safe-area-inset-top))}
.main-wrap{clear:both;position:relative}
.main-footer{padding-bottom:max(28px,env(safe-area-inset-bottom))}
.main-nav{min-width:0}.main-nav .nav-item{min-height:44px}
.match-header{padding-top:max(17px,env(safe-area-inset-top))}
.match-layout{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}
