:root {
  --green: #064b2f;
  --green2: #087443;
  --cream: #f3f7fb;
  --paper: #ffffff;
  --gold: #f6c445;
  --ink: #10233d;
  --muted: #607086;
  --red: #d63232;
  --line: #d7e0ea;
  --blue: #0b4da2;
  --blue-dark: #073472;
  --shadow: 0 18px 48px rgba(7, 52, 114, .10);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(246, 196, 69, .18), transparent 24rem),
    linear-gradient(180deg, #edf5ff 0, #f8fafc 26rem, #f3f7fb 100%);
}

.topbar {
  min-height: 82px;
  height: auto;
  background: linear-gradient(112deg, var(--blue-dark), var(--blue) 68%, #1264c3);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 28px rgba(7, 52, 114, .18);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  gap: 13px;
  max-width: 520px;
  line-height: 1.05;
}

.brand .brand-name {
  width: auto;
  height: auto;
  display: inline;
  background: none;
  border-radius: 0;
  color: white;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: left;
}

.brand-name b {
  display: block;
  color: var(--gold);
  font-size: .8em;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand .pe-flag {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 42px;
  overflow: hidden;
  display: block;
  border-radius: 7px;
  background: linear-gradient(to bottom, #0b4da2 0 50%, #fff 50%);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}

.pe-flag::before {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
}

.pe-flag::after {
  content: "+";
  position: absolute;
  top: -3px;
  left: 18px;
  color: #e33b36;
  font: 800 21px/1 system-ui;
}

.pe-flag i {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 13px;
  width: 29px;
  height: 11px;
  border-top: 3px solid #e33b36;
  border-radius: 50%;
  box-shadow: 0 -3px 0 -1px #f6c445, 0 -6px 0 -2px #168b4c;
}

.topbar nav a.active,
.topbar nav a:hover {
  background: rgba(255, 255, 255, .14);
}

.page-head {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 77, 162, .14);
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 92px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--green2) 66%);
}

.page-head h1,
.panel h2,
.contest-card h2 {
  color: var(--blue-dark);
}

.eyebrow {
  color: var(--red);
}

.admin-submenu {
  display: flex;
  gap: 7px;
  width: fit-content;
  margin: -8px 0 28px;
  padding: 5px;
  background: #e4edf7;
  border: 1px solid #cfdae7;
  border-radius: 11px;
}

.participant-submenu {
  display: flex;
  gap: 8px;
  margin: -8px 0 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7e1ec;
}

.participant-submenu a {
  padding: 9px 15px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
}

.participant-submenu a.active {
  color: white;
  background: var(--blue);
}

.participant-submenu button {
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-submenu a {
  padding: 10px 18px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
  border-radius: 7px;
}

.admin-submenu a.active {
  color: white;
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(11, 77, 162, .22);
}

.admin-submenu form,
.nav-form {
  margin: 0;
}

.admin-submenu button,
.nav-form button {
  height: 100%;
  padding: 9px 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-submenu button:hover {
  background: #f9e2e2;
  color: var(--red);
}

.topbar .nav-form button {
  color: #dbe9f9;
}

.topbar .nav-form button:hover {
  background: rgba(255, 255, 255, .14);
  color: white;
}

.contest-card {
  border-top: 4px solid var(--blue);
}

.contest-card:hover {
  border-color: var(--blue);
  box-shadow: 0 20px 52px rgba(7, 52, 114, .15);
}

.ticket-edge {
  background: repeating-linear-gradient(var(--red) 0 9px, var(--gold) 9px 18px, var(--green2) 18px 27px);
}

.btn.primary,
.avatar,
.card-index {
  background: var(--blue);
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.ball.marked {
  background: var(--gold);
  border-color: #cc991b;
}

.bingo-card {
  border-top: 5px solid var(--blue);
}

.card-top {
  border-color: var(--red);
}

footer {
  color: #526981;
  border-top: 1px solid #dbe4ee;
  background: rgba(255, 255, 255, .55);
}

@media (max-width: 600px) {
  .brand .brand-name { font-size: .94rem; }
  .brand .pe-flag { flex-basis: 42px; width: 42px; height: 36px; }
  .pe-flag::before { left: 13px; bottom: 4px; width: 13px; height: 13px; }
  .pe-flag::after { left: 15px; }
  .pe-flag i { left: 6px; top: 11px; }
  .admin-submenu { width: 100%; overflow-x: auto; }
  .admin-submenu a { flex: 0 0 auto; text-align: center; padding: 9px 10px; }
}
