/* Birlikte oyna, kalpler, görev çubuğu: hub ve Küp Şehir sayfalarında ortak. */
a.round { text-decoration: none; color: inherit; }

/* ---------- Resimli oda kodu ---------- */
.code-row { display: flex; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.code-row span { width: 72px; height: 84px; border-radius: 20px; background: #fff; display: grid; place-items: center; font-size: 3rem; box-shadow: inset 0 0 0 4px #ffd36b, 0 4px 0 rgba(0, 0, 0, .15); }
.code-row.entry .slot.cur { box-shadow: inset 0 0 0 4px #2b6fff, 0 4px 0 rgba(0, 0, 0, .15); animation: pulse2 .6s infinite alternate; }
.animal-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 480px; margin: 0 auto 12px; }
.animal-pad button { height: 64px; border-radius: 16px; background: #eadfca; font-size: 2.2rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.animal-pad button:active { transform: translateY(3px); box-shadow: none; }
.animal-pad .del { background: #ffc9bd; font-size: 1.6rem; }
.coop { text-align: center; }
.coop h2 { text-align: center; margin-right: 0; }
.coop-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.coop-btn { display: grid; gap: 6px; place-items: center; padding: 22px 8px; border-radius: 26px; background: #fff; font-size: 1.5rem; font-weight: 900; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.coop-btn span { font-size: 4rem; }
.coop-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.coop-note { background: #fff0b8; border-radius: 14px; padding: 8px 12px; font-weight: 700; }
.coop-lock p, .coop-wait p { font-size: 1.3rem; font-weight: 800; }
.partner { display: flex; gap: 12px; align-items: center; justify-content: center; background: #fff; border-radius: 22px; padding: 12px; margin-bottom: 8px; opacity: .8; }
.partner.on { opacity: 1; box-shadow: inset 0 0 0 4px #7ee08f; }
.partner .face { font-size: 2.6rem; }
.partner b { font-size: 1.3rem; }
.partner em { font-style: normal; font-size: .9rem; opacity: .7; }
.coop-row { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.coop-row .small-btn, .coop-wait .small-btn, .coop .small-btn { padding: 0 18px; font-size: 1.1rem; font-weight: 800; }
.bounce { animation: bob 1.4s ease-in-out infinite; }

/* ---------- Onay çubuğu, tepkiler, bildirim ---------- */
#coop-banner { position: fixed; top: max(70px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .2), inset 0 0 0 4px #ffd36b; animation: pop .3s; max-width: 94vw; }
#coop-banner .face { font-size: 2rem; }
#coop-banner b { font-size: 1.15rem; }
#coop-banner button { width: 56px; height: 56px; border-radius: 50%; font-size: 1.7rem; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
#coop-banner .ok { background: var(--green, #4cc16a); }
#coop-banner .no { background: var(--red, #e0524b); }
#emote-bar { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 12; display: grid; gap: 8px; }
#emote-bar button { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 250, 240, .95); font-size: 1.7rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
#emote-bar button:active { transform: translateY(3px); box-shadow: none; }
.coop-toast { position: fixed; left: 50%; bottom: 20%; transform: translateX(-50%); z-index: 45; background: rgba(60, 40, 30, .88); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 1.2rem; animation: pop .3s; pointer-events: none; }
.emote-float { position: fixed; z-index: 14; font-size: 2.6rem; pointer-events: none; animation: floatUp 1.8s ease-out forwards; transform: translate(-50%, -50%); }
@keyframes floatUp { to { transform: translate(-50%, -140px) scale(1.3); opacity: 0; } }

/* ---------- Kalpler, görev, tekne ---------- */
#hearts { font-size: 1.3rem; letter-spacing: 2px; }
#hearts .gone { filter: grayscale(1); opacity: .35; }
#hearts.hit { animation: shake .4s; }
#hearts.regen { box-shadow: 0 0 0 4px #ffb0c4, 0 3px 0 rgba(0, 0, 0, .15); }
#questbar { position: absolute; left: 50%; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 168px); transform: translateX(-50%); width: max-content; z-index: 10; display: flex; align-items: center; gap: 10px; background: rgba(255, 250, 240, .96); border-radius: 999px; padding: 6px 8px 6px 16px; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); font-weight: 800; max-width: 92vw; }
#questbar #quest-icon { font-size: 1.8rem; }
#questbar #quest-text { font-size: 1.05rem; }
#quest-progress { font-weight: 900; font-size: 1.3rem; color: #2b6fff; }
#btn-boat { position: absolute; right: 16px; bottom: 100px; z-index: 9; width: 68px; height: 68px; font-size: 2.2rem; animation: pulse2 .8s infinite alternate; }
#wave-warn { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 11; font-size: 6rem; pointer-events: none; animation: pulse2 .3s infinite alternate; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.quest-list { display: grid; gap: 10px; margin: 10px 0; }
.quest-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 22px; padding: 10px 12px; text-align: left; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); width: 100%; }
.quest-card .qi { font-size: 2.6rem; text-align: center; }
.quest-card b { font-size: 1.2rem; display: block; }
.quest-card small { opacity: .75; font-size: .95rem; }
.quest-card .go { background: var(--green, #4cc16a); color: #fff; font-weight: 900; border-radius: 16px; padding: 12px 16px; font-size: 1.1rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.quest-card.done { opacity: .6; }
.quest-card.locked { opacity: .5; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 10px 0; }
.gift-slot { background: #fff; border-radius: 20px; padding: 12px 6px; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); font-weight: 800; }
.gift-slot .gi { font-size: 3rem; display: block; }
.gift-slot button { margin-top: 6px; padding: 8px 12px; border-radius: 14px; background: var(--green, #4cc16a); color: #fff; font-weight: 900; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.gift-open { text-align: center; }
.gift-open .box { background: transparent; line-height: 1.1; font-size: 7rem; display: inline-block; animation: giftShake .5s infinite alternate; }
.gift-open .box.opened { animation: pop .4s; }
@keyframes giftShake { from { transform: rotate(-8deg); } to { transform: rotate(8deg) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .bounce, #btn-boat, #wave-warn, .code-row.entry .slot.cur, .gift-open .box { animation: none !important; }
}
@media (max-width: 560px) {
  .code-row span { width: 58px; height: 70px; font-size: 2.4rem; }
  .coop-btn span { font-size: 3rem; }
  .quest-card { grid-template-columns: 48px 1fr auto; }
}

.tabs { display: flex; gap: 8px; margin: 4px 0 10px; }
.tabs button { flex: 1; padding: 10px; border-radius: 16px; background: #eadfca; font-weight: 800; font-size: 1.1rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.tabs button.on { background: #ffd36b; }
#btn-gifts { position: relative; }
#gift-badge { position: absolute; right: -4px; top: -4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--red, #e0524b); color: #fff; font-size: .85rem; font-weight: 900; display: grid; place-items: center; }
.coop-row .small-btn[disabled] { opacity: .45; }

.parent .danger { margin: 8px 8px 0 0; }
#crash a { color: inherit; font-weight: 800; }

/* Açılış ve hata ekranları */
#boot, #crash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(180deg, #8fd0f5, #fff4d8); text-align: center; transition: opacity .5s; }
#boot.gone { opacity: 0; pointer-events: none; }
.boot-logo { font-size: 5rem; animation: bob 1.4s ease-in-out infinite; }
#boot h1 { margin: 0; font-size: 2.6rem; } #boot h1 span { color: #e0524b; }
.boot-bar { width: 200px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 6px; background: #ffbf3f; animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.crash-card { background: var(--paper); border-radius: 30px; padding: 28px; max-width: 420px; box-shadow: 0 10px 0 rgba(0, 0, 0, .15); }
.crash-card h2 { margin: 6px 0; }

