/* Homemove Arcade (arcade.js, arcade-ui.js): the start card's pill, the result card's earnings, and the /games profile
   strip, trophy cabinet and wardrobe. Paper, ink and hard shadows, like the games. */
.hma-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border: 1.5px solid #1d2733; border-radius: 999px; background: #fff; font: 800 .82rem/1 'Plus Jakarta Sans', system-ui, sans-serif; color: #1d2733; white-space: nowrap; }
.hma-chip svg { width: 16px; height: 16px; flex: none; }
.hma-coin { background: #FFF4D1; }
.hma-flame { background: #FFE9DA; }
.hma-x2 { background: #1d2733; color: #fff; }

/* the start card's pill */
.hmg-arcade-pill { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 6px 10px 6px 6px; border: 1.5px solid #1d2733; border-radius: 999px; background: #FBF8F4; text-align: left; }
.hma-pill-me { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; border: 1.5px solid #1d2733; flex: none; }
.hma-pill-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; font-size: .78rem; line-height: 1.2; color: #1d2733; }
.hma-pill-text b { font-weight: 800; }
.hma-pill-text span { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.hma-pill-text svg { width: 14px; height: 14px; }

/* the result card */
.hmg-arcade { margin: 4px 0 0; padding: 10px 0 0; border-top: 1.5px dashed #ECE7E1; text-align: left; }
/* the result card's one line of earnings and its one highlight (James, 11 Oct: "too little font and too much info") */
#hmg-end .hmg-arcade { margin: 0 0 12px; padding: 0; border: 0; text-align: center; }
.hma-earn { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px !important; padding: 8px 16px; border: 1.5px solid #1d2733; border-radius: 999px; background: #FFF4D1; font-weight: 800 !important; font-size: 1.05rem !important; line-height: 1.2 !important; color: #1d2733 !important; }
.hma-earn svg { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.hma-earn .hma-sep { color: #8a7a55; margin: 0 2px; }
.hma-hi { margin: 2px 0 0 !important; font-weight: 800 !important; font-size: 1.05rem !important; line-height: 1.3 !important; color: #1d2733 !important; }
.hma-hi.is-big { color: #E71963 !important; font-size: 1.15rem !important; animation: hma-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.hma-next-link { display: inline-block; margin: 8px 0 0; font-weight: 800; font-size: 1rem; color: #E71963; text-decoration: underline; text-underline-offset: 3px; }
.hma-best, .hma-up { margin: 0 0 6px !important; font-weight: 800; color: #E71963 !important; font-size: .95rem !important; }
.hma-best { animation: hma-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes hma-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.hma-level, .gha-level { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.hma-lv { font-size: .8rem; font-weight: 700; color: #1d2733; white-space: nowrap; }
.hma-lv b { font-weight: 800; }
.hma-bar { position: relative; flex: 1; height: 12px; border: 1.5px solid #1d2733; border-radius: 999px; background: #fff; overflow: hidden; min-width: 60px; }
.hma-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #FF4353, #E71963); border-radius: 999px; transition: width .8s ease; }
.hma-missions, .hma-got { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px !important; font-size: .82rem !important; line-height: 1.3 !important; }
.hma-missions svg, .hma-got svg { width: 18px; height: 18px; flex: none; }
.hma-missions b { font-weight: 800; }
.hma-got span { flex: 1; min-width: 0; }
.hma-got b { color: #B07A00; }
.hma-next { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 6px 12px 6px 6px; border: 1.5px solid #1d2733; border-radius: 16px; box-shadow: 3px 3px 0 #1d2733; background: #fff; color: #1d2733; text-decoration: none; }
.hma-next img { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; border: 1.5px solid #1d2733; flex: none; }
.hma-next span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hma-next small { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #E71963; }
.hma-next b { font-size: .98rem; font-weight: 800; }
.hma-next i { font-style: normal; font-weight: 800; font-size: 1.2rem; }
.hma-next:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1d2733; }

/* /games: the profile strip */
.gha { display: grid; gap: 16px; padding: 18px; background: #fff; border: 1.5px solid #1d2733; border-radius: 22px; box-shadow: 5px 5px 0 #1d2733; color: #1d2733; }
.gha > * { min-width: 0; }
.gha-head { display: flex; align-items: flex-end; gap: 14px; }
.gha-me { position: relative; flex: none; width: 104px; height: 120px; background: #FBF8F4; border: 1.5px solid #1d2733; border-radius: 18px; overflow: hidden; }
.gha-homie { position: absolute; left: 6px; bottom: 4px; height: 108px; width: auto; max-width: 80px; object-fit: contain; }
.gha-cat { position: absolute; right: 2px; bottom: 2px; height: 44px; width: auto; max-width: 48px; object-fit: contain; }
.gha-who { min-width: 0; flex: 1; }
.gha-who .gh-label { display: block; margin: 0 0 4px; }
.gha-level { flex-wrap: wrap; gap: 6px; }
.gha-level .hma-lv { font-size: 1rem; }
.gha-level .hma-bar { flex-basis: 100%; }
.gha-xp { margin: 0; font-size: .82rem; color: #5b6672; }
.gha-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.gha h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.gha h3 small { font-size: .8rem; font-weight: 700; color: #5b6672; }
.gha-missions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gha-missions li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid #ECE7E1; border-radius: 12px; font-size: .9rem; }
.gha-missions li svg { width: 20px; height: 20px; flex: none; }
.gha-missions li span { flex: 1; min-width: 0; }
.gha-missions li small { color: #5b6672; font-weight: 700; }
.gha-missions li b { font-size: .8rem; color: #B07A00; }
.gha-missions li.is-done span { text-decoration: line-through; color: #5b6672; }
.gha-shelf, .gha-cabinet { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gha-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; text-align: center; font-size: .68rem; font-weight: 800; line-height: 1.15; opacity: .35; filter: grayscale(1); }
.gha-badge.is-on { opacity: 1; filter: none; }
.gha-badge img, .gha-badge-icon { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #C98B4B; background: #FBF8F4; display: flex; align-items: center; justify-content: center; }
.gha-badge.is-gold img, .gha-badge.is-cross .gha-badge-icon { border-color: #FFC531; box-shadow: 0 0 0 1.5px #1d2733; }
.gha-badge-icon svg { width: 30px; height: 30px; }
.gha-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gha-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #1d2733; background: #fff; color: #1d2733; font: 800 .9rem/1 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 3px 3px 0 #1d2733; cursor: pointer; }
.gha-btn svg { width: 16px; height: 16px; }
.gha-btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.gha-btn:focus-visible { outline: 3px solid #002339; outline-offset: 3px; }
.gha-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 18px; border: 1.5px solid #1d2733; border-radius: 22px; box-shadow: 6px 6px 0 #1d2733; color: #1d2733; }
.gha-dialog::backdrop { background: rgba(29, 39, 51, .45); }
.gha-dialog h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 1.3rem; font-weight: 800; }
.gha-shop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gha-shop li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1.5px solid #ECE7E1; border-radius: 16px; text-align: center; font-size: .85rem; }
.gha-shop li.is-on { border-color: #1d2733; background: #FBF8F4; }
.gha-shop img { height: 96px; width: auto; max-width: 100%; object-fit: contain; }
.gha-wearing { min-height: 40px; display: inline-flex; align-items: center; font-weight: 800; color: #2BB673; }
.gha-x2 { align-self: flex-start; margin: 0 0 6px; }
@media (min-width: 560px) { .gha-shop { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
    .gha { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; }
    .gha-actions { grid-column: 1 / -1; }
}

/* "Sign up or sign in to save your score": on the result card and the /games arcade, never in the way */
.hma-save { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 16px; background: #FFF8E6; text-align: left; }
.hma-save-text { margin: 0 !important; font-size: 1rem !important; line-height: 1.3 !important; }
.hma-save-text b { font-weight: 800; }
.hma-save-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hma-save-in { font-weight: 800; font-size: .95rem; color: #1d2733; }
.hma-save-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #1d2733; background: #E8174B; color: #fff; font: 800 .9rem/1 'Plus Jakarta Sans', system-ui, sans-serif; text-decoration: none; box-shadow: 3px 3px 0 #1d2733; }
.hma-save-btn.is-ghost { background: #fff; color: #1d2733; }
.hma-save-later { min-height: 40px; padding: 0 8px; border: 0; background: none; color: #45505c; font: 700 .85rem/1 'Plus Jakarta Sans', system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.hma-save-btn:focus-visible, .hma-save-later:focus-visible { outline: 3px solid #002339; outline-offset: 3px; }
.hma-save.is-saved { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-color: #2BB673; background: #EFFAF4; font-weight: 800; font-size: .9rem; }
.hma-save.is-saved svg { width: 20px; height: 20px; flex: none; }
/* a level cleared inside a run pays straight away: a short toast at the top of the stage, over the game and its cards */
.hma-toast { position: absolute; left: 50%; top: 12px; z-index: 60; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 8px 10px; border: 2px solid #1d2733; border-radius: 16px; background: #fffaf0; box-shadow: 0 4px 0 #1d2733; transform: translate(-50%, -140%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; }
.hma-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.hma-toast-note { flex-basis: 100%; text-align: center; font: 800 .8rem/1.2 'Plus Jakarta Sans', system-ui, sans-serif; color: #1d2733; }
@media (prefers-reduced-motion: reduce) { .hma-toast { transition: opacity .2s; transform: translate(-50%, 0); } }
