/* Games140 brand shell — evolved from Escape by Risto's warm parchment/brass
   look into the site-wide identity. Georgia serif display, warm ground. */
:root {
  --bg: #ece4d4; --surface: #faf6ec; --ink: #2a2018; --muted: #6b5d4f;
  --accent: #8a5a2b; --brass: #b08d3f; --green: #3e7a3e; --red: #a83232;
  --border: rgba(90, 70, 40, .25); --dark: #2a1a10;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.topbar { background: var(--dark); color: #f0e6d2; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; flex-wrap: wrap; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { color: var(--brass); font-size: 20px; }
.brand h1 { font: 700 22px Georgia, serif; margin: 0; letter-spacing: -.01em; }
.brand h1 b { color: var(--brass); }
.topnav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topnav a, .topnav button { background: none; border: none; color: #d9c9a8; font-size: 13px; cursor: pointer; text-decoration: none; padding: 4px; }
.topnav a:hover { color: #fff; }
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; }
h2 { font-family: Georgia, serif; margin: 18px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(60,40,20,.08); }
.btn { display: inline-block; padding: 8px 18px; border-radius: 8px; border: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: 4px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 14px; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; border: 1px solid var(--border); background: rgba(176,141,63,.12); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.gamecard { position: relative; }
.gamecard .ways { margin-top: 6px; }
.gamecard .done { position: absolute; top: 12px; right: 14px; color: var(--green); font-weight: 800; }
.streak { color: var(--accent); font-weight: 700; }
.feed-day { font: 700 12px Georgia, serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.fcard { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.fcard .who { font-weight: 700; }
.react { background: none; border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px; cursor: pointer; font-size: 13px; }
.modal { position: fixed; inset: 0; background: rgba(30,20,10,.5); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border-radius: 14px; padding: 22px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.rocket-fab { position: fixed; right: 18px; bottom: 18px; background: var(--dark); color: #fff; border: none; border-radius: 99px; width: 52px; height: 52px; font-size: 22px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.3); z-index: 40; }
.hero { text-align: center; padding: 34px 12px 8px; }
.hero h2 { font: 800 clamp(26px, 5vw, 40px)/1.15 Georgia, serif; margin: 0; }
.hero .sub { font-size: 16px; color: var(--muted); margin: 10px 0 0; }
.notice { background: rgba(176,141,63,.14); border: 1px solid var(--brass); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin: 10px 0; }
table.plain { border-collapse: collapse; width: 100%; font-size: 13px; }
table.plain th, table.plain td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.tile { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; border-radius: 6px; border: 2px solid var(--border); background: #fff; text-transform: uppercase; }
.tile.g { background: #4f8a4f; border-color: #4f8a4f; color: #fff; }
.tile.y { background: #c8a13c; border-color: #c8a13c; color: #fff; }
.tile.b { background: #8a8178; border-color: #8a8178; color: #fff; }
.kb button { padding: 10px 6px; min-width: 26px; border-radius: 6px; border: 1px solid var(--border); background: #fff; font-weight: 700; cursor: pointer; }
.kb button.g { background: #4f8a4f; color: #fff; } .kb button.y { background: #c8a13c; color: #fff; } .kb button.b { background: #8a8178; color: #fff; }
@media (max-width: 640px) { main { padding: 12px 10px 70px; } }
