/* トップページの筐体（エアプル20）。public/p20home.js */
.p20home { position: relative; width: 290px; margin: 56px auto 40px; }
.p20home[hidden] { display: none; }
.p20-mach { position: relative; width: 100%; aspect-ratio: 720 / 800; transition: opacity .5s, filter .5s; }
.p20-mach img, .p20-mach video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.p20-mach video { opacity: 0; }
.p20-mach video.on { opacity: 1; }
.p20-mach.live .p20-idle { opacity: 0; }
.p20-tap { position: absolute; left: 22%; top: 5%; width: 58%; height: 88%; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 3; }
.p20-tap i { position: absolute; left: 88%; top: 67.5%; width: 46px; height: 46px; transform: translate(-50%, -50%); pointer-events: none; }
.p20-tap i::before, .p20-tap i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #e0403f; animation: p20ring 1.8s ease-out infinite; }
.p20-tap i::after { animation-delay: .9s; }
@keyframes p20ring { 0% { transform: scale(.65); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.p20home.busy .p20-tap { display: none; }
.p20home.out .p20-mach { opacity: .22; filter: blur(2px); }
.p20-res { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 720 / 800; display: grid; place-items: center; pointer-events: none; perspective: 1200px; z-index: 4; }
.p20-card { width: 66%; aspect-ratio: 400 / 581; opacity: 0; transform: translate(-14%, 18%) scale(.3) rotateX(60deg); }
.p20home.out .p20-card { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; transition: transform .7s cubic-bezier(.2, .8, .25, 1), opacity .2s; }
.p20-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.p20-card.front .p20-in { transform: none; }
.p20-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4.5% / 3.2%; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 26px #0006; }
.p20-in .p20-b { transform: rotateY(180deg); }
.p20-card.kira.front::after { content: ''; position: absolute; inset: 0; border-radius: 4.5% / 3.2%; background: linear-gradient(115deg, transparent 30%, #ffffff70 45%, #ffffffb0 50%, #ffffff70 55%, transparent 70%); background-size: 300% 100%; animation: p20glint 2.6s ease-in-out infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes p20glint { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
.p20-card.new.front::before { content: 'NEW'; position: absolute; right: -10px; top: -10px; z-index: 2; background: #d6262e; color: #fff; font: 900 12px/1 var(--body, sans-serif); padding: 5px 8px; border-radius: 6px; transform: rotate(8deg); }
.p20-more { display: flex; justify-content: center; gap: 10px; margin: 14px -20px 0; opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; transition: opacity .35s, transform .35s; }
.p20home.done .p20-more { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.p20-more button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; background: #e7b416; color: #1d1d22; font: 900 15px/1 var(--body, sans-serif); white-space: nowrap; cursor: pointer; box-shadow: 0 3px 0 #0003; }
.p20-more button[hidden] { display: none; }
.p20-more small:empty { display: none; }
.p20home.fin .p20-tap i { display: none; }
.p20-more small { font-size: 12px; font-weight: 800; opacity: .75; }
.p20-more .p20-alb { background: var(--panel); color: var(--ink); border-color: var(--edge); box-shadow: none; }
.p20-coins { display: grid; grid-template-columns: repeat(10, 22px); gap: 4px 5px; justify-content: center; margin-top: 4px; transition: opacity .3s; }
.p20-coins i { width: 22px; height: 22px; border-radius: 50%; background: url(/img/coin10.svg?v=1) center/contain; box-shadow: 0 1.5px 2px #0006; position: relative; z-index: 5; }
.p20-coins i:nth-child(3n) { filter: brightness(.86) saturate(.85); rotate: -14deg; }
.p20-coins i:nth-child(4n+1) { filter: brightness(1.08); rotate: 11deg; }
.p20-coins i:nth-child(7n+2) { filter: brightness(.75) saturate(.75); rotate: 24deg; }
.p20-coins i.used { visibility: hidden; }
.p20-hint { position: absolute; left: 0; right: 0; top: calc(290px * 800 / 720 + 18px); margin: 0; text-align: center; padding-left: .32em; font: 700 12px/1.4 var(--body, sans-serif); letter-spacing: .32em; color: var(--sub); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s .25s; }
.p20home.fin .p20-hint { opacity: 1; }
.p20-dlg { box-sizing: border-box; width: min(760px, 94vw); height: min(860px, 88vh); border: 1.5px solid var(--edge); border-radius: 18px; padding: 0; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.p20-dlg::backdrop { background: #000a; }
.p20-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 18px; }
.p20-x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.p20-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 9px; padding: 16px; }
.p20-s { position: relative; aspect-ratio: 400 / 581; border-radius: 6px; display: grid; place-items: center; border: 1.5px dashed #9a9a8c; color: #8d8d80; font: 800 13px/1 ui-monospace, monospace; padding: 0; background: transparent; }
.p20-s.r { border-color: #c9706a; color: #c9706a; }
.p20-s.g { border-color: #5fa274; color: #5fa274; }
.p20-s.k { border-color: #e7b416; color: #e7b416; }
.p20-s.got { border: 0; cursor: pointer; }
.p20-s.got img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.p20-s i { position: absolute; right: -5px; top: -6px; background: var(--ink); color: var(--bg); border-radius: 99px; font: 800 11px/1 sans-serif; padding: 3px 6px; }
.p20-big { position: fixed; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 16px; background: #000c; perspective: 1200px; }
.p20-big[hidden] { display: none; }
.p20-big .p20-card { position: relative; width: min(64vw, 300px); opacity: 1; transform: none; cursor: pointer; }
.p20-big p { margin: 0; }
.p20-big a { color: #fff; font-size: 14px; }
.p20-res .p20-card { position: relative; }
@media (prefers-reduced-motion: reduce) { .p20-tap i::before, .p20-tap i::after, .p20-card.kira.front::after { animation: none; } }

/* カードを縦に詰める（2026-12-02 所有者）：ドルと即決・日付を1行、ポストとシェアを1行、eBay とメルカリを1行 */
.c .share { flex-wrap: nowrap; gap: 5px; }
.c .share button { padding: 4px 8px; gap: 4px; font-size: 10px; border-width: 1px; white-space: nowrap; }
.c .share svg { width: 10px; height: 10px; flex: none; }
.c .go-row { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1px 10px; align-items: center; }
.c .go-row a { margin: 0; padding: 2px 0; border: 0; font-size: 11px; line-height: 1.5; font-weight: 700; text-decoration: none; white-space: nowrap; }
.c .go-row .go { flex: 0 0 100%; color: var(--blue); }
.c .go-row .go-mc { color: var(--sub); font-weight: 600; }
.c .go-row a:hover { text-decoration: underline; }
.c .go-row i { font-style: normal; font-size: 8px; font-weight: 700; margin-left: 4px; padding: 1px 3px; border: 1px solid currentColor; border-radius: 3px; opacity: .75; vertical-align: 1px; }
.c .n small { margin-top: 1px; }
.c .p { margin-top: 0; line-height: 1.2; }
@media (max-width: 600px) { .c { gap: 5px; } .c .go-row a { font-size: 10.5px; } }

/* 一覧の上の部分（2026-12-02 所有者「ガチャガチャしてる・検索の楕円とほかの楕円を区別・シリーズの字が小さい」）
   形で役割を分ける：時代＝文字だけ（下線）／シリーズ＝丸いボタン／成約と出品中＝つながった切り替え／検索＝四角い欄（虫めがね）／グレード＝小さい丸／並び順＝文字だけ */
#sets { margin: 18px 0 0; gap: 14px; }
#sets .setgroups { gap: 26px; margin: 0; border-bottom: 1px solid var(--line); }
#sets .setgroups button { padding: 0 0 9px; border: 0; border-bottom: 3px solid transparent; font-size: 17px; line-height: 1.25; font-weight: 800; text-align: left; color: var(--sub); opacity: .8; }
#sets .setgroups button small { display: block; min-height: 14px; margin-top: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; opacity: .85; }
#sets .setgroups button.on { color: var(--ink); opacity: 1; border-bottom-color: var(--yellow); }
#sets .setgroups button:hover { transform: none; color: var(--ink); }
#sets .setlist { gap: 8px; }
#sets .setlist button { flex: none; padding: 8px 16px; border: 1.5px solid var(--line); background: transparent; font-size: 15px; font-weight: 700; box-shadow: none; }
#sets .setlist button.on { background: var(--yellow); border-color: var(--yellow); color: #203a3a; }
.controls { border-top: 0; border-bottom: 0; padding: 18px 0 6px; gap: 14px 24px; }
.controls .tabs { gap: 0; padding: 3px; border-radius: 12px; background: var(--chip, var(--panel)); border: 1px solid var(--line); }
.controls .tabs button { border: 0; border-radius: 9px; padding: 9px 22px; background: transparent; color: var(--sub); font-weight: 700; }
.controls .tabs button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.controls .tabs button:hover { transform: none; }
#q { border: 0; border-bottom: 1.5px solid var(--edge); border-radius: 0; padding: 10px 6px 10px 32px; background: no-repeat 4px 50% / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23949c8c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
#q:focus { outline: 0; border-bottom-color: var(--yellow); }
.controls .grades button { border: 1px solid var(--line); background: transparent; font-weight: 700; }
.controls .grades button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.controls .sorts { gap: 18px !important; margin-top: -4px; }
.controls .sorts button { padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: var(--sub); font-size: 12px; font-weight: 600; }
.controls .sorts button.on { background: transparent; color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--yellow); }
.count { margin-top: 6px; }
@media (min-width: 721px) { .controls .tabs { justify-self: start; width: auto; } }
@media (max-width: 720px) { .controls { gap: 12px; } #q { font-size: 16px; } #sets .setgroups { gap: 22px; } .controls #grades { padding-bottom: 2px; } .controls #sorts { margin-top: 0; padding-bottom: 4px; } }

/* 出品中の割安・割高（2026-12-03 所有者） */
.vb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 7px; }
.vb b { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.vb span { font-size: 10.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.vb.low b { color: #1f8a4c; } .vb.high b { color: #d3202a; } .vb.mid b { color: var(--sub); font-size: 13px; font-weight: 700; }
html[data-theme='dark'] .vb.low b { color: #35b36c; } html[data-theme='dark'] .vb.high b { color: #ff6b60; }
@media (prefers-color-scheme: dark) { html:not([data-theme='light']) .vb.low b { color: #35b36c; } html:not([data-theme='light']) .vb.high b { color: #ff6b60; } }
