.gift-entry { padding: 0 0 56px; }
.entry-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.entry-card { position:relative; color:var(--ink); border:1px solid var(--line-solid); background:var(--card); border-radius:24px; padding:25px; transition:transform .2s,box-shadow .2s; }
.entry-card:hover { text-decoration:none; transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.entry-card:nth-child(2) { background:#FFE9E9; border-color:#FFD0D6; }
.entry-card:nth-child(3) { background:#E4F3ED; border-color:#C5E8DB; }
.entry-card .entry-icon { display:flex; align-items:center; justify-content:center; width:64px; height:64px; font-size:36px; margin-bottom:10px; }
.entry-icon img { display:block; width:100%; height:100%; object-fit:contain; }
.entry-card h2 { font-size:22px; margin-bottom:8px; }
.entry-card p { color:var(--ink2); font-size:14px; line-height:1.7; }
.entry-card .entry-link { display:block; margin-top:18px; font-weight:700; color:var(--accent-deep); }
.tool-wrap { max-width:980px; padding:36px 20px 60px; margin:auto; }
.tool-heading { text-align:center; margin-bottom:24px; }
.tool-heading-image { display:block; width:72px; height:72px; object-fit:contain; margin:0 auto 12px; }
.tool-heading h1 { font-size:clamp(28px,5vw,40px); margin:12px 0; }
.tool-heading p { color:var(--ink2); }
.tool-tabs { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin:12px 0 24px; }
.tool-tabs a { padding:8px 17px; border-radius:24px; background:white; border:1px solid var(--line-solid); color:var(--ink2); font-weight:700; }
.tool-tabs a[aria-current="page"] { background:var(--ink); color:white; border-color:var(--ink); }
.tool-panel { background:white; border:1px solid var(--line-solid); border-radius:28px; padding:30px; }
.tool-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.tool-field { display:flex; flex-direction:column; gap:7px; font-size:13px; color:var(--ink2); font-weight:700; min-width:0; }
.tool-field select,.tool-field input,.catalog-search input,.share-url { width:100%; min-width:0; border:1px solid #DBCCC7; background:#FFF9F6; color:var(--ink); border-radius:12px; padding:12px; font:inherit; font-size:15px; min-height:48px; }
button,select,input,a { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--sage); outline-offset:4px; }
.tool-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:24px 0 12px; }
.tool-actions .btn { min-width:160px; min-height:48px; cursor:pointer; }
.tool-actions button:disabled { opacity:.6; cursor:wait; }
.tool-hint,.muted { color:var(--ink2); font-size:13px; }
.tool-hint { text-align:center; }
.gacha-stage { display:flex; align-items:center; justify-content:center; gap:42px; padding:28px 0 12px; }
.gacha-machine { width:148px; flex:0 0 148px; transform-origin:50% 80%; }
.gacha-machine img { display:block; width:100%; height:240px; object-fit:contain; }
.machine-caption { font-family:var(--font-head); font-size:18px; line-height:1.8; }
.machine-caption strong { font-size:22px; }
.spinning { animation:shake .12s alternate infinite; }
@keyframes shake { from { transform:rotate(-5deg); } to { transform:rotate(5deg); } }
.tool-results { margin-top:32px; scroll-margin-top:85px; }
.tool-results:empty { display:none; }
.tool-results>h2,.result-note { text-align:center; margin-bottom:15px; }
.tool-results .gift-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tool-results .single-result { display:block; max-width:390px; margin:auto; }
.tool-results .gift-card .desc { display:block; }
.tool-results .gift-card .ph { aspect-ratio:1; }
.source-link { display:inline-block; margin-top:12px; font-size:12px; color:var(--ink2); }
.diagnosis-panel { max-width:720px; margin:auto; }
.step-meta { display:flex; justify-content:space-between; font-size:12px; color:var(--ink2); font-weight:700; }
progress { width:100%; height:7px; appearance:none; border:0; border-radius:6px; margin:8px 0 25px; background:#F1E9E4; }
progress::-webkit-progress-bar { background:#F1E9E4; border-radius:6px; }
progress::-webkit-progress-value { background:var(--sage); border-radius:6px; }
.diagnosis-panel h2 { font-size:23px; margin-bottom:24px; }
.diagnosis-panel .tool-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.choice-field { border:0; min-width:0; }
.choice-field legend { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.choice { display:flex; position:relative; cursor:pointer; }
.choice input { position:absolute; left:17px; top:22px; accent-color:var(--sage); }
.choice span { border:1px solid #DDD2CB; border-radius:14px; background:#FFFDFB; width:100%; padding:16px 13px 16px 41px; font-weight:700; line-height:1.6; }
.choice small { display:block; font-size:12px; font-weight:400; color:var(--ink2); }
.choice input:checked+span { background:#E7F5EF; border-color:var(--sage); box-shadow:inset 0 0 0 1px var(--sage); }
.choice input:focus-visible+span { outline:3px solid var(--sage); outline-offset:3px; }
.diagnosis-summary { text-align:center; border-radius:24px; padding:28px; background:#E7F5EF; margin-bottom:28px; }
.diagnosis-summary h2 { margin:8px 0; font-size:28px; }
.result-emoji { font-size:42px; }
.catalog-search { display:block; max-width:600px; margin:15px 0; font-weight:700; }
.catalog-search input { background:white; margin-top:6px; }
.catalog-more { display:block; margin:24px auto; }
.catalog-load-status { margin:12px 0; color:var(--ink2); }
.gift-card h3 { overflow-wrap:anywhere; }
[hidden] { display:none!important; }
@media(max-width:760px) {
 .entry-grid { grid-template-columns:1fr; gap:12px; }.entry-card { padding:20px 22px; }.entry-card .entry-icon { float:left; margin:4px 18px 20px 0; }.entry-card h2 { font-size:20px; }.entry-card .entry-link { margin-top:10px; }
 .tool-wrap { padding:20px 16px 40px; }.tool-panel { padding:22px 18px; border-radius:22px; }.tool-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .gacha-stage { gap:20px; }.gacha-machine { width:120px; flex-basis:120px; }.gacha-machine img { height:195px; }.machine-caption { font-size:13px; }.machine-caption strong { font-size:17px; }
 .tool-results .gift-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .tool-results .gift-grid .gift-card { flex-direction:column; min-width:0; }
 .tool-results .gift-grid .gift-card .ph { flex:0 0 auto; width:100%; aspect-ratio:1; border-right:0; border-bottom:1px solid var(--line); }
 .tool-results .gift-card .body { padding:12px; min-width:0; }.tool-results .gift-card .shops { flex-direction:column; }.tool-results .gift-card .shop { font-size:12px; padding:9px 4px; }
 .choice-grid { grid-template-columns:1fr; }.diagnosis-panel h2 { font-size:21px; }.tool-actions .btn { min-width:125px; }.tool-heading p { font-size:14px; }.tool-tabs a { padding:7px 13px; font-size:13px; }
 .brand small { display:none; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }.spinning { animation:none; }.entry-card { transition:none; } }
