/* ATTRT_GAME styles (two panels + keypad + fastscore) */

#attrt-game {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}


/* Spillerpaneler */
#attrt-game .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

#attrt-game .pane {
  flex: 1 1 50%;
  border: 1px solid #254e3d;
  border-radius: 14px;
  padding: 10px;
  box-sizing: border-box;
}

#attrt-game .pane.light {
  background: #a4a8a6;
  color: #000;
}

/* Sørg for at alt tekst i den lyse boks bliver sort */
#attrt-game .pane.light h3,
#attrt-game .pane.light .bigscore,
#attrt-game .pane.light .mini {
  color: #000 !important;
}


#attrt-game .pane.dark {
  background: #1a1a1a;
  color: #fff;
}

#attrt-game .pane h3 {
  margin: 0 0 10px 0;
  font-size: clamp(26px, 2.2vw, 30px);
  font-weight: 700;
}

#attrt-game .bigscore {
  font-size: clamp(70px, 6vw, 100px);
  font-weight: 700;
  line-height: 1;
  margin: 6px 0 10px 0;
}

#attrt-game .mini {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 400;
  opacity: .6;
  line-height: 1.9;
}
#attrt-game .mini b {
  opacity: 1;
}

#attrt-game .active {
  outline: 8px solid #19c37d;
  outline-offset: 2px;
}

/* Indtastet score-linje */
#attrt-game .typed {
  text-align: center;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #cfcfcf;
}

/* Keypad */
#attrt-game .board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, 1fr);
  gap: 10px;
  align-items: stretch;

  max-width: 500px;   /* JUSTÉR HER: samlet bredde på tastaturet */
  margin: 0 auto;     /* centrer tastaturet */
}


#attrt-game .key {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  cursor: pointer;
  padding: 4;
  margin: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#attrt-game .key.num {
  background: #19c37d;
  color: #0b0b0b;
}

#attrt-game .key.fast {
  background: #c7c8c8;      /* din grå farve */
  color: #000;              /* sort tekst så det er læsbart */
  border: 1px solid #7b7e7c;/* lidt mørkere grå kant, valgfrit */
}


#attrt-game .key.util {
  background: #26f482;
  color: #fff;
  border: 1px solid #254e3d;
}

#attrt-game .key:active {
  transform: scale(.98);
}

/* Bundknapper */
#attrt-game .bottom {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#attrt-game .btn{
  border:0;
  background:#19c37d;
  color:#0b0b0b;
  font-weight:700;
  border-radius:12px;
  padding:20px 18px;      /* ← HØJDEN kommer mest herfra (top/bund-padding) */
  cursor:pointer;
  font-size:clamp(18px,2vw,23px);
}


#attrt-game .btn.secondary {
  background: #222;
  color: #fff;
  border: 1px solid #254e3d;
}

/* Historik under knapperne */
#attrt-game .history {
  font-size: clamp(12px, 1.4vw, 14px);
  max-height: 24vh;
  overflow: auto;
  margin-top: 8px;
}



/* Tving al tekst i den lyse spillerboks til sort */
#attrt-game .pane.light,
#attrt-game .pane.light * {
  color: #000 !important;
}

/* Samme bredde på tastatur og bundknapper + centreret */
#attrt-game .board,
#attrt-game .bottom{
  max-width: 520px;   /* justér tallet hvis du vil have det smallere/bredere */
  margin: 0 auto;     /* centrer hele blokken */
}

/* Layout for de 3 knapper nederst */
#attrt-game .bottom{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;  /* venstre-gruppe starter til venstre */
}

/* Skub den højre knap (Gem & Afslut) ud til højre */
#attrt-game .bottom .btn[data-k="savequit"]{
  margin-left: auto;
}

/* Fjern "Annuller"-knappen i bunden af spillet */
#attrt-game .bottom .btn[data-k="annul"]{
  display: none !important;
}
/* Skjul statistikken nederst i spillet */
#attrt-game .history{
  display: none !important;
}
#attrt-game .bottom{
  margin-bottom: 0;
}
/* Smallere spillerbokse + centreret øverst */
#attrt-game .top{
  justify-content: center;
  gap: 15px;
}

#attrt-game .pane{
  flex: 0 0 45%;
  max-width: 360px;
}

/* Højere spillerbokse */
#attrt-game .top{
  align-items: stretch;
}

#attrt-game .pane{
  min-height: 330px;
  padding: 5px 5px;
}

/* Større tekst i spillerboksene */
#attrt-game .pane h3{
  font-size: clamp(30px, 2.9vw, 38px);
}

#attrt-game .bigscore{
  font-size: clamp(100px, 7.2vw, 150px);
}

#attrt-game .mini{
  font-size: clamp(18px, 1.8vw, 20px);
}

/* På meget små skærme må bokse gerne være lidt mere fleksible */
@media (max-width: 600px){
  #attrt-game .pane{
    flex: 1 1 50%;
    max-width: none;
  }
}

/* FASTSCORE: knapper i siden skal altid være grå */
#attrt-modal #attrt-game .key.fast{
  background: #a4a8a6 !important;
  color: #000 !important;
  border: 1px solid #7b7e7c;
}
