/* Reading pages share the shop palette without changing the game controls. */
.info-page, .info-page * { box-sizing: border-box; }
.info-page :focus-visible, .site-guide :focus-visible { outline: 3px solid #d48429; outline-offset: 4px; }
.info-footer a { color: inherit; text-underline-offset: 4px; }
.game-page { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.game-page .shop { flex: 0 0 auto; }
.game-page.mobile-playing .site-guide { display: none; }
.site-guide, .info-shell { width: min(1060px, 100%); }
.site-guide { color: var(--paper); padding: 12px 10px 20px; }
.site-guide h2 { font: 700 clamp(23px, 4vw, 32px)/1.2 var(--pixel-font); margin: 0 0 10px; }
.site-guide > p { color: #e6cfaa; margin: 0 0 20px; max-width: 65ch; line-height: 1.65; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-card { display: block; background: #2b3d28; color: var(--paper); padding: 20px; border: 2px solid #947144; text-decoration: none; }
.guide-card strong { display: block; color: var(--orange); font-size: 19px; margin-bottom: 8px; }
.guide-card span { display: block; font-size: 14px; line-height: 1.55; }
.guide-card:hover { background: #344d2e; }
.site-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; }
.site-links a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 4px; }
.info-page { display: block; padding: 24px; color: var(--ink); background: #201c14; font-family: var(--body-font); line-height: 1.7; }
.info-shell { margin: 0 auto; }
.info-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--paper); margin-bottom: 22px; }
.info-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font: 700 22px/1.15 var(--pixel-font); }
.info-brand img { color-scheme: only light; display: block; width: 76px; height: 48px; object-fit: contain; padding: 5px; background: #fff; border: 2px solid #947144; }
.info-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.info-header nav a { color: var(--paper); min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; text-underline-offset: 5px; }
.info-header a[aria-current="page"] { color: var(--orange); font-weight: 750; }
.info-main { background: #fff5df; padding: clamp(22px, 4vw, 48px); border: 4px solid #947144; box-shadow: 0 8px 0 #0d180f; }
.info-main h1 { font: 700 clamp(32px, 6vw, 48px)/1.12 var(--pixel-font); margin: 8px 0 16px; }
.info-main h2 { line-height: 1.3; margin: 32px 0 12px; font-size: 24px; }
.info-main h3 { margin: 0 0 8px; line-height: 1.3; font-size: 20px; }
.info-main p, .info-main li { max-width: 76ch; }
.info-main a { color: #254b2c; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.info-main .eyebrow { color: #476333; font: 750 13px/1.4 var(--display-font); letter-spacing: .1em; margin: 0; }
.info-main :focus-visible { outline-color: #233b21; }
.ranking-submit a { color: #254b2c; text-underline-offset: 3px; }
.info-main .lede { font-size: 19px; color: #4c3b23; }
.info-main .callout { background: #e9edda; padding: 16px 20px; border-left: 4px solid #52823c; margin: 24px 0; }
.reading-button { display: inline-flex; align-items: center; min-height: 46px; padding: 9px 18px; background: var(--forest); color: var(--paper) !important; border: 2px solid #172715; text-decoration: none; font-weight: 750; }
.info-main table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; }
.info-main th, .info-main td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid #c5b187; }
.info-main th { background: #e6dfc4; }
.table-scroll { overflow-x: auto; }
.term-jumps { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0; }
.term-jumps a { display: inline-flex; align-items: center; min-height: 44px; }
.term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.term-card { min-width: 0; display: grid; grid-template-columns: 72px 1fr; gap: 12px; border: 1px solid #d0b783; background: #faecd0; padding: 16px; scroll-margin-top: 20px; }
.term-card img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.term-card h3 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.term-card .meaning { margin: 4px 0 0; font-size: 14px; color: #554029; }
.term-card .definition { grid-column: 1 / -1; margin: 0; line-height: 1.6; font-size: 15px; }
.term-card .usage { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #466137; }
.info-footer { color: #e4cfaa; padding: 24px 0 6px; font-size: 14px; }
.info-footer p { margin: 8px 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 15px; background: #fff5df; color: #233b21; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
@media (max-width: 640px) {
  .site-guide { padding: 12px 18px 24px; }
  .guide-cards, .term-grid { grid-template-columns: 1fr; }
  .info-page { padding: 14px; }
  .info-header { gap: 8px; }
  .info-header nav { gap: 0 14px; }
  .info-main { padding: 20px 16px; border-width: 3px; }
  .info-main .lede { font-size: 17px; }
  .info-main h2 { font-size: 22px; }
  .info-main table { font-size: 13px; }
  .info-main th, .info-main td { padding: 9px 7px; }
}
