body[data-page="comics"] .comics-page { flex: 1; min-height: 0; padding: 1.875rem 3.125rem 1.75rem; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-gutter: auto; }
body[data-page="comics"] .comics-grid { display: grid; grid-template-columns: repeat(3, 21.875rem); gap: 1.25rem 3.125rem; align-items: start; }
body[data-page="comics"] .comic-entry { min-width: 0; margin: 0; }
body[data-page="comics"] .comic-title { margin: 0 0 .625rem; padding: 0 0 .125rem; border-bottom: .125rem solid #c3ccdb; color: #52618a; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
body[data-page="comics"] .comic-preview { display: block; position: relative; overflow: hidden; width: 100%; margin: 0; background: #e6e6e6; }
body[data-page="comics"] .comic-preview img { display: block; width: 100%; height: auto; }
body[data-page="comics"] .comic-preview.has-crop { aspect-ratio: var(--crop-width) / var(--crop-height); }
body[data-page="comics"] .comic-preview.has-crop img { position: absolute; width: calc(894 / var(--crop-width) * 100%); max-width: none; height: auto; left: calc(-1 * var(--crop-x) / var(--crop-width) * 100%); top: calc(-1 * var(--crop-y) / var(--crop-height) * 100%); }
body[data-page="comics"] .comics-grid .empty-result { grid-column: 1 / -1; }



/* The original page bitmap already contains its title and border. */
body[data-page="comics"] .comic-title {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;font-weight:400;}

html body[data-page="comics"] .comics-page {padding:3.75rem 10.5rem 5rem;scrollbar-width:none;}
html body[data-page="comics"] .comics-page::-webkit-scrollbar {display:none;}
html body[data-page="comics"] .comics-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:2.625rem 4.125rem;}
/* Keep the native title and panel, outside the game's decorative frame. */
html body[data-page="comics"] .comic-preview {aspect-ratio:778/700;background:#fff;}
html body[data-page="comics"] .comic-preview img {position:absolute;width:calc(950/778*100%);max-width:none;height:auto;left:calc(-85/778*100%);top:calc(-33/700*100%);}
