html{scrollbar-width:none}html::-webkit-scrollbar{display:none}body:has(dialog[open]){overflow:hidden}
#modal.sources-modal{padding:0;border:1px solid #e8ddc6;border-radius:30px;width:min(410px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:hidden;background:#fff7e9;box-shadow:0 24px 80px #112f4560;color:#214d43}
#modal.sources-modal::backdrop{background:#112f3bcc;backdrop-filter:blur(5px)}
.sources-modal #modalContent{max-height:calc(100dvh - 26px);display:flex;overflow:hidden}.sources-sheet{display:flex;flex-direction:column;width:100%;min-width:0;max-height:calc(100dvh - 26px);font:14px/1.4 system-ui,sans-serif}.sources-sheet *{box-sizing:border-box}.sources-hero{flex-shrink:0;min-height:153px;position:relative;display:flex;align-items:center;padding:23px 24px;background:radial-gradient(ellipse at 85% 80%,#68886a,#28574e 65%,#20483f);color:#fff5dd;overflow:hidden}.sources-hero-copy{position:relative;z-index:1}.sources-hero-copy>span{font-size:9px;letter-spacing:1.6px;color:#f0d292}.sources-hero h2{font-size:29px;line-height:1.08;letter-spacing:-.8px;margin:8px 0}.sources-hero p{font-size:11px;color:#e0e7d0;margin:8px 0 0}.sources-hero-art{position:absolute;right:15px;bottom:3px;width:122px;height:139px;transform:rotate(8deg)}.sources-sheet svg.item-art{width:100%;height:100%;background:none!important;min-height:0}.sources-sheet button{font-family:inherit;cursor:pointer;box-shadow:none}.sources-hero .sources-close{position:absolute;right:12px;top:11px;z-index:2;display:grid;place-items:center;border:1px solid #fbf3d740;border-radius:50%;background:#f6f0d51f;color:#fff5da;width:32px;height:32px;min-height:32px;padding:0;font-size:25px;font-weight:400;line-height:1}.sources-body{overflow-y:auto;min-height:0;scrollbar-width:none;padding:17px 19px 0;overscroll-behavior:contain}.sources-body::-webkit-scrollbar{display:none}.sources-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sources-intro p{font-size:12px;color:#607360;margin:0;line-height:1.5}.sources-intro>span{flex-shrink:0;border-radius:16px;background:#e7ecd7;padding:7px 12px;text-align:center;font-size:17px;font-weight:750;color:#3c6b51}.sources-intro small{display:block;font-size:9px;font-weight:500;letter-spacing:.3px}.sources-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sources-grid .source-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid #e7dcc3;border-radius:22px;background:linear-gradient(140deg,#fffdf4,#f2e7ce);color:#2d5748;padding:10px 8px;min-width:0;text-align:center;min-height:0;transition:border-color .15s,background .15s}.source-card .source-chapter{align-self:flex-start;font-size:9px;letter-spacing:.4px;background:#e5e8ce;color:#627454;border-radius:10px;padding:3px 8px}.source-card .source-art{display:block;height:67px;width:76px}.source-card strong{font-size:14px;line-height:1.2;min-height:17px}.source-card small{font-size:10px;color:#718069}.source-card .source-card-action{display:block;width:100%;border-radius:12px;padding:6px 8px;margin-top:5px;font-size:11px;font-weight:650;background:#285f51;color:#fff4d9}.sources-grid .source-card.locked{opacity:1;cursor:default;background:linear-gradient(140deg,#f7f2e5,#ece5d3);color:#61705d}.source-card.locked .source-art{filter:saturate(.65);opacity:.85}.source-card.locked .source-card-action{background:#e0dfcd;color:#858574}.sources-grid .source-card.active{border:2px solid #5c9474;padding:9px 7px;background:#e7eed8}.source-card.active .source-card-action{background:#cddfbd;color:#386447}.source-card.available:hover{border-color:#6f9d7a}.source-card:focus-visible,.sources-sheet button:focus-visible{outline:3px solid #d4aa4f;outline-offset:2px}.sources-note{font-size:10px;color:#8a8c73;text-align:center;margin:13px 0}.sources-footer{flex-shrink:0;padding:0 19px 17px;background:#fff7e9}.sources-done{width:100%;border:0;border-radius:17px;background:linear-gradient(110deg,#337465,#225448);color:#fff6df;min-height:44px;padding:12px;font-size:14px;font-weight:650}@media(max-width:350px){.sources-hero{min-height:132px;padding:18px}.sources-hero h2{font-size:25px}.sources-hero-art{width:96px;height:112px;right:4px}.sources-hero p{font-size:10px}.sources-body{padding:12px 12px 0}.sources-intro p{font-size:10px}.sources-grid{gap:8px}.source-card .source-art{height:55px;width:65px}.source-card strong{font-size:13px}.sources-footer{padding:0 12px 12px}}@media(prefers-reduced-motion:reduce){.sources-grid .source-card{transition:none}}
