/* Submissions panel. The server says who you are; this only draws it. */

.entry {
  padding: 2.5rem 1.5rem 3rem;
  background: repeating-linear-gradient(45deg, #fff 0 40px, #f6fff0 40px 80px);
  border-bottom: 4px solid var(--ink);
  max-width: 62rem;
  margin: 0 auto;
}

.identity {
  border: 4px solid var(--ink);
  background: #fff;
  padding: 0.9rem 1.1rem;
  box-shadow: 6px 6px 0 var(--ink);
  margin: 1.5rem 0;
}
.identity-line { margin: 0; font-family: "Courier New", monospace; }
.identity strong { color: var(--ink); }
.role-chip {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 0.1rem 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 0.4rem;
  background: var(--yellow);
}
.role-chip.judge { background: var(--magenta); color: #fff; }
.role-chip.player { background: var(--lime); }
.identity-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #555;
  overflow-wrap: anywhere;
}
.identity-actions { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.identity-actions form { margin: 0; }
.identity-actions .btn { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.setup {
  border: 4px dashed var(--red);
  background: #fff;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.setup h2 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.setup p { margin: 0.4rem 0; }
.setup code {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  background: #f4f4f4;
  border-left: 6px solid var(--ink);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.signed-out {
  border: 4px solid var(--ink);
  background: #fff;
  padding: 1.25rem;
  max-width: 40rem;
}

h2 { margin-top: 2rem; }

.player-panel form,
.judge-panel { max-width: 46rem; }

form label {
  display: block;
  font-weight: bold;
  margin: 0.9rem 0 0.3rem;
}
form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 3px solid var(--ink);
  background: #fff;
}
form textarea { resize: vertical; font-family: inherit; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.form-note { font-family: "Courier New", monospace; font-size: 0.85rem; }
.form-note.error { color: var(--red); font-weight: bold; }
.form-note.ok { color: #00661a; font-weight: bold; }

.muted { color: #444; font-size: 0.9rem; }

.entries { list-style: none; margin: 1rem 0 0; padding: 0; }

.entry-card {
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.2);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px dashed var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}
.entry-title {
  margin: 0;
  font-size: 1.25rem;
}
.entry-by {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #555;
}
.entry-desc { margin: 0 0 0.5rem; }
.entry-link { font-family: "Courier New", monospace; font-size: 0.85rem; overflow-wrap: anywhere; }
.entry-meta {
  margin: 0.5rem 0 0;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #444;
}
.entry-score {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}
.entry-score .of { font-family: "Courier New", monospace; font-size: 0.8rem; }

.score-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 3px solid var(--ink);
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 0.75rem;
}
.score-field label { margin: 0 0 0.2rem; font-size: 0.85rem; }
.score-field input {
  width: 100%;
  padding: 0.4rem;
  border: 3px solid var(--ink);
  font-family: "Courier New", monospace;
}
.score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.75rem;
}
.score-note { font-family: "Courier New", monospace; font-size: 0.8rem; }
.score-note.error { color: var(--red); font-weight: bold; }
.score-note.ok { color: #00661a; font-weight: bold; }

@media (max-width: 40rem) {
  .entry { padding: 1.5rem 1rem 2rem; }
}
