@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182b43;background:#f5f7fb;--blue:#07569b;--line:#e2e8f0;--muted:#52647b}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #ecaf22;outline-offset:5px}[hidden]{display:none!important}header{background:#fff;border-bottom:1px solid var(--line);padding:20px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:48px;height:48px;background:var(--blue);color:white;display:grid;place-items:center;font:bold 34px Georgia;border-radius:15px}.brand small{display:block;font-size:12px;font-weight:700;letter-spacing:1.7px}.brand strong{display:block;font-size:26px;letter-spacing:-.7px;font-weight:800}.archive-link,.back{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:11px 17px;font-size:14px;font-weight:600;background:#fff;color:var(--blue);transition:background .18s,border-color .18s}.archive-link:hover,.back:hover:hover{background:#eaf2fb;border-color:#b7cfe7}main{max-width:1180px;margin:auto;padding:50px 24px 64px;min-height:75vh}.intro{position:relative;margin-bottom:36px;padding-bottom:15px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:2px;color:var(--blue)}h1{font-size:clamp(34px,5vw,58px);line-height:1.1;letter-spacing:-2px;font-weight:800;margin:18px 0}p{line-height:1.65}.intro>p:not(.eyebrow){font-size:18px;color:var(--muted);max-width:520px}.intro #today{position:absolute;right:0;bottom:40px;color:var(--muted);font-size:14px;background:#fff;border:1px solid var(--line);padding:10px 16px;border-radius:30px}.categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.category-card{position:relative;display:flex;flex-direction:column;min-height:325px;border:1px solid var(--line);background:white;padding:28px;border-radius:24px;box-shadow:0 3px 12px #182b4304;transition:transform .2s,box-shadow .2s,border-color .2s}.category-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #182b4310;border-color:var(--card-color)}.card-symbol{display:flex;align-items:center;justify-content:center;width:132px;height:132px;margin-bottom:23px;border-radius:25px;background:#f2f5f9;background:color-mix(in srgb,var(--card-color) 8%,white)}.card-symbol img{display:block;width:112px;height:112px}.category-card h2{font-size:22px;font-weight:750;letter-spacing:-.5px;margin:0 0 10px}.category-card p{font-size:15px;color:var(--muted);margin:0 0 24px}.category-card small{display:inline-flex;align-items:center;align-self:flex-start;margin-top:auto;padding:9px 15px;border-radius:10px;background:#f2f5f9;background:color-mix(in srgb,var(--card-color) 8%,white);color:var(--card-color);font-size:14px;font-weight:650}.category-heading{margin:32px 0}.category-heading h1{font-size:42px}.category-heading p:last-child{color:var(--muted);font-size:17px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:30px}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.list-heading h2{font-size:24px;letter-spacing:-.5px}.list-heading label{font-size:14px;color:var(--muted);font-weight:600}select{display:block;padding:11px 16px;border:1px solid var(--line);background:white;border-radius:12px;color:#182b43;margin-top:6px;min-height:44px}.game-card{background:white;border:1px solid var(--line);border-radius:18px;margin-bottom:15px;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:0 3px 12px #182b4304}.game-card h3{font-size:23px;letter-spacing:-.5px;margin:9px 0 13px}.game-card time{font-size:14px;color:var(--muted)}.game-card p{margin:0}.level{display:inline-block;font-size:13px;font-weight:650;border-radius:30px;padding:6px 13px;background:#e8f0f7;color:var(--blue)}.level.facil{background:#e3f2ed;color:#176647}.level.dificil{background:#f6e9ea;color:#8c2d3a}.level.experto{background:#efe6f7;color:#653389}.play{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:white;padding:12px 24px;border-radius:12px;font-size:15px;font-weight:650;min-height:46px;transition:background .15s,box-shadow .15s}.play:hover{background:#044579;box-shadow:0 5px 14px #07569b25}.empty{background:white;border:1px solid var(--line);border-radius:18px;padding:35px 25px;color:var(--muted)}.calendar{background:white;border:1px solid var(--line);border-radius:20px;padding:22px}.month-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.month-heading h2{font-size:16px;text-transform:capitalize;font-weight:700}.month-heading button{border:1px solid var(--line);background:white;width:38px;height:38px;font-size:24px;border-radius:11px;color:var(--blue)}.month-heading button:hover{background:#eaf2fb}.weekdays,.days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}.weekdays{margin:16px 0 10px;font-size:13px;font-weight:600;color:var(--muted)}.days button{border:0;border-radius:11px;height:36px;background:none;font-size:14px}.days button:disabled{color:#99a6b7}.days button.published{background:#e8f0f7;color:var(--blue);font-weight:750}.days button.published:hover{background:#d1e5f7}.days button.selected{background:var(--blue);color:white}.calendar p{font-size:13px;color:var(--muted);margin-top:18px}.text-button{border:0;background:#eef4fa;padding:11px 15px;border-radius:11px;color:var(--blue);font-size:14px;font-weight:650;width:100%}.text-button:hover{background:#dfebf7}.levels{margin-top:25px;padding:0 8px}.levels h3{font-size:20px;letter-spacing:-.4px}.levels p{font-size:14px;color:var(--muted)}#date-filter{font-size:14px;color:var(--blue);background:#eaf2fb;padding:10px 16px;border-radius:12px}#catalog-status{font-size:14px;color:var(--muted)}#catalog-status:empty{display:none}.player-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.player-toolbar h1{font-size:28px;letter-spacing:-.7px;margin:0}.player-toolbar p{font-size:14px;color:var(--muted);margin:5px 0}#game-frame{border:1px solid var(--line);border-radius:18px;background:white;width:100%;height:calc(100dvh - 220px);min-height:560px;display:block}footer{max-width:1132px;margin:auto;border-top:1px solid var(--line);padding:28px 0;display:flex;justify-content:space-between;gap:18px;color:var(--muted);font-size:14px}@media(max-width:1000px){.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.intro #today{position:static;display:inline-block;margin-top:8px}.workspace{gap:22px;grid-template-columns:minmax(0,1fr) 300px}}@media(max-width:760px){header{padding:16px}.archive-link{font-size:12px;padding:10px}.archive-link img{display:none}.brand small{font-size:10px}.brand strong{font-size:24px}.brand-icon{width:42px;height:42px;border-radius:12px}main{padding:30px 18px 45px}.categories{grid-template-columns:1fr}.category-card{min-height:unset;padding:24px}.card-symbol{width:120px;height:120px;margin-bottom:20px}.workspace{grid-template-columns:1fr;gap:20px}.workspace aside{grid-row:1}.levels{display:none}.category-heading h1{font-size:34px}.game-card{padding:18px}.game-card h3{font-size:20px}.play{padding:11px 18px}footer{margin:0 18px;flex-wrap:wrap}.player-toolbar>div{order:-1;width:100%}#game-frame{height:calc(100dvh - 240px);min-height:480px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Compact category cards on mobile: icon beside the text. */
@media (max-width: 760px) {
  .category-card {
    display: grid;
    grid-template-columns: clamp(76px, 20vw, 104px) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
    padding: 18px;
    border-radius: 20px;
  }
  .category-card .card-symbol {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 18px;
  }
  .category-card .card-symbol img {
    width: calc(100% - 12px);
    height: auto;
  }
  .category-card h2,
  .category-card p,
  .category-card small {
    grid-column: 2;
    min-width: 0;
    margin: 0;
  }
  .category-card h2 {
    font-size: 20px;
    line-height: 1.25;
  }
  .category-card p {
    font-size: 14px;
    line-height: 1.5;
  }
  .category-card small {
    justify-self: start;
    padding: 7px 11px;
  }
}

/* Today's game is the main surface; the calendar opens on request. */
.workspace { position: relative; grid-template-columns: minmax(0, 1fr); }
.list-actions { display: flex; align-items: flex-end; gap: 12px; }
.calendar-toggle, .archive-link { width: 44px; height: 44px; padding: 10px; }
.calendar-toggle { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--line); border-radius: 12px; flex-shrink: 0; }
.calendar-toggle:hover, .calendar-toggle[aria-expanded="true"] { background: #eaf2fb; border-color: #b7cfe7; }
.calendar-panel { position: absolute; right: 0; top: 88px; width: min(320px, 100%); z-index: 10; border-radius: 20px; box-shadow: 0 14px 40px #182b4326; }
@media (max-width: 760px) {
  .archive-link img { display: block; }
  .list-heading { gap: 12px; flex-wrap: wrap; }
  .calendar-panel { top: 88px; }
}

/* A tighter opening, with an editorial serif for the main title. */
header {
  padding-top: 13px;
  padding-bottom: 13px;
}
main:has(#home:not([hidden])) {
  padding-top: 32px;
}
.intro {
  margin-bottom: 23px;
  padding-bottom: 10px;
}
.intro .eyebrow {
  margin-top: 8px;
  margin-bottom: 8px;
}
.intro h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 12px 0;
}
.intro > p:not(.eyebrow) {
  margin-top: 12px;
  margin-bottom: 12px;
}
.intro #today {
  bottom: 26px;
  padding: 7px 12px;
}
@media (max-width: 1000px) {
  .intro #today {
    margin-top: 5px;
  }
}
@media (max-width: 760px) {
  header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  main:has(#home:not([hidden])) {
    padding-top: 20px;
  }
}

.category-heading h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.6px;
}

/* Category headings: 40% less vertical spacing. */
main:has(#category:not([hidden])) { padding-top: 30px; }
.category-heading { margin: 19px 0; }
.category-heading .eyebrow { margin: 7px 0; }
.category-heading h1 { margin: 11px 0; }
.category-heading p:last-child { margin-top: 10px; margin-bottom: 10px; }
.list-heading { margin-bottom: 13px; }
.level-field select { margin-top: 0; }
@media (max-width: 760px) {
  main:has(#category:not([hidden])) { padding-top: 18px; }
}

/* Compact titles: the main title remains 1.618 times the secondary heading. */
:root {
  --type-body: 1rem;
  --type-heading: 1.25rem;
  --type-title: calc(var(--type-heading) * 1.618);
  --type-meta: 0.875rem;
}
#home, #category { font-size: var(--type-body); }
.intro h1, .category-heading h1 {
  font-size: var(--type-title);
  line-height: 1.15;
}
.category-card h2, .list-heading h2, .game-card h3 {
  font-size: var(--type-heading);
  line-height: 1.25;
}
.intro > p:not(.eyebrow), .category-heading p:last-child,
.category-card p, .empty {
  font-size: var(--type-body);
  line-height: 1.618;
}
.intro .eyebrow, .category-heading .eyebrow,
.intro #today, .category-card small, .back,
.level-field select, .level, .play, .game-card time,
#date-filter, #catalog-status, .weekdays, .days button,
.calendar p, .text-button {
  font-size: var(--type-meta);
}
.month-heading h2 { font-size: var(--type-body); }
@media (max-width: 760px) {
  :root { --type-body: 0.875rem; --type-heading: 1.125rem; }
  .category-card h2 { font-size: var(--type-heading); }
  .category-card p { font-size: var(--type-body); }
}

/* Original games identity on the left, newspaper logo on the right. */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}
.header-logo {
  display: block;
  width: clamp(150px, 24vw, 280px);
  max-width: 100%;
  height: auto;
}
.archive-link { flex-shrink: 0; }
@media (max-width: 760px) {
  header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 10px 16px;
  }
  header .brand {
    min-width: 0;
    gap: 8px;
    white-space: nowrap;
  }
  header .brand-icon { flex-shrink: 0; }
  .header-right {
    width: 100%;
    max-width: 200px;
    justify-self: end;
    gap: 0;
  }
  header .header-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 570 / 80;
    object-fit: contain;
  }
}
@media (max-width: 360px) {
  header { padding-inline: 12px; gap: 8px; }
  header .brand strong { font-size: 22px; }
  header .brand-icon { width: 36px; height: 36px; font-size: 28px; }
}

/* Date filter & archive controls */
#date-filter {
  font-size: 14px;
  color: var(--blue);
  background: #eaf2fb;
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.clear-archive-btn {
  background: white;
  border: 1px solid #b7cfe7;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.clear-archive-btn:hover {
  background: #d8e8f8;
  border-color: var(--blue);
}

footer{flex-wrap:wrap}.all-games{flex-basis:100%;font-size:13px;line-height:1.9}.all-games strong{margin-right:4px}.all-games a{color:var(--blue);white-space:nowrap}.all-games a:hover{text-decoration:underline}
