:root {
  --ll-red: #d63528;
  --ll-red-dark: #aa241b;
  --ink: #171717;
  --muted: #666;
  --line: #dfdfdf;
  --soft: #f7f7f7;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

[hidden],
.is-submitted #predictionForm {
  display: none !important;
}

html {
  background: transparent;
}

body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.embed-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.game-card {
  border: 2px solid var(--ll-red);
  background: var(--paper);
}

.game-header {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f9f9f9);
}

.kicker {
  margin: 0 0 8px;
  color: var(--ll-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.05;
}

.intro {
  max-width: 660px;
  margin: 0;
  color: #333;
  line-height: 1.45;
}

.intro p {
  margin: 0 0 12px;
}

.intro p:last-of-type {
  margin-bottom: 5px;
}

.intro ol {
  margin: 0;
  padding-left: 22px;
}

.intro li + li {
  margin-top: 5px;
}

.status {
  margin: 16px 18px 0;
  padding: 12px 14px;
  border-left: 5px solid var(--ll-red);
  background: #fff3f1;
  color: #3a1512;
  line-height: 1.35;
}

.status.is-success {
  border-left-color: #177245;
  background: #eef8f2;
  color: #123f2a;
}

.thank-you {
  margin: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ll-red);
  background: #fff;
}

.thank-you h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.thank-you p {
  margin: 0;
  color: #333;
  line-height: 1.45;
}

.prediction-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.player-panel {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.player-panel--two {
  grid-template-columns: 105px minmax(0, 1fr);
}

label,
.office-title {
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b8b8b8;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

input:focus {
  outline: 3px solid rgba(214, 53, 40, 0.16);
  border-color: var(--ll-red);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar p {
  margin: 0;
}

.office-list {
  display: grid;
  gap: 10px;
}

.office-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.38fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.office-title {
  line-height: 1.18;
}

.pick-input-wrap {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #b8b8b8;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.suggestion:hover,
.suggestion.is-active {
  background: #fff1ef;
}

.avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: #eee;
}

.suggestion strong {
  display: block;
  overflow-wrap: anywhere;
}

.suggestion span span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.clear-pick {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ll-red-dark);
  cursor: pointer;
}

.clear-pick:hover {
  border-color: var(--ll-red);
}

.submit-panel {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-top: 4px solid var(--ll-red);
  background: #fff;
  box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.9);
}

.submit-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.submission-notices {
  display: grid;
  gap: 10px;
}

.newsletter-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  max-width: 430px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

.newsletter-consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ll-red);
}

.submit-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.submit-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  background: var(--ll-red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.privacy-note {
  max-width: 260px;
  text-align: right;
}

.privacy-note a {
  color: var(--ll-red-dark);
  font-weight: 700;
}

.submit-button:hover {
  background: var(--ll-red-dark);
}

@media (max-width: 620px) {
  .game-header,
  .prediction-form {
    padding: 14px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .player-panel,
  .office-row,
  .submit-panel {
    grid-template-columns: 1fr;
  }

  .office-row {
    display: grid;
  }

  .toolbar,
  .submit-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-button {
    width: 100%;
  }

  .submit-actions {
    justify-items: stretch;
  }

  .privacy-note {
    max-width: none;
    text-align: left;
  }
}
