* {
  box-sizing: border-box;
}

:root {
  --ink: #10252a;
  --muted: #5d747a;
  --line: #b9d0d5;
  --deep: #103743;
  --deep-2: #0b5967;
  --cyan: #42bfd0;
  --gold: #e2ae37;
  --paper: #f7fbfb;
  --red: #d95745;
  --green: #16845c;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 55, 67, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 55, 67, .035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(226, 174, 55, .18), transparent 28%),
    linear-gradient(135deg, #eef8f7 0%, #dceff2 52%, #f7f1df 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page {
  min-height: 100vh;
  padding: 24px;
}

.board {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(16, 55, 67, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 28px 70px rgba(16, 55, 67, .18);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 152px 1fr 152px;
  min-height: 188px;
  border-bottom: 1px solid rgba(16, 55, 67, .25);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, .85), rgba(255, 255, 255, .22) 40%, transparent 66%),
    linear-gradient(90deg, var(--deep) 0%, #1f8897 18%, #d9f4f5 50%, #1f8897 82%, var(--deep) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .65);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(226, 174, 55, .9), transparent);
}

.mark {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .18), transparent 32%),
    linear-gradient(145deg, #092b35 0%, #0b6373 70%, #42bfd0 100%);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, .1),
    0 18px 32px rgba(5, 34, 42, .25);
}

.mark::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 3px solid rgba(226, 174, 55, .95);
  border-radius: 50%;
}

.mark span {
  position: relative;
  z-index: 1;
}

.title-wrap {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px 24px 34px;
  text-align: center;
}

h1 {
  margin: 0;
}

.title-wrap h1 {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(58px, 8vw, 98px);
  font-weight: 900;
  letter-spacing: 0;
  color: #092932;
  text-shadow:
    2px 2px 0 rgba(226, 174, 55, .78),
    0 14px 26px rgba(16, 55, 67, .18);
}

.title-wrap p {
  margin: 0;
  padding: 5px 16px;
  border: 1px solid rgba(16, 55, 67, .24);
  color: var(--deep);
  background: rgba(255, 255, 255, .55);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: center;
  word-break: break-word;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  color: #092932;
  background: linear-gradient(#8edce6, #4fc3d1);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 7px;
}

th:nth-child(1) {
  width: 18%;
}

th:nth-child(2) {
  width: 42%;
}

th:nth-child(3),
th:nth-child(4),
th:nth-child(5) {
  width: 13.33%;
}

td {
  min-height: 52px;
  background: rgba(255, 255, 255, .94);
  font-size: 18px;
  line-height: 1.45;
}

tbody tr:nth-child(even) td {
  background: #edf8f9;
}

tbody tr:hover td {
  background: #fff7df;
}

td:nth-child(2) {
  text-align: left;
}

.result {
  display: inline-flex;
  min-width: 58px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.result.is-win {
  color: #fff;
  background: var(--green);
}

.result.is-lose {
  color: #fff;
  background: var(--red);
}

.result.is-pending {
  color: var(--deep);
  background: #dcecef;
  border: 1px solid #bdd4d9;
}

.admin-page {
  min-height: 100vh;
  padding: 28px;
}

.panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(16, 55, 67, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(8, 43, 54, .15);
}

.hidden {
  display: none;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-head h1,
.panel > h1 {
  font-size: 28px;
}

a {
  color: var(--cyan-deep);
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #9db8c0;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--deep-2);
  font: 700 15px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

button:hover {
  background: #095a6d;
}

.btn-secondary {
  color: var(--deep);
  background: #dcecef;
}

.btn-secondary:hover {
  background: #c7e1e6;
}

.btn-danger {
  background: var(--red);
}

.btn-danger:hover {
  background: #b94032;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.table-scroll {
  overflow-x: auto;
}

.edit-table {
  min-width: 900px;
}

.edit-table th,
.edit-table td {
  padding: 8px;
  border: 1px solid #9db8c0;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.edit-table input {
  min-width: 120px;
}

.edit-table button {
  background: var(--red);
}

.msg,
.help {
  color: #8a2b1b;
}

@media (max-width: 760px) {
  .page,
  .admin-page {
    padding: 10px;
  }

  .hero {
    grid-template-columns: 64px 1fr 64px;
    min-height: 126px;
  }

  .hero::before {
    inset: 10px;
  }

  .mark {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }

  .mark::after {
    inset: 8px;
    border-width: 3px;
  }

  .title-wrap {
    padding: 16px 8px;
  }

  .title-wrap h1 {
    font-size: 40px;
  }

  .title-wrap p {
    font-size: 12px;
    letter-spacing: 1px;
  }

  th,
  td {
    padding: 8px 4px;
    font-size: 13px;
  }

  th {
    letter-spacing: 2px;
  }

  th:nth-child(1) {
    width: 22%;
  }

  th:nth-child(2) {
    width: 36%;
  }

  th:nth-child(3),
  th:nth-child(4),
  th:nth-child(5) {
    width: 14%;
  }

  td:nth-child(1),
  td:nth-child(3),
  td:nth-child(4),
  td:nth-child(5) {
    white-space: nowrap;
  }

  .result {
    min-width: 42px;
    padding: 3px 8px;
    font-size: 13px;
  }
}
