/* Modal styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: all;
  overflow: auto;
}
.image-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.image-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 18px 18px 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 96vw;
  max-height: 90vh;
}
.image-modal-content {
  max-width: 98vw;
  max-height: 98vh;
  padding: 6vw 0 4vw 0;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .image-modal-content {
    padding: 0 0 16vw 0;
    max-width: 96vw;
    max-height: 96vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .image-modal-content img {
    width: 90vw;
    height: auto;
    max-width: 90vw;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: block;
    margin: 4vw auto 4vw auto;
  }
}
.image-modal-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  display: block;
  margin: 0 auto;
}
.close-modal-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #333;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  padding: 0 6px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.close-modal-btn:hover {
  opacity: 1;
  color: #b00;
}
.player-odds {
  min-width: 40px;
  text-align: right;
  font-size: 1.04rem;
  font-weight: 700;
  color: #2f2a22;
  margin-left: auto;
  display: block;
}
.admin-panel-btn {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: #2f6b49;
  color: #fff8e8;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  opacity: 0.92;
  transition: background 0.15s;
}
.admin-panel-btn:hover {
  background: #1f5a5a;
}
:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 205, 120, 0.22), transparent 36%),
    radial-gradient(circle at 88% 24%, rgba(44, 120, 132, 0.2), transparent 34%),
    linear-gradient(180deg, #0f3340 0%, #1f5a5a 24%, #d8b886 100%);
  color: #f8f2df;
  min-height: 100vh;
}

main {
  max-width: 1120px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 22px;
  text-align: center;
}

.show-logo {
  width: min(320px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd58d;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.page-header p {
  margin: 0;
  color: #f4e6c3;
  font-size: 1.02rem;
}

.section-block {
  margin-bottom: 24px;
}

.standings-table {
  width: min(320px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  background: linear-gradient(180deg, #f8edda 0%, #f2dfbb 100%);
  border: 1px solid #c39a62;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.standings-table th,
.standings-table td {
  padding: 5px 8px;
  text-align: left;
  color: #4b2d16;
  font-size: 0.86rem;
}

.standings-table th {
  background: rgba(146, 94, 49, 0.2);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.standings-table tbody tr + tr {
  border-top: 1px solid rgba(120, 86, 45, 0.28);
}

.standings-table .extras-row {
  background: rgba(91, 62, 34, 0.08);
}

.standings-table .extras-row td {
  font-style: italic;
  color: #6d5036;
}

.standings-table td:last-child {
  font-weight: 700;
}

.section-block h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px;
}

.person-card {
  background: linear-gradient(180deg, #f8edda 0%, #f2dfbb 100%);
  border: 1px solid #c39a62;
  border-radius: 14px;
  padding: 8px 6px 8px 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.extras-card {
  background: linear-gradient(180deg, #efe6d7 0%, #e8dcc9 100%);
  border-style: dashed;
}

.person-name {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #5d3418;
  letter-spacing: 0.03em;
}

.players-list {
  display: grid;
  gap: 2px;
}

.player-card {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid #b88857;
  border-radius: 11px;
  padding: 10px;
  background: rgba(60, 180, 60, 0.10); /* light green for active */
  color: #2f2a22;
  cursor: default;
  text-align: left;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.player-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 1px solid #9a6b3f;
}

.player-meta {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  gap: 0;
  /* Remove padding-right so odds stay at far right */
}

.player-name {
  font-weight: 600;
}


.player-card.voted-off {
  background: rgba(220, 40, 40, 0.13); /* light red for voted off */
  color: #7a6757;
  border-color: #b89f88;
}

.player-card.voted-off .player-name {
  text-decoration: line-through;
}

.voted-off-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220,40,40,0.85);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 4px 18px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  letter-spacing: 0.04em;
  z-index: 2;
}

.player-card.voted-off .player-status {
  background: #8e5a37;
  color: #fff4dd;
  min-width: 40px;
  text-align: right;
  margin-left: auto;
  position: relative;
  z-index: 2;
  min-width: 40px;
  text-align: right;
  margin: 0;
  position: static;
  z-index: auto;
}
