* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111111;
  color: #f0ebeb;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: #f0ebeb;
  text-decoration: none;
}

button,
input {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #333333;
}

.brand {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 28px;
  font-weight: bold;
}

.home-link {
  color: #b4b3b3;
}

.upload-page,
.scrandle-page {
  width: 90%;
  max-width: 1700px;
  margin: 40px auto;
}

.upload-page {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 70px;
  align-items: center;
}

.upload-card,
.cat-card,
.round,
.leaderboard-box {
  background: #2e2d2d;
  border: 1px solid #333333;
  border-radius: 2px;
  padding: 24px;
}

.upload-card {
  max-width: 560px;
}

.cat-card {
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
}

.cat-card img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.cat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.cat-frame {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-pic {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 68px;
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: 34px;
}

.kicker {
  margin: 0 0 10px;
  color: #483bbd;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}

.hint,
.status,
.empty-state {
  color: #cfcfcf;
}

.upload-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 8px;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: normal;
}

.label-main {
  font-weight: bold;
}

.label-note {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

input {
  width: 100%;
  padding: 12px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 8px;
}

button {
  padding: 13px 16px;
  background: #1900ff;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.secondary {
  background: transparent;
  border: 1px solid #333333;
}

.round {
  display: grid;
  gap: 22px;
}

.round-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.empty-state {
  margin: 0;
  padding: 60px 18px;
  text-align: center;
  border: 1px dashed #333333;
  border-radius: 8px;
}

.battle-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.photo-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #050505;
  color: #483bbd;
  border: 0;
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  text-align: left;
}

.photo-card strong,
.photo-card small,
.round-result strong,
.round-result span,
.leaderboard-box strong,
.leaderboard-box span {
  display: block;
}

.photo-card small,
.round-result span,
.leaderboard-box li {
  color: #b4b3b3;
}

.round-result {
  padding: 16px;
  background: #101010;
  border: 1px solid #333333;
  border-radius: 8px;
}

.leaderboard-box {
  margin-top: 80px;
}

.leaderboard-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
}

.leaderboard-box ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.leaderboard-box strong {
  color: #f0ebeb;
}

.leaderboard-image {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  place-items: center;
}

.leaderboard-image-box {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#battle-cards {
  opacity: 1;
  transition: opacity 0.35s ease;
}

#battle-cards.fade-out {
  opacity: 0;
}

#battle-cards.fade-in {
  opacity: 1;
}

@media (max-width: 760px) {
  .upload-page,
  .battle-cards,
  .round-top,
  .leaderboard-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}
