@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");
/* Colores principales y configuración general */
:root {
  color-scheme: dark;
  --bg: #050505;
  --card: #101111;
  --muted: #a1aaa5;
  --green: #268450;
  --line: #242c27;
  --soft: #14251b;
  --red: #ffaba2;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 82% 0%, #14271b22, transparent 43%), var(--bg);
  color: #f1f5ed;
  font:
    14px/1.5 "DM Sans",
    system-ui,
    sans-serif;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #141a16;
  color: #e8efe5;
  border-radius: 11px;
  padding: 11px 16px;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:hover {
  border-color: #7a9968;
  background: #1b2b21;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button:disabled:hover {
  border-color: var(--line);
}
[hidden] {
  display: none !important;
}
/* Encabezado y marca */
header {
  height: 82px;
  padding: 0 max(calc((100vw - 1104px) / 2), 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #26342b;
  background: #070707bd;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f3eb;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.7px;
}
.brandmark {
  width: 34px;
  height: 34px;
  color: var(--green);
  padding: 7px;
  border: 1px solid #2a5338;
  border-radius: 10px;
  background: #26845009;
}
.brand small {
  font-size: 9px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 15px;
  margin-left: 8px;
  letter-spacing: 1.8px;
}
.local {
  color: #b1c0b0;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.local:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px #26845040;
}
.green {
  color: var(--green);
}
main {
  max-width: 1160px;
  margin: 40px auto;
  padding: 0 28px;
}
/* Presentación y decoración del campo */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #334331;
  border-radius: 22px;
  padding: 30px 32px 24px;
  background:
    radial-gradient(ellipse at 80% 60%, #18402922, transparent 55%),
    linear-gradient(115deg, #101713, #090c0a 65%);
  margin-bottom: 29px;
  box-shadow:
    0 18px 60px #0002,
    inset 0 1px 0 #c9e4d007;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 5px, #ffffff02 6px);
  pointer-events: none;
  z-index: -1;
}
.field-art {
  position: absolute;
  right: 30px;
  top: -75px;
  width: 390px;
  height: 390px;
  transform: rotate(-17deg);
  opacity: 0.12;
  z-index: -1;
  color: var(--green);
  pointer-events: none;
}
.eyebrow {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow:before {
  content: "";
  display: block;
  height: 1px;
  width: 20px;
  background: currentColor;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin: 9px 0 0;
}
h1 {
  font:
    800 78px/0.98 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -1px;
  margin: 10px 0 14px;
}
p {
  color: var(--muted);
  line-height: 1.65;
}
.heading p {
  margin: 0;
  font-size: 12px;
}
.primary {
  background: var(--green);
  color: #f3faf5;
  border: 1px solid #36965f;
  font-weight: 700;
  padding: 13px 20px;
  box-shadow:
    0 3px 0 #09100655,
    0 6px 24px #2684500d;
  white-space: nowrap;
}
.primary:hover {
  background: #30965d;
  border-color: #50ad77;
  box-shadow: 0 4px 24px #26845021;
}
.heading .primary {
  margin-bottom: 3px;
}
/* Filtros y actualización de estadísticas */
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #25342a;
  border-radius: 13px;
  background: #0c100d;
}
nav button {
  border: 1px solid transparent;
  background: none;
  color: #a7b5a9;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9px;
}
nav button:hover {
  background: #17271d;
  border-color: transparent;
}
nav .active {
  background: #173923;
  color: #b9dbc6;
  border: 1px solid #2d603d;
  box-shadow: 0 2px 6px #0003;
}
#refresh {
  font-size: 12px;
  background: none;
  border-color: #334436;
}
.connection {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  color: #a2b2a6;
  font-size: 10px;
  padding: 15px 2px 22px;
  line-height: 1.6;
}
.connection span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.connection span:last-child {
  color: #829887;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Cuadrícula de parlays guardados */
#cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
/* Tarjetas de parlay */
.card {
  background: linear-gradient(145deg, #121614, #090c0a);
  border: 1px solid #324334;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 12px 30px #0002,
    inset 0 1px 0 #c9e4d00a;
}
.cardtop {
  padding: 21px 24px;
  border-bottom: 1px solid #36472e;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: linear-gradient(100deg, #18241b85, transparent);
}
.cardtop > div {
  min-width: 0;
}
.cardtop h2 {
  font-size: 19px;
  line-height: 1.3;
  margin: 7px 0 0;
  font-weight: 700;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.cardtop small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94b59f;
  font-weight: 600;
}
.delete {
  background: none;
  border-color: transparent;
  color: #a5b2a4;
  padding: 7px 9px;
  font-size: 10px;
}
.delete:hover {
  color: var(--red);
  background: #ff8c7d0a;
  border-color: #ff8c7d30;
}
/* Encabezado de cada partido */
.eventheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  background: #030504b3;
  color: #a8bbad;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #26372b;
}
.eventheading span {
  color: #8ba18e;
  font-size: 9px;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0;
}
.eventgroup + .eventgroup {
  border-top: 1px solid #43563a;
}
/* Estadísticas y avance de cada leg */
.leg {
  padding: 22px 24px;
  border-bottom: 1px solid #2a382d;
  position: relative;
}
.leg:last-child {
  border-bottom: 0;
}
.leghead,
.statline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.player {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.25px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.pill {
  font-size: 9px;
  letter-spacing: 0.2px;
  color: #b4c4b3;
  padding: 5px 8px;
  border: 1px solid #3b4f3d;
  background: #23332766;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.good {
  color: var(--green);
}
.bad {
  color: var(--red);
}
.pill.good {
  background: #26845012;
  border-color: #2684503d;
}
.pill.bad {
  background: #ff918412;
  border-color: #ff91843d;
}
.market {
  color: #9fb09f;
  font-size: 11px;
  margin: 7px 0 14px;
  line-height: 1.6;
  max-width: 95%;
}
.value {
  font:
    700 42px/1 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.linevalue {
  color: #8fa18e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-left: 3px;
}
.remaining {
  font-size: 10px;
  text-align: right;
  color: #b1c1ab;
}
.remaining.good {
  color: var(--green);
}
.remaining.bad {
  color: var(--red);
}
.track {
  height: 6px;
  background: #2f3e30;
  box-shadow: inset 0 1px 2px #0004;
  border-radius: 5px;
  margin: 12px 0 14px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: linear-gradient(90deg, #175133, var(--green));
  border-radius: 5px;
  box-shadow: 0 0 12px #26845030;
  transition: width 0.5s ease;
}
.game {
  color: #91a38f;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.game span:last-child {
  text-align: right;
  color: #b5c5b0;
}
/* Pantalla sin parlays para mostrar */
.empty {
  grid-column: 1/-1;
  position: relative;
  overflow: hidden;
  border: 1px solid #34462f;
  border-radius: 18px;
  text-align: center;
  padding: 52px 24px 48px;
  background: radial-gradient(ellipse at 50% 0, #16412822, transparent 65%), #0c0f0d;
}
.empty:before,
.empty:after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  width: 58px;
  border: 1px solid #468a5812;
  pointer-events: none;
}
.empty:before {
  left: 24px;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.empty:after {
  right: 24px;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}
.empty .symbol {
  width: 62px;
  height: 62px;
  border: 1px solid #2a5338;
  border-radius: 18px;
  background: #2684500b;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--green);
  box-shadow: 0 0 40px #26845009;
}
.empty .symbol svg {
  height: 31px;
  width: 31px;
}
.empty h2 {
  font:
    700 34px/1.15 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.2px;
  margin: 22px 0 10px;
}
.empty p {
  font-size: 12px;
  max-width: 350px;
  margin: 0 auto 23px;
}
.empty .primary {
  font-size: 12px;
}
/* Controles de respaldo */
.backup {
  margin-top: 28px;
  border: 1px solid #2a392d;
  border-radius: 15px;
  background: #0e1110;
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.backup h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}
.backup p {
  font-size: 10px;
  margin: 6px 0 0;
  max-width: 440px;
}
.backup > div:last-child {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.backup button {
  font-size: 11px;
  background: #151d18;
  padding: 10px 13px;
}
footer {
  color: #899b89;
  font-size: 10px;
  line-height: 1.9;
  margin: 25px 2px 35px;
  max-width: 640px;
}
/* Ventanas emergentes y formulario */
dialog {
  background: linear-gradient(160deg, #151c17, #0c100d 65%);
  color: #f0f3eb;
  border: 1px solid #506843;
  border-radius: 22px;
  width: 680px;
  max-width: calc(100vw - 32px);
  max-height: 90dvh;
  padding: 28px;
  box-shadow: 0 24px 100px #0009;
}
dialog::backdrop {
  background: #030805c9;
  backdrop-filter: blur(9px);
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.modalhead h2 {
  font:
    700 38px/1.1 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.3px;
  margin: 10px 0 0;
}
.modalhead button {
  background: #ffffff06;
  border: 1px solid #42503e;
  border-radius: 50%;
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #bac9b6;
}
.modalhead button:hover {
  background: #ffffff12;
}
.modalhead .eyebrow {
  font-size: 8px;
}
label,
.fieldlabel {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #b8cbb1;
  margin-bottom: 14px;
}
.fieldlabel {
  margin-bottom: 9px;
}
input,
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #3e5239;
  background: #080b09;
  color: #f0f3eb;
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
  line-height: 1.4;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
input::placeholder {
  color: #81917d;
}
input:hover,
select:hover {
  border-color: #72845d;
}
input:focus,
select:focus {
  outline: 0;
  border-color: #268450;
  box-shadow: 0 0 0 3px #26845012;
}
input[type="date"] {
  max-width: 100%;
  width: 100%;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  cursor: pointer;
}
select {
  padding-right: 28px;
  text-overflow: ellipsis;
}
select:disabled {
  opacity: 0.55;
  cursor: default;
}
optgroup {
  font-weight: 700;
  color: #268450;
}
option {
  font-weight: 400;
  color: #f0f3eb;
  background: #0c100d;
}
/* Formulario de cada leg */
.draft {
  padding: 21px 20px 18px;
  background: #080c0977;
  border: 1px solid #34472e;
  border-radius: 14px;
  margin-top: 18px;
  counter-increment: draft;
}
.drafttop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #268450;
}
.drafttop strong:before {
  content: counter(draft, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  border: 1px solid #30553b;
  border-radius: 7px;
  background: #2684500c;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.drafttop button {
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0;
  background: transparent;
  border-color: #3b4a36;
  color: #adbca4;
}
#drafts {
  counter-reset: draft;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hint {
  font-size: 10px;
  line-height: 1.8;
}
.save {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
}
.save:after {
  content: " ↗";
  padding-left: 6px;
}
#addleg {
  width: 100%;
  border: 1px dashed #587047;
  color: #a4c6af;
  background: #26845007;
  margin: 18px 0 5px;
  font-size: 12px;
}
#addleg:hover {
  background: #26845011;
  border-color: var(--green);
}
#formerror {
  color: var(--red);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e633d;
  color: #e6f2e9;
  border: 1px solid #3c8a5b;
  border-radius: 12px;
  padding: 13px 21px;
  display: none;
  z-index: 5;
  max-width: 90vw;
  font-size: 12px;
  box-shadow: 0 12px 40px #0008;
}
.draftstatus {
  color: #a4b499;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
}
.loading {
  opacity: 0.65;
}
/* Selector de partidos con logos */
.gamepicker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 19px;
}
.gameoption {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 9px 12px;
  background: linear-gradient(145deg, #141e18, #0b100d);
  border: 1px solid #394c32;
  min-width: 0;
}
.gameoption:hover {
  background: #1b3022;
  border-color: #88a969;
}
.gameoption[aria-pressed="true"] {
  border-color: var(--green);
  background: linear-gradient(145deg, #173a25, #10291a);
  box-shadow:
    inset 0 0 0 1px #26845020,
    0 0 15px #26845008;
}
.gameoption[aria-pressed="true"]:after {
  content: "✓";
  position: absolute;
  right: 5px;
  top: 2px;
  font-size: 10px;
  color: var(--green);
}
.teamlogo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.teamlogo img {
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #0004);
}
.versus {
  font-size: 8px;
  color: #a0b18b;
  letter-spacing: 1px;
}
.gameoption small {
  width: 100%;
  font-size: 9px;
  color: #9aad9f;
}
/* Búsqueda adicional en la plantilla */
.otherplayers {
  display: block;
  background: transparent;
  border: 0;
  color: #98c5aa;
  font-size: 10px;
  padding: 0 0 9px;
  text-align: left;
  white-space: normal;
}
.otherplayers:hover {
  background: none;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.playersearchlabel {
  margin-top: 8px;
}
@media (min-width: 1400px) {
  main {
    margin-top: 48px;
  }
  .hero {
    padding: 35px 36px 30px;
  }
}
@media (max-width: 700px) {
  header {
    height: 68px;
    padding: 0 20px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    display: none;
  }
  .local {
    font-size: 9px;
  }
  .local:before {
    width: 5px;
    height: 5px;
  }
  main {
    margin: 22px auto;
    padding: 0 18px;
  }
  .hero {
    padding: 23px 22px 22px;
    margin-bottom: 23px;
    border-radius: 18px;
  }
  .field-art {
    width: 260px;
    right: -90px;
    top: -70px;
    opacity: 0.1;
  }
  .heading {
    gap: 14px;
    align-items: end;
  }
  h1 {
    font-size: 61px;
    margin: 10px 0 12px;
  }
  .heading p {
    font-size: 11px;
    max-width: 180px;
  }
  .heading .primary {
    font-size: 11px;
    padding: 11px 12px;
    margin-bottom: 2px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  #cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tools {
    gap: 9px;
    padding-bottom: 13px;
  }
  nav {
    gap: 1px;
    padding: 3px;
    min-width: 0;
  }
  nav button {
    padding: 8px 10px;
    font-size: 10px;
  }
  #refresh {
    font-size: 10px;
    padding: 10px;
  }
  .connection {
    font-size: 9px;
    padding: 13px 0 18px;
  }
  .connection span:last-child {
    max-width: 104px;
    text-align: right;
    white-space: normal;
    flex-shrink: 0;
  }
  .backup {
    align-items: start;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  .backup p {
    font-size: 10px;
  }
  .cardtop,
  .leg {
    padding: 20px;
  }
  .eventheading {
    padding: 10px 20px;
  }
  .cardtop h2 {
    font-size: 18px;
  }
  .value {
    font-size: 40px;
  }
  .empty {
    padding: 38px 20px;
  }
  .empty:before {
    left: 12px;
    width: 28px;
  }
  .empty:after {
    right: 12px;
    width: 28px;
  }
  .empty h2 {
    font-size: 30px;
  }
  .empty p {
    font-size: 11px;
    max-width: 250px;
  }
  .empty .symbol {
    width: 55px;
    height: 55px;
  }
  .row {
    gap: 10px;
  }
  dialog {
    padding: 22px 18px;
    max-height: 94dvh;
    border-radius: 18px;
  }
  .draft {
    padding: 18px 14px;
  }
  .modalhead {
    margin-bottom: 20px;
  }
  .modalhead h2 {
    font-size: 34px;
  }
  input,
  select {
    font-size: 16px;
  }
  select {
    padding-right: 20px;
  }
  .gamepicker {
    gap: 8px;
  }
  .teamlogo {
    gap: 4px;
    font-size: 11px;
  }
  .gameoption {
    gap: 6px;
    padding: 14px 7px 10px;
  }
  .teamlogo img {
    width: 25px;
    height: 25px;
  }
  .pill {
    font-size: 8px;
    padding: 5px 7px;
  }
  .remaining {
    font-size: 9px;
  }
  .market {
    font-size: 10px;
  }
}
@media (max-width: 390px) {
  .local {
    display: none;
  }
  .hero {
    padding: 22px 18px;
  }
  .heading {
    flex-wrap: wrap;
  }
  .heading .primary {
    width: 100%;
    margin-top: 4px;
  }
  h1 {
    font-size: 62px;
  }
  .heading p {
    max-width: none;
  }
  nav button {
    padding: 8px;
  }
  #refresh {
    padding: 10px 8px;
  }
  .gamepicker {
    grid-template-columns: 1fr;
  }
  .gameoption {
    padding: 12px;
  }
  .leghead {
    align-items: start;
  }
  .player {
    font-size: 15px;
  }
  .eventheading {
    gap: 8px;
    font-size: 9px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .connection span:last-child {
    max-width: 87px;
  }
  .backup button {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Black palette with forest green accents. */
.green,
.eyebrow,
.good,
.pill.good {
  color: #82bf99;
}
.brand .green {
  color: #65a67e;
}
.primary {
  color: #f4faf6;
  background: #216f43;
  border-color: #328655;
  box-shadow:
    0 3px 0 #0005,
    0 6px 24px #0002;
}
.primary:hover {
  background: #28814f;
  border-color: #4b9d6b;
}
.remaining.good {
  color: #82bf99;
}
.otherplayers {
  color: #90bea0;
}
.otherplayers:hover {
  color: #abd4b9;
}
optgroup {
  color: #9ac7ab;
}
#toast {
  color: #eff9f2;
}
nav .active {
  color: #c0e1cd;
}
.eventheading {
  color: #a9c8b3;
}
.empty .symbol,
.drafttop {
  color: #72b58c;
}
.gameoption[aria-pressed="true"]:after {
  color: #a3d6b6;
}

#delete-confirm {
  width: 420px;
  padding: 28px;
}
#delete-heading {
  font-size: 22px;
  line-height: 1.3;
  margin: 18px 0 10px;
  letter-spacing: -0.4px;
}
#delete-description {
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 24px;
}
#delete-name {
  color: #e8efe7;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.delete-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #6b3734;
  background: #a641351a;
  color: #f3a69d;
  border-radius: 13px;
}
.delete-symbol svg {
  width: 23px;
  height: 23px;
}
.delete-actions {
  display: flex;
  gap: 10px;
}
.delete-actions button {
  flex: 1;
  font-size: 12px;
}
#delete-cancel {
  background: #19231c;
  border-color: #3e5845;
}
#delete-accept {
  background: #913f37;
  border-color: #b45449;
  color: #fff3f0;
  font-weight: 600;
}
#delete-accept:hover {
  background: #a34a40;
  border-color: #cf7163;
}
@media (max-width: 390px) {
  #delete-confirm {
    padding: 23px;
  }
  .delete-actions {
    flex-direction: column;
  }
}

/* The full title block is the disclosure control; delete remains a sibling button. */
.cardtop {
  position: relative;
  display: block;
  padding: 0;
  border-bottom: 1px solid #344b3b;
  background: linear-gradient(120deg, #19281e, #0e1510);
  min-width: 0;
}
.cardtop > .parlaytoggle {
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 29px 100px 27px 26px;
  text-align: left;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.parlaytoggle:hover {
  background: #2a51331f;
}
.parlaytoggle:active {
  background: #2a513333;
  transform: none;
}
.parlaytoggle:focus-visible {
  outline: 2px solid #82bf99;
  outline-offset: -5px;
}
.parlaytitle {
  display: block;
  min-width: 0;
}
.parlayname {
  display: block;
  font-size: 25px;
  line-height: 1.3;
  margin: 9px 0 9px;
  font-weight: 700;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.togglecaption {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: #9cb9a5;
  letter-spacing: 0.1px;
}
.cardtop .delete {
  position: absolute;
  right: 18px;
  top: 28px;
  padding: 8px 10px;
  font-size: 10px;
  z-index: 1;
}
.card > [id^="legs-"] {
  margin: 12px;
  border: 1px solid #273b2d;
  border-radius: 12px;
  overflow: hidden;
  background: #090e0b;
}
.leg {
  padding: 20px;
}
.eventheading {
  padding: 11px 20px;
}
.eventgroup + .eventgroup {
  border-top-color: #334b39;
}
@media (max-width: 700px) {
  .cardtop > .parlaytoggle {
    min-height: 124px;
    padding: 26px 94px 25px 23px;
  }
  .parlayname {
    font-size: 24px;
  }
  .cardtop .delete {
    right: 14px;
    top: 25px;
  }
  .card > [id^="legs-"] {
    margin: 10px;
  }
  .leg {
    padding: 18px;
  }
  .eventheading {
    padding: 11px 18px;
  }
}
@media (max-width: 390px) {
  .cardtop > .parlaytoggle {
    min-height: 118px;
    padding: 24px 83px 23px 19px;
  }
  .parlayname {
    font-size: 22px;
  }
  .cardtop .delete {
    right: 10px;
    top: 24px;
    padding: 7px;
    font-size: 9px;
  }
  .leg {
    padding: 16px;
  }
  .eventheading {
    padding: 10px 16px;
  }
}

/* Match headings: a clearer white frame inside each parlay. */
.eventheading {
  border: 1.5px solid #e5eae3;
  border-radius: 8px;
  margin: 12px 12px 2px;
  padding: 11px 13px;
  background: #101713;
  color: #f1f4ef;
  box-shadow: 0 0 0 1px #ffffff08;
}
.eventheading span {
  color: #c2ccc2;
}
.eventgroup + .eventgroup {
  padding-top: 2px;
}
@media (max-width: 700px) {
  .eventheading {
    margin: 10px 10px 2px;
    padding: 10px 12px;
  }
}
@media (max-width: 390px) {
  .eventheading {
    margin: 9px 9px 2px;
    padding: 10px;
  }
}
