/* „დაიჭირე პაპა!“ — საახალწლო თამაში. ცალკე გვერდი, საიტის სტილებისგან დამოუკიდებელი. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #e9b62f; overflow: hidden; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
/* manipulation — ორმაგი შეხებით გადიდება გამორთულია (ბარათის ღილაკებზეც); მთავარ სცენაზე და ◀ ▶-ზე — none */
button, a { touch-action: manipulation; }
body { font-family: "Noto Sans Georgian", system-ui, sans-serif; color: #2a1810; overscroll-behavior: none; }
button { font: inherit; }

.stage { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 0; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #2a1810; font-family: "Noto Serif Georgian", serif; font-weight: 700; font-size: 16px;
  background: rgba(255, 248, 230, .85); padding: 4px 10px 4px 4px; border-radius: 99px; }
.brand img { border-radius: 50%; }
.timer { margin: 0 auto; min-width: 64px; text-align: center; font-weight: 800; font-size: 28px; line-height: 1;
  background: #7b2630; color: #fff8e6; padding: 8px 14px; border-radius: 14px; box-shadow: 0 3px 0 #4e161d; }
.timer.low { background: #2f6b3a; box-shadow: 0 3px 0 #1d4424; }
.langs { margin-left: auto; display: flex; background: rgba(255, 248, 230, .85); border-radius: 99px; padding: 2px; }
.langs button { border: 0; background: none; padding: 5px 7px; font-size: 13px; border-radius: 99px; color: #2a1810; cursor: pointer; }
.langs button.on { background: #7b2630; color: #fff8e6; }
.timer:not([hidden]) ~ .langs { margin-left: 0; }
.snd { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 248, 230, .85); font-size: 17px; line-height: 1; padding: 0; cursor: pointer; }
/* თამაშისას ზედა ზოლში ადგილი რომ ეყოს (ტაიმერი + ენები + 🔊) — მარანი 7-ის მხოლოდ ლოგო ჩანს */
.playing .brand span { display: none; }
.playing .brand { padding-right: 4px; }

.bar { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 46px); left: 12px; right: 12px; height: 8px;
  background: rgba(42, 24, 16, .2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #7b2630; border-radius: 99px; }

.pads { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 0 10px max(12px, env(safe-area-inset-bottom)); }
.pad { flex: 1; height: 86px; border: 0; border-radius: 22px; font-size: 34px; color: #fff8e6; background: rgba(123, 38, 48, .82);
  box-shadow: 0 4px 0 #4e161d; touch-action: none; cursor: pointer; }
.pad.on { transform: translateY(3px); box-shadow: 0 1px 0 #4e161d; background: #9b3440; }

.card { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(340px, calc(100% - 32px));
  background: #fff8e6; border-radius: 22px; padding: 22px 20px 20px; text-align: center; box-shadow: 0 10px 30px rgba(42, 24, 16, .35); }
.card h1 { margin: 0 0 8px; font-family: "Noto Serif Georgian", serif; font-size: 26px; color: #7b2630; }
.card p { margin: 0 0 18px; font-size: 16px; line-height: 1.45; white-space: pre-line; }
.go { width: 100%; border: 0; border-radius: 14px; padding: 16px; font-size: 19px; font-weight: 700; color: #fff8e6; background: #7b2630;
  box-shadow: 0 4px 0 #4e161d; cursor: pointer; }
.go:active { transform: translateY(3px); box-shadow: 0 1px 0 #4e161d; }

/* ახალი გამოწვევის წარწერა („❄ თოვლის გუნდები!“) */
.notice { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 66px); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); text-align: center; font-weight: 800; font-size: 18px; line-height: 1.3; color: #fff8e6; background: #2f6b9a; padding: 8px 16px; border-radius: 18px;
  box-shadow: 0 3px 0 #1d4566; pointer-events: none; }
.notice.pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* მოგების კოდი და დამატებითი ღილაკები ბარათზე */
.card .small { font-size: 14px; margin: 0 0 10px; }
.card .muted { color: #6b5a4e; }
.card .err { color: #a3262f; font-weight: 700; }
.card .code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px;
  border: 2px dashed #c8962a; border-radius: 12px; padding: 10px 14px; }
.card .code span { font: 800 24px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 2px; color: #7b2630; }
.card .code button { border: 0; background: none; color: #7b2630; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; }
.card a.go { display: block; text-decoration: none; margin-bottom: 10px; }
.card .go + .go { margin-top: 10px; }
.card a.go + .go { margin-top: 0; }
.go.ghost { background: #fff8e6; color: #7b2630; box-shadow: inset 0 0 0 2px #7b2630; }
.go.ghost:active { transform: none; box-shadow: inset 0 0 0 2px #7b2630; }
.card.top { bottom: auto; top: calc(max(10px, env(safe-area-inset-top)) + 70px); }
/* საფრთხის ზონა: დაცემასთან ახლოს ეკრანის კიდეები წითლდება (გამჭვირვალობას papa.js მართავს) */
.danger { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .08s linear;
  box-shadow: inset 0 0 60px 14px rgba(196, 28, 40, .8), inset 0 0 140px 30px rgba(196, 28, 40, .35); }
@media (prefers-reduced-motion: reduce) { .danger { transition: none; } }
/* თოვლი ტოტიდან (თეთრი ეკრანი) და ფეიერვერკის ნათება — გამჭვირვალობას papa.js მართავს */
.blind, .flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.blind { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.98), rgba(240,246,255,.92)); }
.flash { background: #fff6d8; mix-blend-mode: screen; }
/* მართვის არჩევანი ბარათზე და დახრის მინიშნება */
.card .ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; font-size: 14px; color: #6b5a4e; }
.card .ctrl button { border: 1.5px solid #7b2630; background: #fff8e6; color: #7b2630; border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.card .ctrl button.on { background: #7b2630; color: #fff8e6; }
.tilthint { position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(123, 38, 48, .88); color: #fff8e6;
  padding: 10px 16px; border-radius: 16px; font-weight: 700; font-size: 16px; white-space: nowrap; pointer-events: none; }
