/* HipoStack hile katmanı (hack.js): seçim çarkı, çalışan hile, duyurular. Oyunun
   arayüzünün dilinde — mor zemin, beyaz kart, Hacker'ın yeşili (PAD_INFO.hacker). */
.hk-root { --hk: #16c784; --hk-dark: #0b7a50; --ink: #1a1245; position: fixed; inset: 0; pointer-events: none; z-index: 40; font-family: inherit; }
.hk-root img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* seçim çarkı: altta, oyunu örtmeden */
.hk-wheel { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(720px, calc(100vw - 24px)); pointer-events: auto;
  padding: 14px 14px 12px; border-radius: 22px; background: rgba(26, 18, 69, 0.92); box-shadow: 0 0 0 3px var(--hk), 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: hkUp 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.hk-wheel[hidden], .hk-mine[hidden] { display: none; }
.hk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 4px 10px; color: #fff; }
.hk-head b { font: 400 18px/1.1 var(--font-display); letter-spacing: 0.5px; color: var(--hk); }
.hk-head span { font-size: 12.5px; opacity: 0.75; }
.hk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hk-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 10px 10px; border: 0; border-radius: 16px; cursor: pointer;
  background: #fff; color: var(--ink); font: inherit; text-align: center; box-shadow: 0 5px 0 #c9c1ee; transition: transform 0.12s; }
.hk-card:hover, .hk-card:focus-visible { transform: translateY(-3px); outline: 3px solid var(--hk); }
.hk-card kbd { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--hk); color: #fff; font: 400 14px/1 var(--font-display); }
.hk-card i { width: 46px; height: 46px; padding: 6px; border-radius: 12px; background: #f1eeff; }
.hk-card b { font: 400 14px/1.15 var(--font-display); }
.hk-card small { font-size: 11.5px; line-height: 1.3; color: #5b5482; }
.hk-bar { height: 6px; margin: 12px 4px 0; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hk-bar i { display: block; height: 100%; width: 100%; background: var(--hk); transition: width 0.1s linear; }

/* çalışan hilem: üstte ortada, geri sayımla */
.hk-mine { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px;
  border-radius: 16px; background: var(--hk); color: #fff; box-shadow: 0 6px 0 var(--hk-dark), 0 14px 30px rgba(0, 0, 0, 0.35); animation: hkDrop 0.25s ease-out; }
.hk-mine i { width: 38px; height: 38px; padding: 5px; border-radius: 10px; background: #fff; }
.hk-mine span { display: grid; line-height: 1.15; }
.hk-mine small { font-size: 11px; opacity: 0.9; }
.hk-mine b { font: 400 16px/1.1 var(--font-display); }
.hk-mine em { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, 0.22); font: 400 17px/1 var(--font-display); font-style: normal; }

/* duyurular: başkasının açtığı hile */
.hk-toasts { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; width: min(420px, calc(100vw - 24px)); }
.hk-toast { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 14px; background: rgba(26, 18, 69, 0.88); color: #fff;
  box-shadow: inset 4px 0 0 var(--hk), 0 8px 20px rgba(0, 0, 0, 0.3); animation: hkDrop 0.25s ease-out; transition: opacity 0.4s, transform 0.4s; }
.hk-toast.out { opacity: 0; transform: translateY(-6px); }
.hk-toast i { flex: none; width: 34px; height: 34px; padding: 5px; border-radius: 9px; background: #fff; }
.hk-toast span { display: grid; min-width: 0; line-height: 1.2; }
.hk-toast small { font-size: 11px; opacity: 0.8; }
.hk-toast span > b { font: 400 14px/1.15 var(--font-display); color: var(--hk); }
.hk-toast em { font-size: 11.5px; font-style: normal; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes hkUp { from { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes hkDrop { from { opacity: 0; transform: translate(-50%, -10px); } }
.hk-toasts .hk-toast { animation-name: hkFade; }
@keyframes hkFade { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 560px) {
  .hk-cards { gap: 6px; }
  .hk-card { padding: 10px 6px 8px; }
  .hk-card small { display: none; }
  .hk-toasts { top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .hk-wheel, .hk-mine, .hk-toast { animation: none; } }

/* ?olcum=1 göstergesi */
.hk-olcum { position: fixed; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 60; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .72);
  color: #b8f0d8; font: 600 12px/1.4 ui-monospace, Menlo, monospace; pointer-events: none; white-space: nowrap; }
.hk-olcum.bad { color: #ffd1c4; }

