/* Obchod, úspěchy, toasty, prestiž. */

/* ---------- shop ---------- */
#shop { min-height: 0; flex: 0 0 42%; max-width: 560px; background: var(--panel); border-left: 3px solid #0a0b16; display: flex; flex-direction: column; min-width: 0; }
#shop h2 { margin: 0; padding: 12px 14px 4px; font-size: 18px; }
#tabs { display: flex; gap: 6px; padding: 8px 10px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; white-space: nowrap; min-width: 0; background: var(--panel2); color: var(--dim); border: 0; border-radius: 10px; padding: 9px 4px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.tab { position: relative; }
.tab.dot::after { content: ""; position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 6px #ff3b3b; }
.tab.pulse::after { animation: dotPulse .55s ease-in-out 4; }
@keyframes dotPulse { 50% { transform: scale(2.3); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 14px 4px #ff3b3b; } }
.tab .ti { font-size: 18px; line-height: 1.1; }
.tab.active { background: var(--pink); color: #2a0a22; }
#list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.up { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 12px; padding: 10px; border: 2px solid transparent; cursor: pointer; text-align: left; color: var(--text); font: inherit; width: 100%; }
.an { width: 1.3em; height: 1.05em; vertical-align: -.12em; overflow: visible; }
.fnote { font-size: 12px; color: var(--dim); padding: 2px 4px 4px; }
.up .ic { font-size: 30px; width: 58px; text-align: center; flex: none; }
.up .tx { flex: 1; min-width: 0; }
.up .nm { font-weight: 800; font-size: 15px; }
.up .ds { color: var(--dim); font-size: 12px; margin-top: 2px; }
.up .pr { text-align: right; font-weight: 900; color: var(--gold); flex: none; font-size: 14px; }
.up .lv { display: block; color: var(--dim); font-weight: 700; font-size: 11px; }
.up.can { border-color: var(--green); }
.up.can:hover { background: #30376061; filter: brightness(1.2); }
.up.locked { opacity: .45; cursor: not-allowed; }
.up.maxed { opacity: .7; cursor: default; }
.up.maxed .pr { color: var(--green); }
.sec { font-weight: 900; font-size: 15px; margin: 12px 4px 2px; color: var(--pink); }
.stat { display: flex; justify-content: space-between; background: var(--panel2); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.stat b { color: var(--gold); }
.coll { display: grid; grid-template-columns: 1fr 70px 70px; gap: 4px; padding: 4px 10px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.coll b { text-align: right; color: var(--gold); font-weight: 700; }
.coll.hdr { color: var(--dim); font-size: 11px; font-weight: 800; text-align: right; border: 0; }
.coll.hdr span { text-align: right; }
.coll.unk { opacity: .45; }
.ach { display: flex; gap: 10px; align-items: center; background: var(--panel2); border-radius: 12px; padding: 9px 10px; border: 2px solid transparent; }
.ach.got { border-color: rgba(255,212,77,.45); }
.ach .ic { font-size: 26px; width: 54px; text-align: center; flex: none; }
.ach .tx { flex: 1; min-width: 0; }
.ach .nm { font-weight: 800; font-size: 14px; }
.ach .bar { height: 7px; background: rgba(0,0,0,.35); border-radius: 4px; margin: 5px 0 3px; overflow: hidden; }
.ach .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7ad9, #ffd44d); }
.ach .ds { color: var(--dim); font-size: 12px; display: flex; justify-content: space-between; }
.ach .ds b { color: var(--gold); letter-spacing: 1px; }
.ach .ds b i { font-style: normal; color: #6ad8ff; text-shadow: 0 0 6px #6ad8ff, 0 0 12px #b57aff; }
.ach.legend { border-color: rgba(106,216,255,.5); box-shadow: 0 0 12px rgba(106,216,255,.25); }
#toasts { position: absolute; top: 54px; right: 12px; z-index: 30; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.toast { background: rgba(20,22,40,.92); border: 2px solid var(--gold); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 14px;
  box-shadow: 0 0 18px rgba(255,212,77,.35); animation: toastIn .35s ease-out; max-width: 280px; }
.toast.out { opacity: 0; transform: translateX(30px); transition: .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }
.note { color: var(--dim); font-size: 12px; padding: 4px 4px 0; }
#prestige { background: linear-gradient(135deg, #7a2cff, #ff3fa4); border-radius: 14px; padding: 14px; text-align: center; margin-top: 6px; }
#prestige button { margin-top: 8px; font: inherit; font-weight: 900; padding: 10px 16px; border: 0; border-radius: 10px; cursor: pointer; background: var(--gold); color: #3a2a00; }
#prestige button:disabled { background: #555a7a; color: #aab; cursor: not-allowed; }
#wipe { background: none; border: 0; color: #555a7a; font-size: 11px; padding: 6px; cursor: pointer; }

/* blokování hry při reklamě a potvrzovací dialog */
#adBlock, #modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(5,6,16,.72); align-items: center; justify-content: center; }
#adBlock.on, #modal.on { display: flex; }
#adBlock i { width: 46px; height: 46px; border-radius: 50%; border: 5px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: adSpin .8s linear infinite; }
@keyframes adSpin { to { transform: rotate(360deg); } }
.mbox { background: linear-gradient(180deg, #232a55, #141a38); border: 3px solid var(--gold); border-radius: 20px; padding: 24px 24px 20px; max-width: min(380px, 88vw); text-align: center;
  box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 34px rgba(255,212,77,.35), 0 14px 50px rgba(0,0,0,.7); animation: mboxPop .28s cubic-bezier(.2,1.4,.4,1); }
.mbox::before { content: "🦝"; display: block; font-size: 44px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.mbox p { margin: 0 0 18px; white-space: pre-line; font-weight: 800; font-size: 16px; line-height: 1.4; }
@keyframes mboxPop { from { transform: scale(.7) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.mbtn { display: flex; gap: 10px; justify-content: center; }
.mbtn button { font: inherit; font-weight: 900; padding: 11px 24px; transition: transform .1s; border: 0; border-radius: 10px; cursor: pointer; background: var(--panel2); color: var(--text); }
.mbtn #modalYes { background: linear-gradient(135deg, #7a2cff, #ff3fa4); color: #fff; }

.mbtn button:active { transform: scale(.95); }

/* úvodní obrazovka: scéna je vidět rozmazaně za ní, jazyk a zvuk zůstávají nad ní */
#start { position: fixed; inset: 0; z-index: 15; display: none; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 45%, rgba(8,10,28,.55), rgba(5,6,16,.86)); backdrop-filter: blur(3px); }
#start.on { display: flex; }
.sbox { text-align: center; max-width: 520px; animation: mboxPop .5s cubic-bezier(.2,1.4,.4,1); }
.slogo { font-size: clamp(54px, 12vh, 92px); line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); animation: logoBob 2.4s ease-in-out infinite; }
@keyframes logoBob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.sbox h1 { margin: 8px 0 10px; font-size: clamp(30px, 7vw, 54px); font-weight: 900; letter-spacing: 1.5px; color: var(--pink);
  text-shadow: 0 4px 0 #5a1647, 0 0 26px rgba(255,122,217,.5); }
.sbox p { margin: 0 auto 22px; max-width: 420px; font-weight: 700; font-size: clamp(14px, 2.4vw, 17px); line-height: 1.4; color: #dfe3ff; text-shadow: 0 2px 4px #000; }
#startBtn { font: inherit; font-weight: 900; font-size: clamp(24px, 5vw, 34px); letter-spacing: 2px; padding: 14px 54px; border: 0; border-radius: 18px; cursor: pointer;
  color: #3a2a00; background: linear-gradient(180deg, #ffe27a, #ffb52e); box-shadow: 0 6px 0 #9a6a00, 0 0 30px rgba(255,212,77,.55); animation: playPulse 1.3s ease-in-out infinite; }
#startBtn:hover { filter: brightness(1.08); }
#startBtn:active { transform: translateY(4px); box-shadow: 0 2px 0 #9a6a00, 0 0 20px rgba(255,212,77,.5); animation: none; }
@keyframes playPulse { 50% { transform: scale(1.07); } }
#startHint { margin: 22px auto 0 !important; font-size: clamp(12px, 2vw, 14px) !important; color: var(--dim) !important; }

/* nápověda pro nováčka: ruka nad popelnicí a červená pulzující kolečka u toho, co jde koupit */
#tutHint { position: absolute; z-index: 6; pointer-events: none; display: none; transform: translate(-50%, -50%); text-align: center; }
#tutHint.on { display: block; }
#tutHint i { display: block; font-style: normal; font-size: 54px; line-height: 1; animation: tapHand 1s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.7)); }
#tutHint::before { content: ""; position: absolute; left: 50%; top: 6px; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%; border: 4px solid var(--gold); animation: tapRing 1s ease-out infinite; }
#tutHint b { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 14px; background: rgba(20,22,40,.9); border: 2px solid var(--gold); font-size: 15px; white-space: nowrap; box-shadow: 0 0 18px rgba(255,212,77,.4); }
@keyframes tapHand { 0%, 100% { transform: translate(8px, 10px) rotate(-12deg); } 50% { transform: translate(0, 0) rotate(-12deg) scale(.9); } }
@keyframes tapRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.up { position: relative; }
.tab.dot::after { animation: dotBeat 1.3s ease-in-out infinite; }
.tab.pulse::after { animation: dotPulse .55s ease-in-out 4; }
@keyframes dotBeat { 50% { transform: scale(1.5); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 12px 3px #ff3b3b; } }
#shop.early .up.can::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #ff3b3b;
  box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 0 8px #ff3b3b; animation: dotBeat 1.3s ease-in-out infinite; }
.up.hint { animation: rowHint 1.1s ease-in-out infinite; }
#shop.early .up.hint::after { width: 17px; height: 17px; }
@keyframes rowHint { 50% { background: #3b4376; box-shadow: 0 0 0 3px rgba(93,255,160,.5), 0 0 22px rgba(93,255,160,.5); } }

/* vlastní SVG ikony */
.ico { display: block; width: 100%; height: 100%; overflow: visible; }
.up .ic .ico { width: 57px; height: 57px; margin: 0 auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.junk .ico { width: 80px; height: 80px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.coll .ico { display: inline-block; width: 36px; height: 36px; vertical-align: middle; margin-right: 6px; }
.coll { align-items: center; }
.ach .ic .ico { width: 54px; height: 54px; }
