/* Site B — top navigation, slate/amber editorial look */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700&family=Source+Han+Sans+SC:wght@400;700&family=Ma+Shan+Zheng&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');

:root {
  --ink: #1b2430;
  --paper: #f4f0e6;
  --amber: #c47b1a;
  --slate: #2c3e50;
  --line: #d5c9b1;
  --red: #c0392b;
  --blue: #2471a3;
  --green: #1e8449;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background:
    linear-gradient(180deg, #ebe4d4 0%, var(--paper) 120px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,0,0,.015) 40px, rgba(0,0,0,.015) 41px);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--red); }

.topnav {
  background: var(--slate);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.topnav .logo {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.6rem;
  color: #f5d28a;
}
.topnav nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.topnav nav a {
  color: #ecf0f1;
  font-size: .88rem;
  font-weight: 700;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.topnav nav a:hover { border-bottom-color: #f5d28a; color: #f5d28a; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }

.hero-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin: 12px 0 20px;
}
@media (max-width: 800px) { .hero-strip { grid-template-columns: 1fr; } }

.draw-card, .side-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 16px;
  box-shadow: 4px 4px 0 rgba(44,62,80,.08);
}
.draw-card h2, .side-card h2 {
  margin: 0 0 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  color: var(--slate);
  border-left: 4px solid var(--amber);
  padding-left: 10px;
}

.balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ball {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1rem;
}
.ball i { font-style: normal; font-size: .62rem; }
.ball.red { background: var(--red); }
.ball.blue { background: var(--blue); }
.ball.green { background: var(--green); }
.ball.hit { box-shadow: 0 0 0 3px #f1c40f; }
.ball.flash { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.plus { font-weight: 900; color: var(--amber); padding: 0 4px; }

.expert-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
}
.expert-tile {
  flex: 0 0 110px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 8px;
  text-align: center;
  color: var(--ink);
  border-radius: 2px;
}
.expert-tile img { width: 52px; height: 52px; border-radius: 50%; }
.expert-tile span { display: block; margin-top: 6px; font-size: .82rem; font-weight: 700; }

.pred-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf8;
  border: 1px solid var(--line);
  margin: 14px 0;
}
.pred-table th {
  background: var(--slate);
  color: #f5d28a;
  padding: 10px;
  font-family: 'Noto Serif SC', serif;
  text-align: left;
}
.pred-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.pred-table tr:hover td { background: #faf3e3; }
.pred-table a { font-weight: 700; }

.cross-promo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.promo-flash, .promo-home {
  display: block;
  text-align: center;
  padding: 14px;
  font-weight: 900;
  color: #fff !important;
  background: var(--slate);
  border: 2px dashed #f5d28a;
  animation: dashpulse 1.2s linear infinite;
}
.promo-home { background: var(--amber); border-color: var(--slate); color: #1b2430 !important; }
@keyframes dashpulse {
  50% { border-color: #fff; filter: brightness(1.1); }
}

.panel {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 16px;
  margin: 12px 0;
}
.panel h2 {
  font-family: 'Noto Serif SC', serif;
  margin: 0 0 10px;
  color: var(--slate);
}
.win-list { list-style: none; padding: 0; margin: 0; }
.win-list li { padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: .9rem; }
.win-list .date { color: var(--amber); font-weight: 700; margin-right: 8px; }
.tag-win {
  display: inline-block;
  background: #f8e8c8;
  color: #6b4508;
  border-radius: 2px;
  padding: 2px 6px;
  margin: 2px;
  font-size: .78rem;
}
.tag-win.hit-mark { background: #f1c40f; color: #000; font-weight: 900; }

.footer {
  text-align: center;
  color: #7f8c8d;
  font-size: .78rem;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
