/* Kraken Snooker live pages — matches the main site's deep-water green &
   brass theme (assets/css/style.css). */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --gold: #c9a24b;
  --bone: #eef1ea;
  --abyss: #071b14;
  --storm: #0d2a1f;
  --card: rgba(13, 42, 31, 0.92);
  --sea: #0f4a35;
  --blood: #b3362e;
  --live: #3ecf6a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--abyss);
  background-image: radial-gradient(ellipse at top, rgba(15, 74, 53, 0.5) 0%, transparent 60%);
  min-height: 100vh;
  color: var(--bone);
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; }

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

/* Top navigation */
nav {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px 6px;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Poppins', 'Inter', sans-serif;
}
nav .brand img { width: 30px; height: 30px; }
nav a { color: var(--bone); text-decoration: none; font-size: 15px; font-weight: 600; opacity: 0.85; }
nav a:hover { opacity: 1; color: var(--gold); }

h1 { font-size: 26px; margin: 18px 0 4px; }
h2 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 26px 0 10px; }
.sub { color: rgba(230, 222, 202, 0.65); font-size: 14px; margin: 0 0 14px; }

.card {
  background: linear-gradient(180deg, var(--storm), rgba(8, 13, 15, 0.92));
  border: 1px solid rgba(204, 163, 77, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: rgba(204, 163, 77, 0.5); }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}
.pill.live { background: rgba(62, 207, 106, 0.15); color: var(--live); }
.pill.finished { background: rgba(230, 222, 202, 0.12); color: var(--bone); }
.pill.bye { background: rgba(230, 222, 202, 0.10); color: rgba(230, 222, 202, 0.6); }

.muted { color: rgba(230, 222, 202, 0.55); font-size: 13px; }
.gold { color: var(--gold); }
.error { color: #e2766e; }

/* Match scoreboard */
.scoreboard { display: flex; flex-wrap: wrap; gap: 10px; }
.scoreboard .side {
  flex: 1 1 220px;
  background: linear-gradient(180deg, var(--storm), rgba(8, 13, 15, 0.95));
  border: 2px solid rgba(204, 163, 77, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
}
.scoreboard .side.active { border-color: var(--gold); box-shadow: 0 0 18px rgba(204, 163, 77, 0.3); }
.side .name { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .score { font-size: 52px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.side .detail { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }

.centreinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.centreinfo .break { color: var(--gold); font-size: 20px; font-weight: 800; }
.dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,0.4); vertical-align: -2px; margin-right: 6px; }

/* Tables (standings, history) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: rgba(230, 222, 202, 0.55); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; }
td { padding: 8px; border-top: 1px solid rgba(230, 222, 202, 0.08); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Fixture rows */
.fixture { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid rgba(230, 222, 202, 0.08); }
.fixture:first-of-type { border-top: none; }
.fixture .tie { flex: 1; }
.fixture .result { font-weight: 700; color: var(--gold); font-size: 14px; }
.fixture .pending { color: rgba(230, 222, 202, 0.5); font-size: 13px; }

/* Stats chips */
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.stat { background: var(--card); border: 1px solid rgba(204, 163, 77, 0.18); border-radius: 12px; padding: 10px 16px; min-width: 110px; }
.stat .value { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stat .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(230, 222, 202, 0.6); }

/* Code entry forms */
form.codeform { display: flex; gap: 8px; margin-top: 8px; }
form.codeform input {
  flex: 1;
  background: rgba(8, 13, 15, 0.8);
  border: 1px solid rgba(230, 222, 202, 0.25);
  border-radius: 10px;
  color: var(--bone);
  font-size: 16px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  text-transform: uppercase;
  padding: 10px 14px;
  outline: none;
}
form.codeform input:focus { border-color: var(--gold); }
form.codeform button {
  background: var(--gold);
  color: #14100a;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 20px;
  cursor: pointer;
}
form.codeform button:hover { filter: brightness(1.1); }

/* Shot history */
ul.history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
ul.history li { padding: 6px 4px; border-top: 1px solid rgba(230, 222, 202, 0.08); }
ul.history li:first-child { border-top: none; }

.champion {
  border-color: var(--gold);
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
