.recent{margin:0 0 28px;min-width:0}
.recent[hidden]{display:none}
.recent h2{margin:0 0 10px;font-size:14px;font-weight:700;color:#3c4d59}
/* One row of small chips; it scrolls sideways when the games do not fit (never the page). */
.recent ul{display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:0 0 6px;list-style:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
.recent li{flex:0 0 auto;min-height:44px;scroll-snap-align:start}
.recent a{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 14px 4px 4px;border-radius:12px;background:#d9e1e7;font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap}
.recent a:hover{background:#cdd7de}
.recent img{display:block;flex:none;width:48px;height:32px;border-radius:8px;object-fit:cover;image-rendering:pixelated;background:#c4cfd7}
.game-preview{position:relative}
.game-meta{display:flex;flex-direction:column;flex:1;gap:8px;padding:12px 14px 16px;text-align:left}
.game-type{align-self:flex-start;max-width:100%;padding:3px 10px;border-radius:8px;background:#293b49;color:#fff;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.04em;text-transform:uppercase}
.game-desc{flex:1;font-size:15px;line-height:1.45;color:#293b49;overflow-wrap:break-word}
.game-state{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:28px;font-size:13px;font-weight:600;line-height:1.4;color:#1f3340}
.game-state .mark{padding:2px 10px;border:1px solid #1d5c3a;border-radius:999px;background:#fff;color:#1d5c3a;font-weight:700}
html[lang=th] .game-desc,html[lang=th] .game-state{line-height:1.6}
@media(max-width:700px){.game-meta{gap:6px;padding:10px 10px 12px}.game-desc{font-size:13px}.game-type{font-size:11px}.game-state{min-height:52px;font-size:12px}}
@media(min-width:701px) and (max-width:1000px){.game-state{min-height:48px}}
/* Phones: one game per row - cover on the left, name, type, sentence and progress on the right. */
@media(max-width:560px){
  .intro{margin-bottom:20px}
  .recent{margin-bottom:22px}
  .games{grid-template-columns:minmax(0,1fr);gap:10px}
  .game-preview{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start}
  .game-preview img{grid-column:1;grid-row:1/3;align-self:start;width:calc(100% - 10px);margin:10px 0 10px 10px;border-radius:10px}
  .game-name{grid-column:2;grid-row:1;justify-content:flex-start;height:auto;min-height:0;padding:12px 12px 0;text-align:left;font-size:17px;line-height:1.25}
  .game-meta{grid-column:2;grid-row:2;align-self:stretch;gap:6px;padding:6px 12px 12px}
  .game-desc{font-size:14px;line-height:1.4}
  .game-state{min-height:44px;font-size:12px;gap:4px 6px}
  .game-state .mark{padding:1px 8px}
}
@media(max-width:360px){.game-preview img{width:calc(100% - 8px);margin:8px 0 8px 8px}.game-name{font-size:16px;padding:10px 10px 0}.game-meta{padding:6px 10px 10px}.game-desc{font-size:13px}}
