/* Oyun Merkezi (hub) görünümü */
body.hub { overflow: auto; background: linear-gradient(180deg, #8fd0f5 0%, #c9ecff 55%, #fff4d8 100%); min-height: 100%; user-select: none; }
html:has(body.hub) { overflow: auto; height: auto; }
#hub { max-width: 980px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 90px; display: grid; gap: 16px; }

/* Üst çubuk */
.hub-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 250, 240, .95); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); text-align: left; }
.profile .face { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: var(--tint, #ffd9a0); }
.profile .who { display: grid; }
.profile b { font-size: 1.25rem; } .profile small { opacity: .7; font-weight: 700; }
.top-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Büyük "Oyna" kartı */
.hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: 34px; background: linear-gradient(135deg, #ffe08a, #ffb347); box-shadow: 0 9px 0 rgba(0, 0, 0, .18); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .25); pointer-events: none; }
.hero-art { font-size: 5.5rem; line-height: 1; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .15)); animation: bob 2.6s ease-in-out infinite; }
.hero-text small { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.hero-text h2 { margin: 2px 0; font-size: 2.2rem; }
.hero-text p { margin: 0; font-weight: 700; opacity: .85; }
.play-big { z-index: 1; display: flex; align-items: center; gap: 12px; padding: 16px 30px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-size: 1.9rem; font-weight: 900; box-shadow: 0 7px 0 rgba(0, 0, 0, .25); text-shadow: 0 2px 0 rgba(0, 0, 0, .22); animation: pulse2 1s infinite alternate; }
.play-big:active { transform: translateY(4px); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }

/* Kartlar */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: none; margin: 0; }
.card { position: relative; display: grid; gap: 4px; justify-items: center; align-content: center; text-align: center; padding: 20px 10px; min-height: 170px; border-radius: 28px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 7px 0 rgba(0, 0, 0, .16); transition: transform .12s; }
.card:hover { transform: translateY(-3px); }
.card:active { transform: translateY(4px); box-shadow: 0 3px 0 rgba(0, 0, 0, .16); }
.card .card-art { font-size: 3.6rem; line-height: 1; }
.card b { font-size: 1.3rem; }
.card small { opacity: .75; font-weight: 700; font-size: .95rem; min-height: 1.2em; }
.card.city { background: linear-gradient(160deg, #ffffff, #d9f1ff); }
.card.classic { background: linear-gradient(160deg, #ffffff, #efe4cf); }
.card.coop { background: linear-gradient(160deg, #ffffff, #dff7e2); }
.card.gift { background: linear-gradient(160deg, #ffffff, #ffe3e0); }
.card.album { background: linear-gradient(160deg, #ffffff, #fff1c4); }
.card.parent { background: linear-gradient(160deg, #ffffff, #e9e4f4); }
.card.ready { animation: pulse2 .9s infinite alternate; box-shadow: 0 7px 0 rgba(0, 0, 0, .16), 0 0 0 5px #ffd36b; }
.card.off { opacity: .8; }
.dot { position: absolute; top: 14px; right: 16px; width: 16px; height: 16px; border-radius: 50%; background: #b9b2a6; box-shadow: 0 0 0 4px rgba(255, 255, 255, .8); }
.dot.on { background: #4cc16a; }
.dot.wait { background: #ffbf3f; }

.hub-foot { display: flex; justify-content: space-between; gap: 10px; opacity: .6; font-size: .85rem; font-weight: 700; }
#mascot.hub-mascot { position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); top: auto; z-index: 20; }
.hub-mascot #bubble::before { top: 14px; }

.avatar-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 6px; }
.avatar-picker button { display: grid; place-items: center; gap: 4px; padding: 14px 4px; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); font-weight: 800; }
.avatar-picker button.on { box-shadow: inset 0 0 0 5px #2b6fff, 0 4px 0 rgba(0, 0, 0, .15); }
.avatar-picker .face { font-size: 3rem; }

@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: auto 1fr; }
  .play-big { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-art { font-size: 3.6rem; } .hero-text h2 { font-size: 1.7rem; }
  .card { min-height: 140px; } .card .card-art { font-size: 2.8rem; }
  .hub-mascot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .play-big, .card.ready, .boot-logo, .boot-bar i { animation: none !important; }
  #boot { transition: none; }
}

.hub #screen { position: fixed; }
