/* Wish Pool — Phase 4V visual rebuild (light editorial / BARCADE blue) */

/* shared buttons (self-contained — auth.css/product.css not enqueued here) */
.bc-wishes .bc-btn, .bc-wdetail .bc-btn, .bc-sdialog .bc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 16px; border: 1px solid var(--bc-border); border-radius: 8px;
	background: var(--bc-surface); color: var(--bc-text); font: inherit; font-size: 13px;
	cursor: pointer; text-decoration: none;
}
.bc-wishes .bc-btn--primary, .bc-wdetail .bc-btn--primary, .bc-sdialog .bc-btn--primary { background: var(--bc-primary); border-color: var(--bc-primary); color: #fff; }
.bc-wishes .bc-btn--ghost, .bc-wdetail .bc-btn--ghost, .bc-sdialog .bc-btn--ghost { border-color: var(--bc-primary); color: var(--bc-primary); background: none; }

/* ---------- compact hero: eyebrow / title + CTA / descriptions ---------- */
.bc-wishes__intro { padding: 28px 24px 22px; }
.bc-wishes__intro .bc-intro__main { flex: 1; min-width: 0; }
.bc-wishes__titlerow { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bc-wishes__intro .bc-intro__sub { margin-top: 14px; max-width: 640px; }
.bc-wishes__aux { margin: 8px 0 0; font-size: 14px; color: var(--bc-text-2); line-height: 1.7; max-width: 640px; }
.bc-wishes__cta {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 180px; min-height: 52px; padding: 0 32px;
	font-size: 16px; font-weight: 600; border-radius: 10px; flex-shrink: 0;
}

/* ---------- list layout: left TOP10 / right feed ---------- */
.bc-wishes__layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 0 24px 48px; max-width: var(--bc-container); margin: 0 auto; align-items: start; }
.bc-wishes__top-box { border: 1px solid var(--bc-border); border-radius: 12px; padding: 18px; position: sticky; top: 90px; background: var(--bc-surface); }
.bc-wishes__top-h { font-size: 15px; margin: 0 0 10px; }
.bc-wishes__top-h span { color: var(--bc-primary); font-size: 12px; letter-spacing: .08em; }
.bc-wishes__top-list { list-style: none; margin: 0; padding: 0; }
.bc-wishes__top-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--bc-border); }
.bc-wishes__top-list li:first-child { border-top: 0; }
.bc-wishes__top-no { color: var(--bc-primary); font-weight: 700; min-width: 24px; font-size: 13px; }
.bc-wishes__top-list a { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bc-wishes__top-list a strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-wishes__top-list a span { font-size: 12px; color: var(--bc-text-2); }
.bc-wishes__top-cnt { font-style: normal; font-weight: 700; color: var(--bc-primary); font-size: 14px; }
.bc-wishes__top-empty { font-size: 13px; color: var(--bc-text-2); }

/* ---------- grouped filter bar ---------- */
.bc-wishes__bar { margin-bottom: 18px; }
.bc-wishes__bar .bc-filterbar__pills { padding: 8px; border: 1px solid var(--bc-border); border-radius: 12px; background: var(--bc-surface); width: fit-content; }
.bc-wishes__cards { display: grid; gap: 16px; }
.bc-wishes__pages { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- proposal card ---------- */
.bc-wcard { display: grid; grid-template-columns: 224px 1fr; border: 1px solid var(--bc-border); border-radius: 12px; overflow: hidden; background: var(--bc-surface); }
.bc-wcard__cover { aspect-ratio: 4/3; display: block; background: var(--bc-bg); }
.bc-wcard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-wcard__cover-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--bc-text-2); background: linear-gradient(135deg, #eef0f2 0%, #e2e5e8 100%); }
.bc-wcard__body { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.bc-wcard__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bc-wcard__edition { font-size: 12px; color: var(--bc-text-2); }
.bc-wcard__status { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.bc-wcard__type { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--bc-border); }
.bc-wcard__type--localization { border-color: var(--bc-accent); color: var(--bc-accent); }
.bc-wcard__type--fix_enhancement { border-color: #b8860b; color: #b8860b; }
.bc-wcard__type--remix { border-color: #7c3aed; color: #7c3aed; }
.bc-wcard__type--legacy { border-style: dashed; color: var(--bc-muted, #888); }
.bc-wcard__status--collecting { color: #2563a8; background: #e8f1fb; }
.bc-wcard__status--researching { color: #b45309; background: #fdf3e3; }
.bc-wcard__status--accepted { color: #1e7d46; background: #e9f7ef; }
.bc-wcard__status--completed { color: #6d4fc4; background: #f1edfb; }
.bc-wcard__title { font-size: 18px; margin: 0 0 8px; line-height: 1.35; }
.bc-wcard__title a { color: inherit; text-decoration: none; }
.bc-wcard__title a:hover { color: var(--bc-primary); }
.bc-wcard__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.bc-wcard__tag { font-size: 12px; padding: 2px 10px; border: 1px solid var(--bc-border); border-radius: 999px; color: var(--bc-text-2); }
.bc-wcard__reason { font-size: 13px; color: var(--bc-text-2); line-height: 1.65; margin: 8px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-wcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bc-wcard__count { font-size: 13px; color: var(--bc-text-2); }
.bc-wcard__count strong { font-size: 16px; color: var(--bc-text); }
.bc-wcard__actions { display: flex; gap: 10px; align-items: center; }
.bc-wcard__detail {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 16px; font-size: 13px; border: 1px solid var(--bc-border);
	border-radius: 8px; color: var(--bc-text); text-decoration: none; background: var(--bc-surface);
}
.bc-wcard__detail:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.bc-wish-support.is-done { background: #e9f7ef; border-color: #bfe6cf; color: #1e7d46; }

/* ---------- detail: one closed Main Stage card ---------- */
.bc-wdetail__wrap { max-width: var(--bc-container); margin: 0 auto; padding: 18px 24px 56px; }
.bc-wdetail__hero {
	display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0 48px;
	margin: 14px 0 32px; align-items: start;
	background: var(--bc-surface); border: 1px solid var(--bc-border);
	border-radius: 16px; padding: 28px 32px;
}
.bc-wdetail__rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bc-wdetail__cover { margin: 0; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--bc-bg); border: 1px solid var(--bc-border); }
.bc-wdetail__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-wdetail__meta { display: flex; gap: 8px; flex-wrap: wrap; align-content: start; }
.bc-wdetail__main { display: flex; flex-direction: column; min-width: 0; }
.bc-wdetail__title { font-size: 28px; line-height: 1.3; margin: 0 0 10px; }
.bc-wdetail__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.bc-wdetail__stats { font-size: 14px; color: var(--bc-text-2); margin: 0 0 14px; }
.bc-wdetail__count-num { font-size: 30px; font-weight: 700; color: var(--bc-primary); }
.bc-wdetail__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.bc-wdetail__support { min-width: 180px; min-height: 48px; font-size: 15px; font-weight: 600; }
.bc-wdetail__proposal {
	border-radius: 12px; background: var(--bc-bg);
	padding: 16px 18px; margin-top: auto;
}
.bc-wdetail__h { font-size: 15px; margin: 0 0 10px; }
.bc-wdetail__reason { white-space: pre-wrap; line-height: 1.75; margin: 0; font-size: 14.5px; }
.bc-wdetail__statusnote { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--bc-border); font-size: 13px; color: var(--bc-text-2); }

/* ---------- tag stats cards ---------- */
.bc-wdetail__sect { margin-top: 28px; }
.bc-wdetail__statgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bc-wdetail__stat { border: 1px solid var(--bc-border); border-radius: 10px; padding: 14px 16px; background: var(--bc-surface); display: flex; flex-direction: column; gap: 2px; }
.bc-wdetail__stat em { font-style: normal; font-size: 24px; font-weight: 700; color: var(--bc-primary); }
.bc-wdetail__stat span { font-size: 13px; color: var(--bc-text-2); }

/* ---------- player notes cards ---------- */
.bc-wdetail__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bc-wnote { border: 1px solid var(--bc-border); border-radius: 10px; padding: 14px 16px; background: var(--bc-surface); }
.bc-wnote__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.bc-wnote__pid { color: var(--bc-text-2); font-size: 12px; }
.bc-wnote__time { margin-left: auto; color: var(--bc-text-2); font-size: 12px; }
.bc-wnote__body { margin: 8px 0 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.bc-wnote__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* form */
.bc-wform__wrap { max-width: 640px; }
.bc-wform__title { font-size: 26px; margin: 10px 0 4px; }
.bc-wform__form { margin-top: 20px; display: grid; gap: 22px; }
.bc-wform__label { display: block; font-weight: 600; margin-bottom: 8px; }
.bc-wform__label em { color: var(--bc-accent); font-style: normal; }
.bc-wform__types { display: flex; gap: 10px; flex-wrap: wrap; }
.bc-wform__type input { position: absolute; opacity: 0; }
.bc-wform__type span { display: inline-block; padding: 10px 18px; border: 1px solid var(--bc-border); border-radius: 12px; cursor: pointer; font-weight: 600; }
.bc-wform__type input:checked + span { border-color: var(--bc-accent); color: var(--bc-accent); background: color-mix(in srgb, var(--bc-accent) 12%, transparent); }
.bc-wform__type input:focus-visible + span { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
.bc-wform__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-wform__tag input { position: absolute; opacity: 0; }
.bc-wform__tag span { display: inline-block; padding: 6px 14px; border: 1px solid var(--bc-border); border-radius: 999px; cursor: pointer; }
.bc-wform__tag input:checked + span { border-color: var(--bc-accent); color: var(--bc-accent); }
.bc-wform__form textarea, .bc-wform__form input[type=text], .bc-wform__form input[type=url], .bc-gp__input { width: 100%; padding: 10px 12px; border: 1px solid var(--bc-border); border-radius: 8px; background: var(--bc-surface); color: inherit; font: inherit; }
.bc-wform__foot { display: flex; justify-content: space-between; align-items: center; }
.bc-wform__err { color: #f87171; font-size: 13px; }
.bc-wform__exists { font-size: 13px; color: var(--bc-accent); }
.bc-wform__exists a { color: inherit; }

/* picker (public) */
.bc-gp { position: relative; }
.bc-gp__state { min-height: 18px; font-size: 12px; opacity: .7; margin-top: 4px; }
.bc-gp__list { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--bc-border); border-radius: 10px; background: var(--bc-surface); max-height: 280px; overflow: auto; box-shadow: 0 12px 30px rgba(22,22,22,.18); }
.bc-gp__item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.bc-gp__item.is-active { background: rgba(232,120,34,.12); }
.bc-gp__item img { border-radius: 4px; object-fit: cover; }
.bc-gp__ph { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--bc-border); border-radius: 4px; font-size: 12px; opacity: .5; }
.bc-gp__m { margin-left: auto; font-size: 12px; opacity: .6; }
.bc-gp__missing { margin-top: 8px; font-size: 13px; }

/* dialogs */
.bc-dialog { border: 1px solid var(--bc-border); border-radius: 14px; background: var(--bc-surface); color: inherit; padding: 22px; max-width: 440px; width: calc(100% - 32px); position: relative; }
.bc-dialog::backdrop { background: rgba(0,0,0,.55); }
.bc-dialog h3 { margin: 0 0 14px; font-size: 17px; }
.bc-dialog label { display: block; margin-bottom: 12px; font-size: 13px; }
.bc-dialog input, .bc-dialog textarea { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--bc-border); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.bc-dialog__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.bc-dialog__close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 20px; color: inherit; cursor: pointer; }
.bc-sdialog__direct { width: 100%; }
.bc-sdialog__more { margin-top: 14px; border-top: 1px dashed var(--bc-border); padding-top: 14px; }
.bc-sdialog__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.bc-sdialog__err { display: block; margin-top: 8px; }
.bc-back { display: inline-block; font-size: 13px; opacity: .8; text-decoration: none; color: inherit; }
.bc-muted { opacity: .7; font-size: 13px; }

/* ---------- tablet: narrower sidebar ---------- */
@media (max-width: 900px) {
	.bc-wishes__layout { grid-template-columns: 240px 1fr; gap: 24px; }
	.bc-wdetail__hero { grid-template-columns: 300px 1fr; gap: 10px 24px; }
}

/* ---------- mobile (≤640px): dedicated re-layout, not a shrunk desktop ---------- */
@media (max-width: 640px) {
	/* intro → full-width CTA (frozen order: title, sub, aux, CTA) */
	.bc-wishes__intro { padding: 24px 16px 16px; }
	.bc-wishes__intro .bc-intro__main { display: flex; flex-direction: column; width: 100%; }
	.bc-wishes__titlerow { display: contents; }
	.bc-wishes__intro .bc-intro__en { order: 1; }
	.bc-wishes__intro .bc-intro__title { order: 2; }
	.bc-wishes__intro .bc-intro__sub { order: 3; }
	.bc-wishes__intro .bc-wishes__aux { order: 4; }
	.bc-wishes__cta { order: 5; width: 100%; min-height: 48px; margin-top: 14px; }

	/* reorder: filter chips → TOP10 strip → card feed */
	.bc-wishes__layout { display: flex; flex-direction: column; align-items: stretch; padding: 0 16px 40px; gap: 0; }
	.bc-wishes__main { display: contents; }
	.bc-wishes__bar { order: 1; margin-bottom: 16px; min-width: 0; }
	.bc-wishes__top { order: 2; margin-bottom: 18px; min-width: 0; }
	.bc-wishes__cards { min-width: 0; }
	.bc-wishes__cards { order: 3; }
	.bc-wishes__pages { order: 4; }

	/* status chips: horizontal scroll */
	.bc-wishes__bar .bc-filterbar__pills { flex-wrap: nowrap; overflow-x: auto; width: auto; -webkit-overflow-scrolling: touch; }
	.bc-wishes__bar .bc-filterbar__pill { flex-shrink: 0; }

	/* TOP10 as horizontal scroll cards — no sidebar */
	.bc-wishes__top-box { position: static; padding: 14px; }
	.bc-wishes__top-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.bc-wishes__top-list li { flex-direction: column; align-items: flex-start; gap: 4px; min-width: 168px; max-width: 200px; border: 1px solid var(--bc-border); border-radius: 10px; padding: 10px 12px; }
	.bc-wishes__top-list li:first-child { border-top: 1px solid var(--bc-border); }
	.bc-wishes__top-cnt::after { content: " 赞同"; font-weight: 400; font-size: 11px; color: var(--bc-text-2); }

	/* single-column vertical proposal cards */
	.bc-wcard { grid-template-columns: 1fr; }
	.bc-wcard__cover { width: 100%; }
	.bc-wcard__body { padding: 14px 16px; }
	.bc-wcard__reason { -webkit-line-clamp: 3; }
	.bc-wcard__foot { flex-direction: column; align-items: stretch; gap: 10px; }
	.bc-wcard__actions { display: flex; gap: 10px; }
	.bc-wcard__actions > * { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

	/* detail: single column, frozen reading order via display:contents + order */
	.bc-wdetail__wrap { padding: 14px 16px 40px; }
	.bc-wdetail__hero { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; margin-top: 12px; }
	.bc-wdetail__rail, .bc-wdetail__main { display: contents; }
	.bc-wdetail__cover { order: 1; width: 100%; max-width: 420px; }
	.bc-wdetail__title { order: 2; margin-bottom: 0; }
	.bc-wdetail__meta { order: 3; }
	.bc-wdetail__tags { order: 4; margin-bottom: 0; }
	.bc-wdetail__stats { order: 5; margin-bottom: 0; }
	.bc-wdetail__actions { order: 6; flex-direction: column; margin-bottom: 0; }
	.bc-wdetail__actions > * { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
	.bc-wdetail__proposal { order: 7; margin-top: 4px; }
	.bc-wdetail__statgrid { grid-template-columns: repeat(2, 1fr); }
	.bc-wnote__time { margin-left: 0; width: 100%; }
}
