/* Illustrated game gallery, scoped to the home page. */
.home-arcade { margin-top: 28px; padding: 28px; background: #eeeae2; border: 1px solid #e0dbd1; border-radius: 28px; }
.arcade-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.arcade-eyebrow { display: flex; align-items: center; gap: 7px; color: #626956; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.arcade-eyebrow > span { font-size: 20px; color: #b57939; }
.arcade-header h2 { margin: 8px 0 9px; font-size: clamp(24px, 3vw, 36px); color: #28352c; letter-spacing: -.045em; line-height: 1.12; }
.arcade-header h2 em { font-family: Georgia, serif; font-weight: 400; color: #6f785e; }
.arcade-header p { margin: 0; font-size: 13px; color: #667064; line-height: 1.5; }
.arcade-count { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 11px; font-weight: 700; color: #626956; padding-bottom: 4px; }
.arcade-count svg { width: 18px; height: 18px; transform: rotate(45deg); }
.home-arcade .arcade-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.arcade-card { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: #fffdf8; color: #29332c; text-decoration: none; border: 1px solid rgba(61,65,49,.1); box-shadow: 0 3px 0 rgba(65,62,43,.04); transition: transform .22s ease, box-shadow .22s ease; }
.arcade-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(56,64,43,.13); }
.arcade-card:focus-visible { outline: 3px solid #167e78; outline-offset: 4px; }
.arcade-art { position: relative; background-color: var(--game-color); background-image: radial-gradient(rgba(255,255,255,.3) 1px, transparent 1px); background-size: 13px 13px; padding: 35px 0 28px; overflow: hidden; }
.arcade-subject { position: absolute; top: 12px; left: 13px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,253,248,.8); border-radius: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #344036; }
.arcade-number { position: absolute; right: 14px; top: 12px; font-size: 12px; font-weight: 800; color: #29332c; opacity: .6; }
.arcade-scene { display: block; width: 100%; aspect-ratio: 320 / 170; transition: transform .35s ease; }
.arcade-card:hover .arcade-scene { transform: scale(1.06) rotate(-1deg); }
.arcade-topic { position: absolute; bottom: 11px; left: 14px; color: #29332c; font-size: 10px; font-weight: 650; }
.arcade-content { padding: 17px 15px 14px; flex: 1; display: flex; flex-direction: column; }
.arcade-content h3 { font-size: 17px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 7px; }
.arcade-content p { margin: 0 0 18px; color: #697064; font-size: 12px; line-height: 1.5; }
.arcade-footer { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid #ecece3; }
.arcade-footer > span:first-child { color: #727568; font-size: 10px; font-weight: 600; }
.arcade-play { display: inline-flex; align-items: center; gap: 7px; background: #293c31; color: #fffdf8; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 700; }
.arcade-play svg { width: 14px; height: 14px; transition: transform .2s ease; }
.arcade-card:hover .arcade-play svg { transform: translateX(2px); }
@media (max-width: 1100px) { .home-arcade .arcade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
  .home-arcade { padding: 18px 12px; border-radius: 22px; margin-top: 22px; }
  .arcade-header { display: block; padding: 0 3px; margin-bottom: 18px; }
  .arcade-header h2 { font-size: 27px; }
  .arcade-header h2 em { display: block; }
  .arcade-count { margin-top: 13px; font-size: 10px; }
  .home-arcade .arcade-grid { gap: 10px; }
  .arcade-card { border-radius: 13px; }
  .arcade-art { padding: 38px 0 27px; }
  .arcade-subject { left: 9px; top: 10px; font-size: 8px; }
  .arcade-number { right: 9px; font-size: 10px; }
  .arcade-topic { left: 9px; font-size: 8px; }
  .arcade-content { padding: 12px 10px; }
  .arcade-content h3 { font-size: 15px; }
  .arcade-content p { font-size: 11px; margin-bottom: 12px; }
  .arcade-footer { flex-wrap: wrap; }
  .arcade-play { padding: 6px 9px; }
}
@media (max-width: 340px) { .home-arcade .arcade-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .arcade-card, .arcade-scene, .arcade-play svg { transition: none; } .arcade-card:hover, .arcade-card:hover .arcade-scene { transform: none; } }
