:root {
  --papel: #FBF8F1; --puti: #FFFFFF; --tinta: #16233B; --abo: #5A6475;
  --dagat: #0B6B63; --dagat-light: #12897E; --hamog: #DCEFEA;
  --mangga: #F5A524; --gumamela: #C23B20; --guhit: #E6DFCF;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --reading: "Andika", "Lexend", system-ui, sans-serif;
  --ui: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--ui); font-size: 16px; line-height: 1.5; }
a { color: var(--dagat); }
a:hover { color: var(--tinta); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--mangga); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: var(--papel); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; z-index: 5; }

.top, main, .foot { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 4px; }
.brand img { display: block; height: 52px; width: auto; }
.points { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--mangga); color: var(--tinta); border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
main { padding-top: 8px; padding-bottom: 40px; min-height: 60vh; }
.foot { padding-top: 16px; padding-bottom: 32px; border-top: 1.5px solid var(--guhit); color: var(--abo); font-size: 13px; }
.foot p { margin: 4px 0; }
.loading, .empty { color: var(--abo); padding: 32px 0; font-family: var(--reading); font-size: 18px; }

h1 { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.01em; margin: 12px 0 0; }
h2 { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 1.25; margin: 28px 0 10px; }
.sub { font-family: var(--reading); font-size: 18px; color: var(--abo); margin: 4px 0 0; }

.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 12px; background: var(--puti); border: 1.5px solid var(--guhit); border-radius: 999px; color: var(--tinta); font-weight: 500; text-decoration: none; }
.back svg { width: 22px; height: 22px; }

.search { display: flex; gap: 10px; margin-top: 16px; }
.search input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border: 1.5px solid var(--abo); border-radius: 18px; background: var(--puti); font-family: var(--reading); font-size: 18px; color: var(--tinta); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: none; border-radius: 18px; background: var(--tinta); color: var(--papel); font-size: 17px; font-weight: 600; text-decoration: none; }
.btn:hover { color: var(--papel); background: #0d172a; }
.btn.teal { background: var(--dagat); color: #fff; }
.btn.soft { background: var(--hamog); color: var(--tinta); }
.btn.line { background: var(--papel); color: var(--tinta); border: 2px solid var(--tinta); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; margin-top: 16px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.island { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 96px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--guhit); text-decoration: none; }
.island b { font-size: 18px; font-weight: 600; line-height: 1.25; }
.island span { font-size: 13px; line-height: 1.35; }
.island.soon { opacity: .62; }
.island .tag { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--tinta); font-size: 11px; font-weight: 600; }

.card { display: flex; flex-direction: column; background: var(--puti); border: 1.5px solid var(--guhit); border-radius: 18px; overflow: hidden; color: var(--tinta); text-decoration: none; }
.card .ph { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; flex-shrink: 0; background: #D9D5CA; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card .tx { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.card b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card small { font-size: 13px; color: var(--abo); line-height: 1.35; }

.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; margin-top: 16px; max-width: 420px; background: var(--puti); border: 1.5px solid var(--guhit); border-radius: 18px; }
.tabs button { min-height: 44px; border: none; border-radius: 13px; background: var(--puti); color: var(--tinta); font-size: 15px; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--tinta); color: var(--papel); }

.row { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--puti); border: 1.5px solid var(--guhit); border-radius: 18px; color: var(--tinta); text-decoration: none; }
.row img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: #D9D5CA; flex-shrink: 0; }
.row .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.row b { font-size: 17px; font-weight: 600; }
.row small { color: var(--abo); font-size: 13px; }
.pill { flex-shrink: 0; padding: 6px 10px; background: var(--mangga); color: var(--tinta); border-radius: 999px; font-size: 13px; font-weight: 600; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }

.article { max-width: 760px; }
.article figure { margin: 14px 0 0; }
.article figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; background: #D9D5CA; display: block; }
.article figcaption { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--abo); }
.article .body p { font-family: var(--reading); font-size: 20px; line-height: 1.65; margin: 14px 0 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.source { margin-top: 20px; padding: 12px 14px; border: 1.5px solid var(--guhit); border-radius: 18px; font-size: 13px; line-height: 1.5; color: var(--abo); background: var(--puti); }

.game { max-width: 620px; }
.game .photo { margin-top: 14px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #D9D5CA; }
.game .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.choices button { min-height: 68px; padding: 8px 12px; border-radius: 18px; border: 2px solid var(--guhit); background: var(--puti); color: var(--tinta); font-family: var(--reading); font-size: 18px; line-height: 1.3; }
.choices button.right { background: var(--dagat); border-color: var(--dagat); color: #fff; }
.choices button.wrong { background: var(--papel); border-color: var(--tinta); }
.note { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--hamog); }
.note.plain { background: var(--puti); border: 1.5px solid var(--guhit); }
.note b { display: block; font-size: 15px; }
.note p { margin: 4px 0 0; font-family: var(--reading); font-size: 17px; line-height: 1.5; }
.meta { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--abo); }
.score { display: inline-block; margin-top: 14px; padding: 10px 18px; background: var(--mangga); border-radius: 999px; font-size: 20px; font-weight: 600; }
.credit { margin-top: 8px; font-size: 12px; color: var(--abo); }
.prose p, .prose li { font-size: 16px; line-height: 1.6; max-width: 720px; }

@media (max-width: 420px) {
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .article .body p { font-size: 19px; }
}
