/* Official marks use one bounded flex frame; percentage image sizes must not
   resolve against an intrinsic, oversized grid row and get clipped. */
.draws-page .draw-head .op-mark.has-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 56px;
  flex: 0 0 96px;
  padding: 6px 8px;
  border: 1px solid rgb(15 23 42 / 12%);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.draws-page .draw-head .op-mark img {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.draws-page .draw-title { min-width: 0; flex: 1 1 120px; }
.draws-page .draw-title h2 { overflow-wrap: anywhere; }
/* Give the game name and preview separate lines so a large amount remains readable. */
.draws-page .draw-game > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  grid-template-areas: 'name status arrow' 'peek peek arrow';
  gap: 3px 8px;
  padding: 10px 12px;
  min-height: 54px;
  touch-action: manipulation;
}
.draws-page .draw-game > summary .game-name {
  grid-area: name;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.draws-page .draw-game > summary .status { grid-area: status; }
.draws-page .draw-game > summary .game-chevron { grid-area: arrow; }
.draws-page .draw-game > summary .game-peek {
  grid-area: peek;
  justify-self: start;
  width: 100%;
  text-align: left;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.draws-page .draw-game > summary .game-peek:empty { display: none; }
.draws-page .draw-game[open] > summary {
  background: color-mix(in srgb, var(--op-head, #64748b) 10%, #fff);
}
.draws-page .draw-game > summary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}
.draws-page .draw-game-meta { padding: 8px 12px; font-size: 12px; }
.draws-page .game-row { padding: 10px 12px; gap: 6px 12px; }
.draws-page .game-row dt { font-size: 12px; line-height: 1.5; }
.draws-page .game-row dd { font-size: 13px; line-height: 1.65; }
.draws-page .game-row.row-number {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  background: #f8fafc;
}
.draws-page .game-row.row-number dd {
  font-size: 19px;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: normal;
}
.draws-page .winning-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.draws-page .winning-number {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #dbe3ed;
  border-radius: 4px;
  background: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.draws-page .game-row.row-amount {
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
}
.draws-page .game-row.row-amount dd {
  text-align: right;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
}
.draws-page .game-row.row-combinations { grid-template-columns: minmax(0, 1fr); }
.draws-page .combo-list {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 6px;
  max-height: 260px;
  padding-right: 3px;
  scrollbar-width: thin;
}
.draws-page .combo-list li {
  padding: 7px 4px;
  border: 1px solid #dbe3ed;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 540px) {
  .draws-page .draw-head .op-mark.has-logo {
    width: 84px;
    height: 52px;
    flex-basis: 84px;
    padding: 6px;
  }
}
@media (max-width: 420px) {
  .draws-page .game-row.row-amount { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .draws-page .game-row.row-amount dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .draws-page .game-chevron { transition: none; }
}
