/* გამოიცანი — the Georgian guessing game (HTML/JS). The stage is 864×434 like the original and scales with the window. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #ffdaae; overflow: hidden; font: 700 16px SandroUniversal, Arial, sans-serif; color: #000066; }
.game { position: absolute; left: 0; top: 0; width: 864px; height: 434px; transform-origin: 0 0; user-select: none; }
.screen { position: absolute; inset: 0; text-align: center; }
.screen[hidden], [hidden] { display: none !important; }

.nav { position: absolute; top: 8px; z-index: 2; display: flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer;
  font: 700 20px SandroUniversal, Arial, sans-serif; color: #009933; padding: 4px; }
.nav img { width: 56px; height: 32px; }
.nav.next { right: 10px; }
.nav.back { left: 10px; }
.nav.back img { transform: scaleX(-1); }
.nav:hover span, .nav:focus-visible span { color: #cc0000; }

.title h1 { margin: 34px 0 0; font-size: 60px; line-height: 1; font-weight: 700; }
.rules { margin: 18px 0 0; font-size: 24px; line-height: 1.25; }
.credits { margin: 12px 0 0; font-size: 17px; line-height: 1.3; }
.title .row { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 40px; }
.title .row img { height: 92px; width: auto; }

.pic { position: absolute; left: 50%; top: 14px; height: 310px; max-width: 600px; transform: translateX(-50%); animation: pop .45s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.play.solved .pic { display: none; }
.praise { position: absolute; left: 0; right: 0; top: 70px; margin: 0; font-size: 60px; line-height: 1.15; }
.praise.big { top: 46px; font-size: 52px; }
.end .credits { position: absolute; left: 0; right: 0; bottom: 30px; }

.tiles { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 14px; background: #fea73d; cursor: text; }
.tile { width: var(--tw, 56px); height: 70px; background: #ff0000; border: 3px solid #000066; display: flex; align-items: center; justify-content: center;
  font-size: 54px; line-height: 1; color: #000066; }
.tile.cur::after { content: ""; width: 60%; height: 4px; background: #000066; align-self: flex-end; margin-bottom: 8px; animation: blink 1s steps(2) infinite; }
.tile.wrong { animation: shake .25s; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* the invisible field keeps the on-screen keyboard open on phones */
.kbd { position: absolute; left: 50%; bottom: 30px; width: 10px; height: 10px; opacity: 0; border: 0; padding: 0; font-size: 16px; }
