/* A paper catalog within the game's existing stone/parchment themes. */
[data-view="home"] .home-content { max-width: 1060px; margin: 20px auto; padding: 22px 24px 32px; background: color-mix(in srgb,var(--surface) 97%,transparent); border: 1px solid color-mix(in srgb,var(--text) 15%,transparent); border-radius: 12px; }
.decks-heading { align-items: flex-start; margin-bottom: 16px; }
.decks-eyebrow { display: block; color: var(--text-dim); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.decks-heading h2 { margin: 6px 0 3px; font-size: 28px; }
.decks-heading p,.decks-section-intro p { margin: 5px 0 0; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.decks-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 16px; background: color-mix(in srgb,var(--text) 7%,transparent); border: 1px solid color-mix(in srgb,var(--text) 13%,transparent); border-radius: 10px; }
.decks-tab { position: relative; flex: 1; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.decks-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 5px #0002; }
.decks-tab.is-active::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }
.decks-count { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 10px; background: color-mix(in srgb,var(--text) 9%,transparent); font-size: 11px; }
.decks-panel[hidden] { display: none !important; }
.decks-tab:focus-visible,.decks-search:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.decks-panel .deck-list { display: grid; gap: 12px; }
.decks-panel .deck-card { padding: 18px; gap: 16px; border-radius: 9px; }
.decks-panel .deck-card.is-active-deck { border-color: var(--gold); border-left: 4px solid var(--gold); }
.decks-panel .deck-info-btn { flex: 1; min-width: 0; text-align: left; }
.decks-panel .deck-name { font-size: 16px; }
.decks-panel .deck-name .tag { margin-left: 8px; font-size: 10px; vertical-align: middle; }
.decks-panel .deck-icon { flex: 0 0 42px; width: 42px; height: 48px; border-radius: 4px 9px 9px 4px; font-size: 20px; }
.deck-study-progress { display: block; width: 100%; max-width: 240px; height: 5px; margin-top: 10px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; background: color-mix(in srgb,var(--text) 12%,transparent); }
.deck-study-progress::-webkit-progress-bar { background: color-mix(in srgb,var(--text) 12%,transparent); }
.deck-study-progress::-webkit-progress-value { background: var(--gold); border-radius: 4px; }
.deck-study-progress::-moz-progress-bar { background: var(--gold); border-radius: 4px; }
.deck-row-actions { display: flex; align-items: center; gap: 8px; }
.decks-panel .empty-state { padding: 36px 24px; text-align: center; line-height: 1.6; }
.decks-section-intro { margin: 24px 0 12px; }
.decks-section-intro h3,.decks-panel .library-heading h3 { margin: 0; font-size: 18px; }
.decks-section-intro .tag { margin-left: 6px; font-size: 10px; vertical-align: middle; }
.decks-search { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; padding: 0 15px; min-height: 48px; background: var(--surface); border: 1px solid color-mix(in srgb,var(--text) 22%,transparent); border-radius: 8px; }
.decks-search > span { color: var(--text-dim); font-size: 26px; }
.decks-search input { width: 100%; min-width: 0; padding: 12px 0; color: var(--text); background: transparent; border: 0; outline: 0; font: inherit; font-size: 14px; }
.decks-search input::placeholder { color: var(--text-dim); }
.decks-panel .library-filters { flex-wrap: wrap; gap: 10px; }
.decks-panel .library-select { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 6px; }
.alpha-starter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.alpha-starter-card { display: flex; flex-direction: column; padding: 20px; border-radius: 9px; border-top: 3px solid var(--gold); }
.alpha-starter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.alpha-starter-icon { font-size: 29px; line-height: 1; color: var(--gold); }
.alpha-starter-category { color: var(--text-dim); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.alpha-starter-card h4 { margin: 0; font-size: 16px; line-height: 1.4; }
.alpha-starter-card p { flex: 1; margin: 8px 0 18px; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
.alpha-starter-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.alpha-starter-footer small { color: var(--text-dim); font-size: 11px; }
.decks-panel .library-featured { margin: 26px 0; }
.decks-panel .library-scroll { max-height: none; overflow: visible; }
.decks-panel .library-card { margin: 0; }
.decks-panel .library-card .deck-name { font-size: 14px; }
.decks-panel .library-card .deck-sub { line-height: 1.5; font-size: 12px; }
.decks-panel .library-card .deck-icon { background: color-mix(in srgb,var(--gold) 28%,var(--surface)); color: var(--text); }
.decks-panel .upload-deck-card { margin-top: 16px; border-style: dashed; border-radius: 9px; }
.decks-panel .import-drawer { margin-top: 14px; }
@media(max-width:600px) {
 [data-view="home"] .home-content { margin: 12px 0; padding: 18px 14px 26px; border-radius: 9px; }
 .decks-heading { gap: 12px; flex-wrap: wrap; }
 .decks-heading h2 { font-size: 24px; }
 .decks-tab { padding: 10px 5px; font-size: 12px; }
 .decks-panel .deck-card { flex-wrap: wrap; padding: 14px; gap: 12px; }
 .deck-row-actions { width: 100%; justify-content: flex-end; }
 .alpha-starter-grid { grid-template-columns: 1fr; }
 .decks-panel .home-links { flex-wrap: wrap; gap: 10px; }
}
