/* Reading discovery lives only on the Bacavia public homepage. */
html body.bg-game.public-catalog-route:has(.bd-home){background:#f7f2e8!important;color:#173e49;overflow-x:hidden}
.bd-home{--paper:#fffcf4;--ink:#173e49;--muted:#4b6266;--line:#decfb8;--teal:#155e65;--gold:#b9763d;color:var(--ink);font-family:system-ui,sans-serif;padding-bottom:40px}
.bd-home *{box-sizing:border-box}
.bd-home a{color:inherit;text-decoration:none}
.bd-home a:focus-visible{outline:3px solid #a74e18;outline-offset:4px}
.bd-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:258px;margin:0 0 18px;padding:28px clamp(24px,5vw,60px);overflow:hidden;border:1px solid #d9c5a5;border-radius:26px;background:linear-gradient(112deg,#fffbef 0%,#f4e7cd 64%,#d4e5df 100%)}
.bd-hero-copy{position:relative;z-index:1;max-width:680px}
.bd-eyebrow{margin:0 0 8px;color:#846032;font-size:11px;font-weight:850;letter-spacing:.17em;text-transform:uppercase}
.bd-hero h1,.bd-section h2{font-family:Georgia,serif;letter-spacing:-.035em}
.bd-hero h1{max-width:680px;margin:0;font-size:clamp(32px,4.1vw,55px);line-height:1.08}
.bd-hero-copy>p:not(.bd-eyebrow){max-width:590px;margin:14px 0 18px;color:#385961;font-size:16px;line-height:1.55}
.bd-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:48px;padding:11px 20px;border-radius:12px;background:#155e65;color:#fffaf0!important;font-weight:750;box-shadow:0 3px 0 #0b3e45}
.bd-primary:hover{background:#0c4b53}
.bd-hero-mark{width:170px;aspect-ratio:1;flex:0 0 auto;display:grid;place-items:center;transform:rotate(-12deg);border:1px solid #bb915a;border-radius:50%;background:#f4e0b6;box-shadow:0 0 0 12px #f7ebd2,0 0 0 13px #d9be91;color:#7b633f}
.bd-hero-mark>span{position:absolute;top:0;font:140px Georgia,serif;line-height:1;opacity:.24}
.bd-hero-mark small{font:700 32px/.9 Georgia,serif;letter-spacing:.11em;text-align:center}
.bd-resume{display:flex;align-items:center;gap:14px;min-height:94px;margin:0 0 14px;padding:11px 18px;border:1px solid #c5d3c7;border-radius:17px;background:#e9f1ec}
.bd-resume img{width:48px;height:64px;flex:0 0 48px;object-fit:cover;border-radius:4px}
.bd-resume>span{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.bd-resume small{font-size:10px;font-weight:850;letter-spacing:.12em;color:#27666a}
.bd-resume strong{font:700 18px/1.2 Georgia,serif;overflow-wrap:anywhere}
.bd-resume em{font-size:11px;font-style:normal;color:var(--muted)}
.bd-resume>b{font-size:12px;color:var(--teal);white-space:nowrap}
.bd-content{scroll-margin-top:20px}
.bd-section{margin:0 0 22px;padding:30px clamp(20px,4vw,44px) 34px;border:1px solid var(--line);border-radius:24px;background:var(--paper);box-shadow:0 10px 28px #173e490d}
.bd-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.bd-section h2{margin:0;font-size:clamp(27px,3.2vw,38px);line-height:1.16}
.bd-section-head p:last-child{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.45}
.bd-section-head>a{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--teal);font-size:13px;font-weight:750;border-bottom:1px solid var(--teal)}
.bd-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.bd-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e2d5bd;border-radius:16px;background:#fffdf8;box-shadow:0 3px 12px #173e490b;transition:transform .18s,box-shadow .18s}
.bd-card:hover{transform:translateY(-3px);box-shadow:0 9px 24px #173e4919}
.bd-cover{display:grid;place-items:center;min-width:0;aspect-ratio:4/3;overflow:hidden;background:linear-gradient(145deg,#dbe9df,#ede1ca)}
.bd-cover img{display:block;width:auto;height:100%;max-width:100%;aspect-ratio:2/3;object-fit:contain;box-shadow:0 3px 12px #173e4925}
.bd-cover img:not([src]){visibility:hidden}
.bd-card-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;padding:14px 15px 16px}
.bd-badge{display:inline-block;padding:5px 8px;border-radius:5px;background:#e2eee9;color:#145b62;font-size:10px;font-weight:850;letter-spacing:.12em}
.bd-card-title{display:block;font:700 19px/1.22 Georgia,serif;overflow-wrap:anywhere}
.bd-author{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.bd-hint{display:block;margin-top:auto;padding-top:6px;color:#27666a;font-size:12px;font-weight:700}
.bd-open{display:block;margin-top:3px;color:var(--teal);font-size:13px;font-weight:800}
.bd-chat-section{background:#e9f1ec}
.bd-chat-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bd-card-wide{flex-direction:row;min-height:240px}
.bd-card-wide .bd-cover{width:38%;flex:0 0 38%;aspect-ratio:auto}
.bd-card-wide .bd-card-copy{justify-content:center;padding:22px}
.bd-card-wide .bd-card-title{font-size:clamp(22px,2.6vw,32px)}
.bd-preview-section{background:#fcf8ec}
.bd-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bd-categories a{display:flex;align-items:center;gap:10px;min-height:58px;padding:12px 16px;border:1px solid #d9c8ab;border-radius:12px;background:#f7f1e3;font-weight:750}
.bd-categories a:hover{background:#ece3cf}
.bd-categories small{margin-left:auto;color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap}
.bd-categories a>span:last-child{color:var(--teal)}
.bd-footer{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:10px 20px 18px;color:#455e61;font-size:13px}
.bd-footer>span{font-weight:850;letter-spacing:.13em;color:#155e65}
.bd-footer p{margin:0 auto 0 0}
.bd-footer nav{display:flex;gap:16px;flex-wrap:wrap}
.bd-footer a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:1100px){.bd-home{padding-top:88px}}
@media(max-width:900px){.bd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-hero-mark{width:120px}.bd-hero-mark small{font-size:25px}}
@media(max-width:600px){
 .bd-home{padding:88px 12px 80px}
 .bd-hero{min-height:0;margin:0 0 12px;padding:20px 20px 21px;gap:0;border-radius:19px}
 .bd-hero h1{font-size:31px;line-height:1.12}
 .bd-hero-copy>p:not(.bd-eyebrow){font-size:13px;margin:10px 0 14px;line-height:1.45}
 .bd-hero-mark{display:none}
 .bd-primary{min-height:46px;padding:10px 16px;font-size:13px}
 .bd-resume{gap:10px;padding:10px;margin-bottom:12px}
 .bd-resume strong{font-size:15px}
 .bd-resume>b{font-size:0}
 .bd-resume>b span{font-size:18px}
 .bd-section{margin-bottom:13px;padding:18px 15px 20px;border-radius:18px}
 .bd-section-head{align-items:start;gap:10px;margin-bottom:14px}
 .bd-section h2{font-size:27px}
 .bd-section-head p:last-child{font-size:12px}
 .bd-section-head>a{font-size:11px;line-height:1.2;text-align:right;max-width:92px}
 .bd-grid{gap:10px}
 .bd-cover{aspect-ratio:1/1}
 .bd-card-copy{padding:10px 10px 12px;gap:5px}
 .bd-card-title{font-size:15px}
 .bd-author,.bd-hint{font-size:11px}
 .bd-open{font-size:11px}
 .bd-chat-list{grid-template-columns:1fr}
 .bd-card-wide{min-height:190px}
 .bd-card-wide .bd-cover{width:39%;flex-basis:39%}
 .bd-card-wide .bd-card-title{font-size:21px}
 .bd-card-wide .bd-card-copy{padding:13px}
 .bd-categories{grid-template-columns:1fr 1fr;gap:8px}
 .bd-categories a{min-height:56px;padding:9px;flex-wrap:wrap;gap:3px 8px;font-size:12px}
 .bd-categories small{order:3;margin-left:0;width:100%}
 .bd-footer{padding:10px 4px 0}
}
@media(prefers-reduced-motion:reduce){.bd-card{transition:none}}
