/* ABCPLAYs eget ordspil: kompakt spilleflade og dansk tastatur med store trykfelter. */
.ord-page {
  max-width: 960px;
}
.ord-game {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #ffffff28;
  background: linear-gradient(150deg, #194536, #123429);
  box-sizing: border-box;
}
.ord-daily {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f1d58f;
  font: 600 12px/1.4 system-ui;
  letter-spacing: 0.04em;
}
#ord-status {
  min-height: 42px;
  margin: 12px 0;
  text-align: center;
  font: 15px/1.4 system-ui;
}
.ord-board {
  display: grid;
  gap: 6px;
  width: min(100%, 290px);
  margin: auto;
}
.ord-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.ord-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid #91b5a05e;
  background: #0d2d24;
  font: 700 clamp(20px, 5vw, 27px) system-ui;
  color: #edf4ef;
  box-sizing: border-box;
}
.ord-tile.typed {
  border-color: #ecd498;
}
.ord-tile.correct {
  background: #187860;
  border-color: #58b99a;
}
.ord-tile.present {
  background: #c59a32;
  border-color: #f1d58f;
  color: #172e24;
}
.ord-tile.absent {
  background: #0d2d24;
  border-color: #91b5a05e;
}
.ord-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  font: 11px system-ui;
  color: #bbd2c4;
}
.ord-legend span:first-child {
  color: #73d5b2;
}
.ord-legend span:nth-child(2) {
  color: #f1d58f;
}
.ord-keyboard {
  display: grid;
  gap: 6px;
}
.ord-key-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.abc-game--dagensord .ord-key {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 4px 0;
  border: 1px solid #89aa9866;
  border-radius: 7px;
  background: #36574b;
  color: #fff8e4;
  font: 600 14px system-ui;
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
}
.abc-game--dagensord .ord-key.wide {
  flex: 1.7 1 0;
  font-size: 11px;
}
.abc-game--dagensord .ord-key.correct {
  background: #187860;
}
.abc-game--dagensord .ord-key.present {
  background: #c59a32;
  color: #142e23;
}
.abc-game--dagensord .ord-key.absent {
  background: transparent;
  color: #a6b9ae;
}
.abc-game--dagensord .ord-key:focus-visible {
  outline: 3px solid #fff0ac;
  outline-offset: 2px;
}
.abc-game--dagensord .ord-key:disabled {
  cursor: default;
  opacity: 0.65;
}
.ord-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.ord-hint {
  font: 12px/1.5 system-ui;
  color: #bbd2c4;
  text-align: center;
  margin: 12px 0 0;
}
#ord-rules {
  background: #153c2f;
  color: #edf4ef;
  border: 1px solid #f1d58f;
  border-radius: 16px;
  max-width: 580px;
  width: calc(100% - 50px);
  padding: 22px;
  font: 15px/1.5 system-ui;
}
#ord-rules::backdrop {
  background: #0009;
}
#ord-rules li {
  margin-bottom: 8px;
}
@media (max-width: 800px) {
  .ord-game {
    padding: 12px;
    max-width: 420px;
  }
  .ord-board {
    max-width: 255px;
    gap: 5px;
  }
  .ord-row {
    gap: 5px;
  }
  .ord-tile {
    border-radius: 8px;
  }
  .ord-keyboard {
    gap: 5px;
  }
  #ord-status {
    font-size: 13px;
    min-height: 35px;
    margin: 10px 0;
  }
  .ord-legend {
    gap: 10px;
    margin: 10px 0;
    font-size: 10px;
  }
  .ord-hint {
    font-size: 11px;
    margin-top: 9px;
  }
}
.ord-actions button[hidden] {
  display: none !important;
}

.ord-time {
  text-align: center;
  font: 600 13px system-ui;
  color: #f1d58f;
  margin: 10px 0 0;
  font-variant-numeric: tabular-nums;
}
