.app-header{
  height:56px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border-bottom:1px solid var(--line);
  background:rgba(17,24,39,.85);
  backdrop-filter: blur(10px);
}

.app-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
}

.app-icon{
  font-size:22px;
}

#app-view{
  height:calc(100vh - 112px); /* header + bottom nav */
  overflow:auto;
  padding:16px;
}

.bottom-nav{
  height:56px;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  justify-content:space-around;
  align-items:center;
  border-top:1px solid var(--line);
  background:rgba(17,24,39,.85);
  backdrop-filter: blur(10px);
}

.nav-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
  color:var(--muted);
}

.nav-btn.active{
  color:var(--primary);
}

.game-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(140px,1fr));
  gap:16px;
}

.game-card{
  background:var(--card);
  border-radius:20px;
  padding:14px;
  border:1px solid var(--line);
  cursor:pointer;
  transition:.2s;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.game-card:hover{
  transform:translateY(-4px);
  filter:brightness(1.05);
}

.game-card img{
  width:72px;
  height:72px;
  object-fit:contain;
  border-radius:16px;
  margin-bottom:10px;
  background:#0f172a;
  padding:8px;
}

.game-card-name{
  font-weight:600;
}

.game-card-desc{
  font-size:12px;
  color:var(--muted);
}

/* ===== VIEW TRANSITIONS ===== */
#app-view{
  animation: viewFadeIn .25s ease;
}

.view-enter{
  animation: viewSlideIn .25s ease;
}

@keyframes viewFadeIn{
  from{
    opacity:0;
  }
  to{
    opacity:1;
  }
}

@keyframes viewSlideIn{
  from{
    transform:translateY(12px);
    opacity:0;
  }
  to{
    transform:none;
    opacity:1;
  }
}

/* ===== GAME CARD INTERACTION ===== */
.game-card{
  transition: transform .15s ease, box-shadow .15s ease;
}

.game-card:active{
  transform:scale(.96);
}

/* ===== BOTTOM NAV FEEDBACK ===== */
.nav-btn{
  transition: color .2s ease, transform .2s ease;
}

.nav-btn:active{
  transform:scale(.9);
}

.card{
  animation: cardPop .25s ease;
}

@keyframes cardPop{
  from{
    transform:scale(.98);
    opacity:0;
  }
  to{
    transform:none;
    opacity:1;
  }
}

.history-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.history-actions{
  display:flex;
  gap:8px;
}

.history-actions button{
  padding:6px 10px;
  border-radius:8px;
  background:var(--primary);
  color:white;
  font-weight:600;
}

#profile-name{
  flex:1;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.update-version {
  font-weight: 600;
  font-size: 0.95rem;
}

.update-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.update-card ul {
  margin: 0;
  padding-left: 18px;
}

.update-card li {
  margin: 6px 0;
  font-size: 0.9rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-version {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}

.install-banner {
  position: fixed;
  bottom: 70px; /* boven bottom-nav */
  left: 12px;
  right: 12px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--card-shadow);
  z-index: 1000;
}

.install-banner span {
  font-size: 0.8rem;
  color: var(--muted);
}

.install-banner button {
  margin-left: 6px;
}

.history-card {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.history-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.history-winner {
  text-align: right;
  font-weight: bold;
  color: var(--accent);
}

.history-winner small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.winner-card {
  border: 2px solid var(--accent);
}
