/* arena-home2.css · 8.11.2026 (דניאל: "קישור אחד", והאוסף לא מתחבא בכפתור קטן)
   המסך הראשון: שתי דלתות שוות - האוסף שלי וזירת הגיבורים. טלפון: אחת מעל השנייה. מסך רחב: זו לצד זו.
   + חלון הכניסה הראשונה (welc) + חלון ההתקנה (inst). נטען אחרי arena-hub.css */

.hdoors { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 1.6vh; gap: 1.6dvh; align-content: center; width: 100%; }
.hdoor { all: unset; box-sizing: border-box; cursor: pointer; position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.hdoor__art { position: relative; flex: 0 1 auto; min-height: 0; height: min(21vh, calc((100vw - 32px) * .54), 280px); height: min(21dvh, calc((100vw - 32px) * .54), 280px); aspect-ratio: 1200 / 651; max-width: 100%; transition: transform var(--t-state, 220ms) var(--ease); }
.hdoor__art img { position: absolute; inset: 4.5% 3%; width: 94%; height: 91%; object-fit: cover; border-radius: 6% / 11%; }
.hdoor__art .htile__frame { aspect-ratio: auto !important; inset: 0 !important; width: 100%; height: 100%; }
/* הכפתור יושב על התחתית של התמונה, כמו תווית */
.hdoor__go { position: relative; z-index: 2; display: grid; place-items: center; margin-top: -26px; min-width: min(70%, 300px); min-height: 52px; font-size: 1.32rem !important; }
.hdoor__sub { margin-top: 4px; font: 700 .84rem var(--f-text); color: #eef0ff; text-shadow: 0 1px 3px #000; }
.hdoor:hover .hdoor__art { transform: scale(1.02); }
.hdoor:active .hdoor__art { transform: scale(.98); }
.hdoor:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 16px; }
/* כמה כבר אספת: תג בפינה */
.hdoor__count { position: absolute; z-index: 3; top: 6%; inset-inline-start: 4%; display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 10px; border-radius: 999px; background: #fff6d8; color: #0a0b22; border: 2.5px solid #0a0b22; box-shadow: 2px 3px 0 #0a0b22; font: 900 1.05rem/1 var(--f-brand); font-style: normal; }
.hdoor__count small { font-size: .7em; opacity: .7; }
/* עד שפותחים את האוסף בפעם הראשונה: נקודה פועמת */
.hdoor--album.is-new .hdoor__art::after { content: ""; position: absolute; z-index: 3; top: 4%; inset-inline-end: 4%; width: 18px; height: 18px; border-radius: 50%; background: #ff3d5a; border: 3px solid #0a0b22; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .hdoor--album.is-new .hdoor__art::after { animation: hdoor-ping 1.6s ease-out infinite; }
  html:not(.reduce-motion) .hdoor { animation: hub-in 360ms var(--ease) both; }
  html:not(.reduce-motion) .hdoor--arena { animation-delay: 60ms; }
}
@keyframes hdoor-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 90, .7); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 61, 90, 0); } }
/* הדלתות נכנסות במקום פאנל הזירה הישן */
.hub--v2 .hub__play { display: none !important; }
.hub--v2 .hub__hi { margin-bottom: .6vh !important; margin-bottom: .6dvh !important; }
/* מסך נמוך: בלי שורת ההסבר מתחת לכפתור */
@media (max-height: 700px) { .hdoor__sub { display: none; } .hdoor__go { min-height: 46px; font-size: 1.15rem !important; } }
/* מסך רחב: זו לצד זו */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hdoors { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 28px; }
  .hdoor__art { height: auto; width: 100%; max-height: 34vh; max-height: 34dvh; }
}

/* ---------- חלון הכניסה הראשונה ---------- */
.adlg--welc .adlg__box { background: transparent !important; color: var(--text); border-style: solid !important; border-color: transparent !important; border-width: 14px !important; border-image: url(../assets/arena/ui2/panel-navy.webp?v=1) 9% 7% fill / 30px 26px stretch !important; border-radius: 0 !important; box-shadow: none !important; }
.welc { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 4px; }
.welc h2 { margin: 6px 0 0; font: 900 1.45rem/1.1 var(--f-brand); color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.welc p { margin: 0; color: var(--text); }
.welc__burst { top: -4px; inset-inline-end: auto; inset-inline-start: 0; width: 70px; }
.welc__two { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.welc__two li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .18); text-align: start; }
.welc__two img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 2px solid #0a0b22; }
.welc__two b { display: block; font: 900 1rem/1.2 var(--f-brand); color: var(--gold-hi); }
.welc__two span { font-size: .86rem; line-height: 1.35; color: #e8eaff; }
.welc__inst { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(160deg, #2bd47a, #13a35a); color: #fff; border: 2.5px solid #0a0b22; box-shadow: 0 4px 0 #0a0b22; text-align: start; transition: transform .16s cubic-bezier(.16, 1, .3, 1); }
.welc__inst .dic { width: 34px; height: 34px; }
.welc__inst b { display: block; font: 900 1.1rem/1.15 var(--f-brand); text-shadow: 1px 1px 0 rgba(0, 0, 0, .35); }
.welc__inst small { font-size: .8rem; opacity: .95; }
.welc__inst:active { transform: translateY(2px); box-shadow: 0 2px 0 #0a0b22; }
.welc__inst:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.welc__go { width: 100%; box-sizing: border-box; min-height: 52px; }

/* ---------- חלון ההתקנה ---------- */
.inst .dic { width: 20px; height: 20px; vertical-align: -4px; }
.inst__arrow { position: fixed; z-index: 90; bottom: 10px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: #0a0b22; border: 2.5px solid #0a0b22; font: 900 .9rem var(--f-brand); box-shadow: 0 4px 0 #0a0b22; }
.inst__arrow::after { content: ""; position: absolute; bottom: -12px; left: 50%; translate: -50% 0; border: 8px solid transparent; border-top-color: #0a0b22; }
@media (prefers-reduced-motion: no-preference) { html:not(.reduce-motion) .inst__arrow { animation: inst-bob 1.2s ease-in-out infinite; } }
@keyframes inst-bob { 50% { transform: translateY(5px); } }
.inst__go { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.inst__go .btn { justify-content: center; }
.inst__note { margin: 10px 0 0; font-size: .86rem; line-height: 1.5; }
.inst__note .dic { width: 18px; height: 18px; vertical-align: -3px; }

/* הלוגו במסך הראשון: "My Superhero Friends" (הפרויקט כולו), לא "זירת הגיבורים" שהיא עכשיו דלת */
.hub__t--friends img { transform: rotate(-4deg); filter: drop-shadow(4px 5px 0 #0a0b22); }
@media (max-width: 899px) { .hub__t--friends.hlogo--img img { max-height: 13vh !important; max-height: 13dvh !important; } }
/* טאבלט לאורך (600-899): הריווח העליון של 21vh דחף את שורת המשחקים מתחת למסך (היה גם לפני). מקטינים */
@media (min-width: 600px) and (max-width: 899px) and (max-aspect-ratio: 1/1) { .hub.hub--v2 { padding-top: 7vh !important; padding-top: 7dvh !important; } }
@media (min-width: 600px) and (max-width: 899px) { .arena[data-screen="hub"] .amain { padding-bottom: 0 !important; } .hub.hub--v2 { height: calc(100vh - 84px) !important; height: calc(100dvh - 84px) !important; } }
/* שכבת הרקע הקבועה לא מאריכה את העמוד (האבק שבה חרג 60px מתחת למסך ויצר גלילה) */
.abg { overflow: hidden; }
.arena[data-screen="hub"] .abg__dust { top: 0 !important; bottom: 0 !important; height: auto !important; }
@media (min-width: 600px) and (max-width: 899px) { body.arena[data-screen="hub"], .arena[data-screen="hub"] { padding-bottom: 0 !important; min-height: 0 !important; } }
.adlg__box:has(.inst__arrow) { padding-bottom: 76px !important; }
.inst__arrow { white-space: nowrap; font-size: .82rem; }
