/* ============================================================
 * screens.css — per-screen layouts (tablet-first, landscape)
 * ============================================================ */

.h-title.sm { font-size: clamp(24px, 3.6vw, 40px); }

/* ---------- Login ---------- */
.login-card { max-width: 560px; }
.login-card .input.code { text-transform: uppercase; }

/* ---------- Stock ---------- */
.stock-card { max-height: 92vh; display: flex; flex-direction: column; }
.stock-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px; margin: 14px 0 6px; overflow-y: auto; padding: 4px;
  -webkit-overflow-scrolling: touch; max-height: 56vh;
}
.stock-item {
  background: #f5fbff; border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.stock-item img { width: 72px; height: 72px; object-fit: contain; }
.stock-item .nm { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.1;
  height: 28px; overflow: hidden; display: flex; align-items: center; }
.stock-item .qty { font-family: var(--font-display); font-size: 22px; color: var(--green); }
.stock-item .qty.low { color: var(--red); }
.stock-item .qty.out { color: #999; }
.stock-pill { display:inline-flex; gap:6px; align-items:center; font-weight:800; color:var(--navy);
  background: var(--cloud); padding:6px 14px; border-radius:999px; font-size:13px; }

/* ---------- Ticket ---------- */
.ticket-card { max-width: 560px; }

/* ---------- Manual result ---------- */
.manual-card { max-width: 640px; }
.result-choices { display: flex; gap: 22px; justify-content: center; margin-top: 18px; }
.choice {
  flex: 1; max-width: 240px; min-height: 150px; border: 0; border-radius: var(--radius);
  cursor: pointer; color: #fff; font-family: var(--font-display); font-size: 26px; font-weight: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow);
}
.choice .ic { font-size: 46px; }
.choice:active { transform: scale(.96); }
.choice.pos { background: linear-gradient(180deg, var(--green-bright), var(--green)); }
.choice.neg { background: linear-gradient(180deg, #e05a5a, #b53030); }

/* ---------- Form ---------- */
.form-card { max-width: 720px; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Result + TV showcase ---------- */
.result-layout {
  display: flex; flex-direction: column;
  gap: 26px; align-items: center; width: min(1180px, 96vw);
}
.prize-card { width: auto; }
.prize-reveal { margin: 8px 0 14px; }
.prize-reveal img { width: 180px; height: 180px; object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(7,26,70,.28)); animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.prize-name { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 34px); color: var(--navy); margin-top: 6px; }
.prize-palier { font-weight: 800; color: var(--red); margin-top: 2px; }
.tombola-note { margin-top: 10px; font-weight: 700; color: var(--ink); }
.tb-badge { display:inline-block; background: var(--gold); color: var(--navy); font-weight:900;
  padding: 3px 12px; border-radius: 999px; font-size: 13px; margin-right: 6px; letter-spacing: .5px; }

/* TV showcase (the grand prize, nicer than a flat image) */
.tv-showcase { display: flex; flex-direction: column; align-items: center; }
.tv-frame {
  width: min(460px, 90%); aspect-ratio: 16/10; background: #0c0c12; border-radius: 16px;
  padding: 14px; box-shadow: 0 24px 50px rgba(0,0,0,.4), inset 0 0 0 3px #2a2a35;
}
.tv-screen {
  width: 100%; height: 100%; border-radius: 8px; overflow: hidden; position: relative;
  background: radial-gradient(120% 120% at 30% 0%, #1f7ad6, #0a2a6b 70%, #06173f);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5);
}
.tv-label { color: var(--gold); font-family: var(--font-display); font-weight: 900; letter-spacing: 1px;
  font-size: clamp(13px, 1.8vw, 18px); text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.tv-prizes { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; padding: 0 12px;
  color: #fff; font-weight: 800; font-size: clamp(12px, 1.6vw, 16px); }
.tv-prizes span { background: rgba(255,255,255,.12); padding: 3px 10px; border-radius: 999px; }
.tv-stand { width: 120px; height: 14px; background: linear-gradient(180deg,#2a2a35,#15151c);
  border-radius: 0 0 10px 10px; margin-top: -2px; }
.tv-stand::after { content:""; display:block; width:200px; height:10px; background:#0c0c12;
  border-radius:6px; margin: 10px auto 0; }

/* responsive: stack the result on narrower tablets */
@media (max-width: 900px) {
  .tv-showcase { order: -1; }
  .tv-frame { width: min(360px, 80%); }
}
