/* Games, medals and badges */
.game.wide { max-width: 760px; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pick { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--puti); border: 2px solid var(--guhit); border-radius: 18px; color: var(--tinta); text-align: left; transition: transform .12s ease, border-color .12s ease; }
.pick:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--dagat); }
.pick .ph { display: block; position: relative; aspect-ratio: 4 / 3; background: #D9D5CA; }
.pick .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick b { padding: 10px 12px 12px; font-family: var(--reading); font-size: 17px; font-weight: 700; line-height: 1.25; }
.pick.right { border-color: var(--dagat); box-shadow: 0 0 0 4px var(--hamog); }
.pick.wrong { opacity: .4; }
.clues { margin: 14px 0 0; padding: 16px 18px 16px 42px; background: var(--hamog); border-radius: 18px; }
.clues li { font-family: var(--reading); font-size: 19px; line-height: 1.5; }
.clues li + li { margin-top: 8px; }

.flips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.flip { position: relative; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; background: var(--dagat); border: 2px solid var(--dagat); border-radius: 16px; color: #fff; }
.flip .cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; }
.flip .face { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 6px; background: var(--puti); color: var(--tinta); text-align: center; }
.flip .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip .face b { font-family: var(--reading); font-size: clamp(13px, 2.6vw, 18px); line-height: 1.2; overflow-wrap: anywhere; }
.flip.up { border-color: var(--guhit); animation: flipIn .25s ease; }
.flip.up .cover { display: none; }
.flip.up .face { display: flex; }
.flip.done { border-color: var(--mangga); box-shadow: 0 0 0 3px rgba(245,165,36,.4); }
@keyframes flipIn { from { transform: rotateY(90deg); } to { transform: none; } }

.medal, .badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.disc { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; font-size: 24px; font-weight: 800; color: var(--tinta); background: var(--mangga); box-shadow: 0 0 0 3px var(--mangga), 0 8px 18px rgba(22,35,59,.16); }
.medal.gold .disc { background: #F5B93A; box-shadow: 0 0 0 3px #D99A1B, 0 8px 18px rgba(22,35,59,.16); }
.medal.silver .disc { background: #D5DAE0; box-shadow: 0 0 0 3px #9AA3AF, 0 8px 18px rgba(22,35,59,.16); }
.medal.bronze .disc { background: #DDA677; box-shadow: 0 0 0 3px #B0723F, 0 8px 18px rgba(22,35,59,.16); }
.medal.big { display: flex; width: max-content; margin-top: 18px; }
.medal.big .disc { width: 116px; height: 116px; font-size: 54px; animation: pop .55s cubic-bezier(.2,1.4,.4,1); }
.medal.big b { font-size: 20px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.medals { display: flex; gap: 28px; margin-top: 10px; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 20px 12px; margin-top: 22px; max-width: 760px; }
.badge b { font-size: 15px; line-height: 1.2; }
.badge small { font-size: 12px; color: var(--abo); }
.badge.b0 .disc { background: var(--hamog); box-shadow: 0 0 0 3px #A9D3CB, 0 8px 18px rgba(22,35,59,.16); }
.badge.b1 .disc { background: #9FD6CD; box-shadow: 0 0 0 3px var(--dagat-light), 0 8px 18px rgba(22,35,59,.16); }
.badge.b2 .disc { background: var(--dagat-light); color: #fff; box-shadow: 0 0 0 3px var(--dagat), 0 8px 18px rgba(22,35,59,.16); }
.badge.b3 .disc { background: var(--dagat); color: #fff; box-shadow: 0 0 0 3px var(--tinta), 0 8px 18px rgba(22,35,59,.16); }
.badge.b4 .disc { background: var(--mangga); box-shadow: 0 0 0 3px #D98A0B, 0 8px 18px rgba(22,35,59,.16); }
.badge.b5 .disc { background: var(--gumamela); color: #fff; box-shadow: 0 0 0 3px #8E2713, 0 8px 18px rgba(22,35,59,.16); }
.badge.b6 .disc { background: var(--tinta); color: var(--mangga); box-shadow: 0 0 0 3px var(--mangga), 0 8px 18px rgba(22,35,59,.16); }
.badge.b7 .disc { background: linear-gradient(135deg, #FFE08A, #F5A524 55%, #C97A06); box-shadow: 0 0 0 3px var(--tinta), 0 8px 18px rgba(22,35,59,.16); }
.badge.locked .disc { background: #EDE8DC; color: #AFA898; box-shadow: 0 0 0 3px #DDD6C7; }
.badge.locked b { color: var(--abo); }
.progress { height: 14px; max-width: 520px; margin-top: 14px; overflow: hidden; background: var(--guhit); border-radius: 999px; }
.progress span { display: block; height: 100%; min-width: 6px; background: var(--dagat); border-radius: 999px; }

.cheer { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 22px 14px 16px; background: var(--tinta); color: #fff; border-radius: 24px; box-shadow: 0 18px 40px rgba(22,35,59,.35); animation: rise .45s cubic-bezier(.2,1.2,.4,1); }
.cheer p { margin: 0; font-size: 17px; font-weight: 700; }
.cheer .badge b, .cheer .badge small { display: none; }
@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

@media (max-width: 520px) {
  .flips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pick b { font-size: 15px; padding: 8px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip.up, .medal.big .disc, .cheer, .pick { animation: none; transition: none; }
}
