/* ============================================================
 *  Easy Tap In – Cloud game viewer styles
 * ============================================================ */

:root {
  --accent: #4ade80;
  --accent-dim: rgba(74,222,128,.12);
  --bg: #0a1a0f;
  --panel: #0f2416;
  --text: #e8f5ec;
  --muted: #7da88a;
  --red: #f87171;
  --red-dim: rgba(248,113,113,.12);
  --yellow: #fbbf24;
  --cyan: #67e8f9;
  --border: rgba(125,255,156,.08);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}

.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--panel);
  border-bottom: 1px solid rgba(74,222,128,.15);
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.logo { font-weight: 900; font-size: 1.1rem; letter-spacing: 2px; color: var(--accent); text-decoration: none; }
.nav-link { font-weight: 600; font-size: .85rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--accent); }

.status-badge {
  font-size: .7rem; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  background: var(--red-dim); color: var(--red);
}
.status-badge.online { background: var(--accent-dim); color: var(--accent); }

.container { padding: 72px 16px 24px; max-width: 1200px; margin: 0 auto; }

.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 { font-weight: 900; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

.btn-primary {
  display: inline-block; padding: 14px 32px; border-radius: 10px;
  background: var(--accent); color: var(--bg); font-weight: 700;
  font-size: 1.05rem; transition: background .2s; text-decoration: none;
}
.btn-primary:hover { background: #3ecf72; text-decoration: none; }

.connection-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; margin-bottom: 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .85rem; font-weight: 700;
}
.conn-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--red); }
.conn-dot.online { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.conn-dot.connecting { background: var(--yellow); animation: pulse 1s infinite; }
.conn-text { color: var(--muted); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 45%), 320px));
  justify-content: center; gap: 10px;
}

.tile {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 36px) clamp(12px, 2vw, 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; min-height: 120px; transition: transform .15s;
}
.tile-label {
  color: var(--muted); font-weight: 800; font-size: clamp(12px, 1.4vw, 18px);
  text-transform: uppercase; letter-spacing: .8px;
}
.tile-num { font-weight: 900; font-size: clamp(42px, 10vw, 84px); line-height: 1; color: var(--text); }

.tile-made .tile-num  { color: var(--accent); }
.tile-miss .tile-num  { color: var(--red); }
.tile-streak .tile-num { color: var(--yellow); }
.tile-best .tile-num   { color: var(--cyan); }

.putt-flash {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 10px 28px; border-radius: 10px;
  font-weight: 900; font-size: 1.1rem; letter-spacing: 1px;
  transition: opacity .3s; pointer-events: none; z-index: 200;
}
.putt-flash.made { background: rgba(74,222,128,.15); color: var(--accent); border: 1px solid rgba(74,222,128,.3); }
.putt-flash.missed { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.3); }

.hidden { display: none !important; }

@media (max-width: 575.98px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(110px, 45%), 200px)); gap: 8px; }
  .tile { min-height: 100px; padding: 14px 10px; }
  .tile-num { font-size: clamp(32px, 14vw, 56px); }
  .tile-label { font-size: clamp(10px, 2.5vw, 13px); }
  .container { padding-top: 60px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 280px)); gap: 10px; }
  .tile { min-height: 140px; } .tile-num { font-size: clamp(40px, 8vw, 72px); }
}
@media (min-width: 992px) and (max-width: 1599.98px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 380px)); gap: 12px; }
  .tile { min-height: 170px; } .tile-num { font-size: clamp(52px, 5vw, 88px); } .tile-label { font-size: 15px; }
}
@media (min-width: 1600px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 500px)); gap: 16px; }
  .tile { min-height: 240px; } .tile-num { font-size: clamp(72px, 5vw, 140px); } .tile-label { font-size: 18px; letter-spacing: 1.2px; }
}
