header.pg { background: var(--surface); border-bottom: 1px solid var(--border); padding: .8rem 1.25rem;
            display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .4rem; }
header.pg .brand { font-weight: 800; font-size: 1.05rem; color: var(--text); }
header.pg .tag { color: var(--muted); font-size: .85rem; margin-left: .4rem; }
.pg-nav { margin-left: auto; display: flex; gap: .9rem; font-size: .9rem; }
.pg-nav a { color: var(--muted); text-decoration: none; }
.pg-nav a.active { color: var(--text); font-weight: 700; }
@media (max-width: 560px) {
.pg-nav { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
header.pg .tag { display: none; }
.pg-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; border: 1px solid var(--border);
              border-radius: 999px; background: rgba(255,255,255,.05); color: #c3cee0; }
.pg-nav a.active { background: var(--accent); border-color: transparent; color: #0b1020; }
}
.hn-page { max-width: 1200px; margin: 0 auto; }
.hn-page h1 { margin: .2rem 0 .4rem; }
.hn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; align-items: start; margin-top: .6rem; }
@media (max-width: 560px) {
main { padding: 1rem .75rem; }
.hn-grid { grid-template-columns: minmax(0, 1fr); }
}
.hn-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem;
           display: flex; flex-direction: column; gap: .55rem; overflow-wrap: anywhere; }
body.cx-cardwall .hn-card { background: rgba(14,20,34,.90); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hn-rank { font-size: .75rem; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.hn-imgwrap { align-self: center; width: 100%; max-width: 360px; line-height: 0; border-radius: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 62' preserveAspectRatio='none'><rect x='1' y='1' width='42' height='60' rx='5' fill='%23121a2b' stroke='%235a6e90' stroke-width='1.5' stroke-dasharray='4 3'/><text x='22' y='29' font-size='8' fill='%23a3b1c8' text-anchor='middle' font-family='sans-serif'>no</text><text x='22' y='39' font-size='8' fill='%23a3b1c8' text-anchor='middle' font-family='sans-serif'>image</text></svg>") center / 100% 100% no-repeat; }
.hn-img { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 12px; display: block; color: transparent;
          box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.hn-name { font-size: 1.15rem; font-weight: 700; margin: .1rem 0 0; line-height: 1.3; }
.hn-meta { font-size: .85rem; color: #b3c0d6; }
.hn-page .lang { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .05rem .4rem;
                 border-radius: 4px; vertical-align: middle; margin-left: .4rem; border: 1px solid currentColor; }
.hn-page .lang-JP { color: #ff7b7b; }
.hn-raw { display: flex; align-items: baseline; gap: .6rem; }
.hn-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hn-val { font-weight: 700; font-size: 1.2rem; }
.hn-page .est { font-size: .7rem; color: var(--muted); font-weight: 600; margin-left: .3rem; }
.hn-buy { display: flex; flex-wrap: wrap; gap: .45rem; margin: .1rem 0; }
.hn-buy .buy-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; border: 1px solid var(--border);
                   border-radius: 8px; background: var(--surface2); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
body.cx-cardwall .hn-buy .buy-btn { color: #c7d8ff; }
.hn-desc { font-size: .9rem; background: var(--surface2); border-left: 3px solid var(--accent); padding: .55rem .75rem; border-radius: 4px; }
.hn-vote { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .1rem 0 0; }
.hn-vote button { margin: 0; width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
                  background: var(--surface2); color: #c3cee0; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.hn-vote .hn-n { font-variant-numeric: tabular-nums; color: var(--text); }
.hn-vote button[aria-pressed="true"].hn-like { background: rgba(62,207,142,.18); border-color: var(--green); color: #bff3da; }
.hn-vote button[aria-pressed="true"].hn-dislike { background: rgba(240,113,120,.16); border-color: var(--red); color: #ffd0d3; }
.hn-vote button:focus-visible, .hn-btn:focus-visible, .hn-buy .buy-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hn-board { display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--border); padding-top: .7rem; margin-top: .2rem; }
.hn-act { border-radius: 10px; }
.hn-act[open] { background: rgba(7,10,20,.45); border: 1px solid var(--border); }
.hn-btn { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .4rem .9rem;
          border-radius: 10px; font-weight: 700; font-size: .95rem; text-align: center; user-select: none; }
.hn-btn::-webkit-details-marker { display: none; }
.hn-btn::after { content: "▾"; margin-left: .5rem; font-size: .8em; transition: transform .15s ease; }
.hn-act[open] > .hn-btn::after { transform: rotate(180deg); }
.hn-btn-sell { background: var(--accent); color: #0b1020; }
.hn-btn-buy { background: transparent; color: #c7d8ff; border: 1px solid #4a6390; }
.hn-act[open] > .hn-btn { border-radius: 10px 10px 0 0; }
.hn-form { padding: .8rem .8rem .9rem; display: flex; flex-direction: column; gap: .7rem; }
.hn-form input, .hn-form textarea, .hn-remove-form input { margin: 0; min-height: 44px; font-size: 1rem; }
.hn-form textarea { resize: vertical; min-height: 80px; }
.hn-field { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: #c3cee0; margin: 0; position: relative; }
.hn-ltxt { display: block; }
.hn-opt, .hn-req { color: var(--muted); font-weight: 400; }
.hn-req { color: var(--amber); }
.hn-money { display: flex; align-items: stretch; }
.hn-money > span { flex: none; white-space: nowrap; display: flex; align-items: center; padding: 0 .65rem; background: var(--surface2); border: 1px solid var(--border);
                   border-right: 0; border-radius: 6px 0 0 6px; color: #c3cee0; font-weight: 600; }
.hn-money input { border-radius: 0 6px 6px 0; min-width: 0; }
.hn-counter { align-self: flex-end; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hn-counter.hn-full { color: var(--amber); }
.hn-cond-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.hn-cond-set legend { font-size: .82rem; color: #c3cee0; padding: 0; margin-bottom: .3rem; }
.hn-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.hn-seg label { margin: 0; position: relative; }
.hn-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; min-height: 0; }
.hn-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .25rem .3rem;
               border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: #c3cee0; font-size: .82rem; line-height: 1.15; cursor: pointer; }
.hn-seg input:checked + span { background: rgba(91,141,239,.22); border-color: var(--accent); color: #fff; font-weight: 700; }
.hn-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.hn-notice { margin: 0; font-size: .78rem; line-height: 1.4; color: #c3cee0; background: rgba(230,192,123,.08);
             border: 1px solid rgba(230,192,123,.35); border-radius: 8px; padding: .5rem .6rem; }
.hn-warn { margin: 0; font-size: .8rem; color: #ffb3b8; }
.hn-submit { margin: 0; width: 100%; min-height: 46px; border-radius: 10px; font-size: 1rem; }
.hn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hn-thanks { padding: .9rem .8rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.hn-thanks-h { margin: 0; font-weight: 700; color: #bff3da; }
.hn-code { display: block; font: 700 1.35rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-align: center;
           padding: .6rem; border: 1px dashed var(--amber); border-radius: 8px; color: var(--amber); background: rgba(230,192,123,.06); user-select: all; }
.hn-code-note { margin: 0; font-size: .82rem; color: #c3cee0; }
.hn-offers { margin-top: .3rem; }
.hn-offers-h { font-size: .95rem; margin: .2rem 0 .3rem; }
.hn-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .5rem 0 .3rem; }
.hn-count { display: inline-block; min-width: 1.3rem; text-align: center; border-radius: 999px; background: var(--surface2); color: var(--text); padding: 0 .35rem; }
.hn-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.hn-post { position: relative; background: rgba(7,10,20,.5); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .7rem; }
.hn-post-top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.hn-chip { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; border: 1px solid; }
.hn-cond { color: #9fd0ff; border-color: rgba(91,141,239,.6); background: rgba(91,141,239,.12); }
.hn-price { font-weight: 800; }
.hn-date { margin-left: auto; font-size: .75rem; color: var(--muted); }
.hn-note { margin: .3rem 0 .2rem; font-size: .88rem; color: #dbe3ef; }
.hn-handle { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: #8fc4ff; }
.hn-empty { margin: .2rem 0; font-size: .85rem; color: var(--muted); }
.hn-safety { margin: .6rem 0 0; font-size: .78rem; color: #ffcf9e; }
.hn-safety::before { content: "⚠ "; }
.hn-foot { color: #c3cee0; font-size: .8rem; padding: 1.5rem 0 2rem; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.hn-foot p { margin: 0 0 .6rem; }
.hn-remove { max-width: 360px; }
.hn-remove > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; color: #a3c0ff; }
.hn-remove-form { display: flex; flex-direction: column; gap: .5rem; background: rgba(10,14,26,.8); border: 1px solid var(--border);
                  border-radius: 10px; padding: .7rem; text-shadow: none; }
.hn-btn-quiet { margin: 0; min-height: 44px; background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.hn-done { margin: 0; color: #bff3da; }
.hn-mod { max-width: 900px; margin: 0 auto; }
.hn-mod h1 { margin: .2rem 0 .3rem; }
.hn-mod h2 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.hn-mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.hn-mod-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .3rem .75rem; padding: .75rem;
               background: rgba(14,20,34,.92); border: 1px solid var(--border); border-radius: 12px; }
.hn-mod-item img { width: 56px; height: 78px; object-fit: cover; border-radius: 5px; grid-row: span 3; }
.hn-mod-card { font-weight: 700; }
.hn-mod-card small { color: var(--muted); font-weight: 400; }
.hn-mod-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .85rem; }
.hn-kind-sell { color: #bff3da; border-color: rgba(62,207,142,.6); background: rgba(62,207,142,.12); }
.hn-kind-buy { color: #ffe1a8; border-color: rgba(230,192,123,.6); background: rgba(230,192,123,.1); }
.hn-flag { font-size: .72rem; font-weight: 700; color: #ffb3b8; border: 1px solid rgba(240,113,120,.6); border-radius: 999px; padding: .05rem .45rem; }
.hn-mod-note { margin: 0; font-size: .9rem; color: #dbe3ef; grid-column: 2; }
.hn-mod-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .3rem; }
.hn-mod-actions form { margin: 0; }
.hn-mod-actions button { width: 100%; margin: 0; min-height: 44px; border-radius: 9px; }
.hn-approve { background: var(--green); color: #0b1020; }
.hn-reject { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.hn-delete { background: transparent; color: #ffb3b8; border: 1px solid rgba(240,113,120,.6); }
.hn-mod-actions.hn-one { grid-template-columns: minmax(0, 1fr); }
.hn-mod-legend { font-size: .8rem; color: #c3cee0; background: rgba(10,14,26,.75); border-radius: 8px; padding: .5rem .7rem; }
.hn-mod-legend b { color: var(--text); }
@media (min-width: 700px) {
.hn-mod-actions { grid-column: 2; max-width: 420px; }
.hn-mod-actions.hn-one { max-width: 140px; }
}
.hn-msg { border: 1px solid var(--border); background: rgba(14,20,34,.92); border-radius: 10px; padding: .7rem .9rem; margin: .6rem 0; }
.hn-msg.hn-ok { border-color: var(--green); }
.hn-msg.hn-err { border-color: var(--red); }
.hn-errors { margin: 0; padding: .55rem .8rem .55rem 1.6rem; border: 1px solid rgba(240,113,120,.6); border-radius: 8px;
             background: rgba(240,113,120,.1); color: #ffd0d3; font-size: .85rem; }
.hn-formpage { max-width: 520px; margin: 0 auto; }
.hn-formpage .hn-card { gap: .7rem; }
.hn-mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .75rem; align-items: center; }
.hn-mini img { width: 72px; height: 100px; object-fit: cover; border-radius: 6px; }
.hn-kind-tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hn-removal { font-size: .78rem; color: #c3cee0; margin: 0; }
.hn-all { margin-top: 2rem; }
.hn-mod table { width: 100%; }
.hn-post .hn-kind-tag { margin-right: .2rem; }
@media (max-width:560px) {
header.pg { padding:.6rem .75rem 0; gap:.15rem .4rem; }
.pg-nav { margin:0 -.75rem; width:calc(100% + 1.5rem); }
}
.hn-buy .buy-btn { flex:1 1 auto; justify-content:center; }
@media (min-width:561px) {
.hn-buy .buy-btn { padding:0 .6rem; }
}
.hn-pick { margin: 0; font-size: .88rem; color: #dbe4f5; font-weight: 600; }
.hn-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hn-types > .hn-type { min-width: 0; }
.hn-types > .hn-type[open] { grid-column: 1 / -1; order: 5; }
.hn-type-btn { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center;
               justify-content: stretch; gap: .1rem .45rem; min-height: 64px; padding: .55rem .6rem;
               text-align: left; border: 1px solid var(--tc, #4a6390); background: var(--tb, rgba(91,141,239,.10)); color: var(--text); }
.hn-type-btn::after { display: none; }
.hn-type-ic { grid-row: 1 / 3; font-size: 1.35rem; line-height: 1; align-self: center; }
.hn-type-t { font-weight: 800; font-size: .88rem; line-height: 1.2; color: #fff; }
.hn-type-h { font-weight: 400; font-size: .74rem; line-height: 1.25; color: #c3cee0; }
.hn-type-btn:hover { filter: brightness(1.12); }
.hn-type[open] > .hn-type-btn { min-height: 52px; border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
.hn-type[open] { border-color: var(--tc); }
.hn-type-sell { --tc: #3ecf8e; --tb: rgba(62,207,142,.14); }
.hn-type-buy { --tc: #e6c07b; --tb: rgba(230,192,123,.13); }
.hn-type-trade_away { --tc: #b58cff; --tb: rgba(181,140,255,.14); }
.hn-type-trade_for { --tc: #5bc8e6; --tb: rgba(91,200,230,.13); }
.hn-type[open] > .hn-type-btn { background: var(--tb); }
.hn-type-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hn-form select { margin: 0; min-height: 44px; font-size: 1rem; width: 100%; color: var(--text); background: var(--surface2);
                  border: 1px solid var(--border); border-radius: 6px; padding: 0 .6rem; }
.hn-form select:focus-visible, .hn-form input:focus-visible, .hn-form textarea:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.hn-hint { font-size: .74rem; color: var(--muted); }
.hn-note-foot { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.hn-note-foot .hn-counter { align-self: auto; }
.hn-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hn-contact-set { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .65rem .7rem; margin: 0; min-width: 0;
                  display: flex; flex-direction: column; gap: .6rem; }
.hn-contact-set legend { font-size: .82rem; color: #c3cee0; padding: 0 .3rem; }
.hn-contact-set legend .hn-req { display: block; font-size: .76rem; }
.hn-contact-err { margin: 0; }
.hn-kind-trade-away { color: #e2d3ff; border-color: rgba(181,140,255,.6); background: rgba(181,140,255,.13); }
.hn-kind-trade-for { color: #c9f1fb; border-color: rgba(91,200,230,.6); background: rgba(91,200,230,.12); }
.hn-sub .hn-chip { text-transform: none; letter-spacing: 0; font-size: .74rem; }
.hn-posts { margin-top: .55rem; }
.hn-trade { margin: .35rem 0 0; font-size: .88rem; color: #fff; background: rgba(255,255,255,.05); border-radius: 6px; padding: .3rem .5rem; }
.hn-trade-l { font-weight: 800; color: var(--amber); margin-right: .2rem; }
.hn-post-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.hn-meet { color: #ffd9c2; border-color: rgba(255,160,110,.55); background: rgba(255,160,110,.1); }
.hn-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.hn-cs { color: #ffb0b8; }
.hn-cs-l { font-weight: 400; color: #c3cee0; margin-right: .25rem; }
.hn-unverified { margin: 0; font-size: .72rem; color: var(--muted); }
.hn-unverified::before { content: "ⓘ "; }
.hn-tips { margin-top: .6rem; border: 1px solid rgba(62,207,142,.4); border-radius: 10px; background: rgba(62,207,142,.07); }
.hn-tips > summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; font-weight: 700;
                     font-size: .9rem; color: #bff3da; list-style: none; }
.hn-tips > summary::-webkit-details-marker { display: none; }
.hn-tips > summary::after { content: "▾"; margin-left: auto; font-size: .8em; transition: transform .15s ease; }
.hn-tips[open] > summary::after { transform: rotate(180deg); }
.hn-tips > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hn-tips ul { margin: 0; padding: 0 .9rem .7rem 2rem; font-size: .84rem; line-height: 1.45; color: #dbe3ef; }
.hn-tips li + li { margin-top: .2rem; }
.hn-tips-top { margin-top: 0; max-width: 640px; background: rgba(10,14,26,.85); }
.hn-mod-item .hn-trade, .hn-mod-item .hn-mod-contact { grid-column: 2; }
.hn-mod-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; font-size: .88rem; }
.hn-mod-item > :not(img):not(.hn-mod-actions) { grid-column: 2; min-width: 0; }
.hn-type:not([open]) > .hn-type-btn { height: 100%; }
.hn-types > .hn-act-preview + .hn-act-preview { margin-top: 0; }
.hn-act-preview .hn-type-btn[disabled] { height: 100%; text-align: left; font-weight: 400; }
.hn-act-preview .hn-type-btn::after { content: none; }
.pg-credit { max-width: 60rem; margin: 1.5rem auto 0; padding: 1rem 1rem 6.5rem; color: #c9cbe0; font: 400 .8rem/1.45 system-ui, sans-serif; text-align: center; }
