.rt-dart-game-wrapper{background:#000;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  /* 1px luft til bunden + safe-area (iOS) */
  padding:6px 0 calc(1px + env(safe-area-inset-bottom)) 0;
  box-sizing:border-box;
  overflow:hidden;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;

  /* Fyld hele viewporten på alle enheder (løser tablet-bundkant) */
  position:fixed;
  inset:0;
  width:100vw;
  max-width:100vw;
  margin:0;

  /* Støt både klassisk vh og nyere dynamiske vh */
  height:100vh;
  height:100dvh;
  min-height:100vh;
  min-height:100dvh;
}

.rt-dart-game{max-width:100%;margin:0 auto;flex:1;display:flex;flex-direction:column;min-height:0;width:100%}
.rt-dart-game-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}

/* Spillerbokse: fyld næsten hele bredden i hver kolonne og centrer */
.rt-dart-player-card{padding:18px;border-radius:8px;box-shadow:0 0 10px rgba(0,0,0,.6);min-height:205px;width:99%;margin-left:auto;margin-right:auto;box-sizing:border-box;position:relative;background:#000;color:#fff;border:1px solid rgba(255,255,255,.08)}
/* Inaktiv spiller: sort baggrund + hvid tekst (gælder begge kort) */
.rt-dart-player-home,.rt-dart-player-away{background:#000 !important;color:#fff !important}
/* Aktiv spiller: hvid baggrund + sort tekst */
.rt-dart-player-card.rt-dart-active{background:#fff !important;color:#000 !important}
.rt-dart-game-wrapper .rt-dart-player-name{font-size:calc(2.34rem + 4px) !important;font-weight:700;margin-bottom:8px}

/* Vundne legs (kun tal) – badge øverst til højre i spillerboksen */
.rt-dart-legs-badge{
  position:absolute;
  top:14px;
  right:14px;
  height:56px;
  min-width:56px;
  padding:2px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #d4af37;
  border-radius:999px;
  box-sizing:border-box;
  font-size:calc(2.34rem + 3px);
  font-weight:700;
  line-height:1;
}
.rt-dart-player-score{font-size:calc(6.9rem + 5px);font-weight:900;line-height:.95;margin-bottom:10px;font-family:"Family Black","Arial Black",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.rt-dart-game-wrapper .rt-dart-player-stats div{font-size:1.55rem !important;font-size:calc((.85rem + 3px) * 1.5) !important;margin-bottom:3px}
.rt-dart-game-wrapper .rt-dart-stat-last{font-weight:800}
/* Skjul "SIDSTE SCORE"-linjen i spillerboksen (vi viser i stedet de seneste 4 scores under boksen) */
.rt-dart-game-wrapper .rt-dart-player-stats .rt-dart-stat-last{display:none !important;}

/* Skjul "VUNDNE LEGS"-linjen i spillerboksen (vi viser tallet i badge) */
.rt-dart-game-wrapper .rt-dart-player-stats .rt-dart-stat-legs{display:none !important;}

/* Gør "PILE KASTET" lidt tydeligere */
.rt-dart-game-wrapper .rt-dart-player-stats .rt-dart-stat-darts{font-weight:600;}

/* Seneste score (de 3 nyeste pr. spiller)
   Vises UNDER spillerboksene, ved siden af input-display ("0"). */
.rt-dart-input-row{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;margin-bottom:20px;width:99%;margin-left:auto;margin-right:auto;box-sizing:border-box;padding-right:56px;padding-left:56px}
/* Runde-indikator er flyttet op igen (som før) – 10px fra spillerbokse */
.rt-dart-round-row{display:flex;align-items:center;justify-content:center;width:99%;margin:-6px auto 10px auto;box-sizing:border-box}
/* Evt. gammel markup (fra tidligere cache) må ikke påvirke layout */
.rt-dart-round-cell{display:none !important;}
.rt-dart-round-indicator{color:#fff;font-weight:900;font-size:45px !important;letter-spacing:0;line-height:1.0;padding:0;margin:0;font-family:Arial,sans-serif}

.rt-dart-input-center{position:absolute;left:50%;bottom:6px;top:auto;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:min(240px,38vw);z-index:2;pointer-events:none}
.rt-dart-recent-below{display:flex;align-items:center;justify-content:center}
.rt-dart-recent-below-list{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px}
.rt-dart-recent-below-home{grid-column:1}
.rt-dart-recent-below-away{grid-column:2;transform:translateX(10px);padding-left:10px;box-sizing:border-box}
.rt-dart-recent-item{font-family:Arial,sans-serif;font-weight:700;font-size:45px !important;color:#d4af37;text-align:center;line-height:1.1;padding:1px 0}
.rt-dart-recent-item-empty{opacity:0}

/* v0.1.131 – Klik på seneste score for at rette (tast nyt tal + Enter) */
.rt-dart-recent-item[data-editable="1"]{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;}
.rt-dart-recent-item.rt-dart-recent-editing{background:rgba(212,175,55,0.12);border-radius:10px;outline:2px solid #d4af37;outline-offset:3px;padding:2px 8px;line-height:1.0;}
.rt-dart-active{outline:18px solid #d4af37;outline-offset:-12px}
.rt-dart-game-wrapper .rt-dart-player-card.rt-dart-active{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;}
.rt-dart-input-display{text-align:center;font-size:calc(4.4rem + 19px) !important;font-weight:600;margin-bottom:0;width:100%}

/* Lille "liste"-knap ved input-display */
.rt-dart-scorelist-btn{
  position:absolute;
  right:0;
  top:auto;
  bottom:6px;
  transform:none;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#000;
  color:#d4af37;
  border:2px solid #d4af37;
  border-radius:10px;
  cursor:pointer;
  padding:0;
  z-index:3;
}

/* Info-knap (i) på venstre side af input-display */
.rt-dart-scorelist-btn.rt-dart-info-btn{
  left:0;
  right:auto;
}
.rt-dart-scorelist-btn.rt-dart-info-btn{
  left:0;
  right:auto;
}
.rt-dart-scorelist-btn svg{display:block}
.rt-dart-scorelist-btn:hover,
.rt-dart-scorelist-btn:focus{
  background:#d4af37;
  color:#000;
}

/* Keypad layout: 5 kolonner, kvadratiske knapper, 1px sort mellemrum */
.rt-dart-keypad{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;margin-top:auto;margin-bottom:0;width:99%;margin-left:auto;margin-right:auto;box-sizing:border-box;background:#000}

/* Grund-knap (ingen tvungen kvadrat) */
.rt-dart-game-wrapper .rt-dart-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;font-size:2rem;border-radius:0 !important;border:none !important;cursor:pointer;font-weight:600;line-height:1;box-sizing:border-box}

/* Keypad-knapper: kontrollerer selv størrelse (kvadrat-ish) */
.rt-dart-game-wrapper .rt-dart-keypad .rt-dart-btn{width:100%;aspect-ratio:1/1;padding:0 !important}

/* Keypad-knapper: lidt mindre "højde" */
.rt-dart-game-wrapper .rt-dart-keypad .rt-dart-btn{padding-top:0 !important;padding-bottom:0 !important;aspect-ratio:1 / 0.96 !important;font-size:calc(2rem + 6px) !important;line-height:1}

/* Almindelige tal-knapper: guld -> sort/guld på hover */
.rt-dart-game-wrapper .rt-dart-btn-gold{background:#d4af37 !important;color:#000 !important;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.rt-dart-game-wrapper .rt-dart-btn-gold:hover,.rt-dart-game-wrapper .rt-dart-btn-gold:focus{background:#000 !important;color:#d4af37 !important;border:1px solid #d4af37 !important}

/* Fastscore-knapper: grå */
.rt-dart-game-wrapper .rt-dart-btn-fast{background:#444 !important;color:#fff !important;transition:background-color .15s ease,color .15s ease}
.rt-dart-game-wrapper .rt-dart-btn-fast:hover,.rt-dart-game-wrapper .rt-dart-btn-fast:focus{background:#666 !important;color:#fff !important}

/* Tilbage-knap */
.rt-dart-game-wrapper .rt-dart-btn-gray{background:#555 !important;color:#fff !important}
.rt-dart-game-wrapper .rt-dart-btn-gray:hover,.rt-dart-game-wrapper .rt-dart-btn-gray:focus{background:#777 !important;color:#fff !important}

/* BUST-knap: lys guld med mørkegrå ramme */
.rt-dart-game-wrapper .rt-dart-btn-bust{background:#f6e6a8 !important;color:#000 !important;border:1px solid #555 !important;font-weight:700}
.rt-dart-game-wrapper .rt-dart-btn-bust:hover,.rt-dart-game-wrapper .rt-dart-btn-bust:focus{background:#fff5c5 !important}

/* Tomme pladser (bruges ikke længere men beholdes) */
.rt-dart-game-wrapper .rt-dart-btn-empty{visibility:hidden}

/* Indsend/fortryd-knapper – 1/3 højere, kantede hjørner */
.rt-dart-actions{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;margin-top:6px;margin-bottom:0;width:99%;margin-left:auto;margin-right:auto;box-sizing:border-box}

/* Indsæt/fortryd: top/bund padding +3px (10px -> 13px). Brug id'er for at vinde over evt. tema-styles */
.rt-dart-game-wrapper .rt-dart-btn-submit,.rt-dart-game-wrapper .rt-dart-btn-undo{min-width:160px;width:100%;aspect-ratio:auto !important;padding-left:24px !important;padding-right:24px !important;padding-top:13px !important;padding-bottom:13px !important;border-radius:14px !important;border:none !important;font-weight:500 !important;font-size:2rem !important;cursor:pointer;box-sizing:border-box;height:auto !important;min-height:0 !important;column-gap:10px !important;align-self:center}

/* Ekstra sikkert: slå top/bund padding igennem på knapperne via ID */
#rt-dart-submit,
#rt-dart-undo{
  padding-top:13px !important;
  padding-bottom:13px !important;
}
.rt-dart-game-wrapper .rt-dart-btn-submit{background:#d4af37;color:#000}
.rt-dart-game-wrapper .rt-dart-btn-submit:hover,.rt-dart-game-wrapper .rt-dart-btn-submit:focus{background:#000;color:#d4af37;border:1px solid #d4af37 !important}
.rt-dart-game-wrapper .rt-dart-btn-undo{background:#444;color:#fff}
.rt-dart-game-wrapper .rt-dart-btn-undo:hover,.rt-dart-game-wrapper .rt-dart-btn-undo:focus{background:#666}


/* Icons on Fortryd/Indsæt */
#rt-dart-undo::before,
#rt-dart-submit::before{
  content:"";
  width:22px;
  height:22px;
  display:inline-block;
  background-color: currentColor;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
}
#rt-dart-undo::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V2L7 7l5 5V9c3.3 0 6 2.7 6 6 0 1.2-.3 2.3-.9 3.2l1.5 1.5C19.5 18.2 20 16.7 20 15c0-5-4-9-9-10z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V2L7 7l5 5V9c3.3 0 6 2.7 6 6 0 1.2-.3 2.3-.9 3.2l1.5 1.5C19.5 18.2 20 16.7 20 15c0-5-4-9-9-10z'/%3E%3C/svg%3E");
}
#rt-dart-submit::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12 3.4 13.4 9 19l12-12-1.4-1.4z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12 3.4 13.4 9 19l12-12-1.4-1.4z'/%3E%3C/svg%3E");
}

/* === Pause-knap (rund) mellem Fortryd og Indsæt === */
#rt-dart-pause{
  /* Basis-størrelse. JS synkroniserer senere til samme højde som Fortryd/Indsæt. */
  height: 56px;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  align-self: center;
  flex: 0 0 auto;

  padding: 0 !important;
  border-radius: 999px !important;

  background: #cfcfcf !important;
  color: #111 !important;
  border: 2px solid #8f8f8f !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.55);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#rt-dart-pause:hover,
#rt-dart-pause:focus{
  background:#e2e2e2 !important;
  border-color:#bdbdbd !important;
}
#rt-dart-pause .rt-dart-pause-letter{
  font-family: "Family Black","Arial Black",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight: 900;
  font-size: 2.05rem;
  line-height: 1;
  transform: translateY(-1px);
}
@media (max-width:768px){
  #rt-dart-pause{
    height: 52px;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
  }
  #rt-dart-pause .rt-dart-pause-letter{
    font-size: 1.9rem;
  }
}


@media (max-width:768px){
  #rt-dart-undo::before,
  #rt-dart-submit::before{
    width:20px;
    height:20px;
  }
}
/* "+" mellem-score knap */
.rt-dart-game-wrapper .rt-dart-btn-plus{
  width:64px !important; /* justeres præcist via JS til samme størrelse som "0" */
  height:64px !important;
  aspect-ratio:1/1 !important;
  padding:0 !important;
  background:#000 !important;
  color:#d4af37 !important;
  border:3px solid #d4af37 !important;
  font-weight:800;
  font-size:calc(2rem - 3px) !important;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.rt-dart-game-wrapper .rt-dart-btn-plus:hover,
.rt-dart-game-wrapper .rt-dart-btn-plus:focus{
  background:#d4af37 !important;
  color:#000 !important;
}

/* Visuel markering af "mellem-score aktiv" på score-feltet */
.rt-dart-between-score-active{
  color:#d4af37 !important;
  -webkit-text-stroke:1px #000;
  text-shadow:
    -1px 0 #000,
    1px 0 #000,
    0 -1px #000,
    0 1px #000;
}

/* Modal */
.rt-dart-modal{position:fixed;inset:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:9999}
.rt-dart-hidden{display:none}
.rt-dart-modal-content{background:#111;padding:16px;border-radius:10px;max-width:320px;text-align:center;box-shadow:0 0 20px rgba(0,0,0,.8)}
.rt-dart-modal-buttons{display:flex;justify-content:center;gap:10px;margin-top:12px}
.rt-dart-status-message{text-align:center;margin-top:10px;min-height:1.1em;font-size:.9rem}

/* Start-modal (ER SPILLERNE KLAR + 42-reglen) */
#rt-dart-rule42-start-modal .rt-dart-start-modal-content{max-width:460px;width:min(460px,92vw);padding:16px;max-height:86vh;overflow:auto}
#rt-dart-rule42-start-modal .rt-dart-start-title{font-size:1.25rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;margin:0 0 10px;color:#fff}
#rt-dart-rule42-start-modal .rt-dart-start-image{width:100%;height:auto;border-radius:12px;display:block;margin:0 auto 10px;max-height:220px;object-fit:cover}
#rt-dart-rule42-start-modal .rt-dart-start-question{margin:0;font-size:1.02rem;font-weight:800;color:#fff}
#rt-dart-rule42-start-modal .rt-dart-modal-buttons{gap:8px;margin-top:12px;flex-wrap:wrap}
#rt-dart-rule42-start-modal .rt-dart-modal-buttons .rt-dart-btn{min-width:120px;width:auto !important;aspect-ratio:auto !important;padding:10px 16px !important;border-radius:14px !important;font-size:1.02rem !important;font-weight:800}

/* Darts-modal (efter hvert leg): mindre tekst og afrundede gule felter */
#rt-dart-darts-modal .rt-dart-modal-buttons .rt-dart-btn{
  width:auto !important;
  min-width:96px;
  aspect-ratio:auto !important;
  padding:12px 16px !important;
  font-size:1rem !important; /* ca. halvt af keypad */
  border-radius:14px !important;
}

/* LEGUNDO1: tydelig luk-knap til at afbryde pilevalg og rette sidste score. */
#rt-dart-darts-modal .rt-dart-modal-content{position:relative;padding-top:38px}
#rt-dart-darts-modal .rt-dart-darts-modal-close{
  position:absolute;
  top:8px;
  right:10px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:28px;
  line-height:30px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
#rt-dart-darts-modal .rt-dart-darts-modal-close:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (hover:hover) and (pointer:fine){
  #rt-dart-darts-modal .rt-dart-darts-modal-close:hover{background:rgba(255,255,255,.2)}
}

/* Global i iframe: ingen scroll + ingen default margins */
html,body{height:100%;overflow:hidden;margin:0;padding:0}

/* Mobiltilpasning */
@media (max-width:768px){
.rt-dart-game-wrapper{padding:4px 10px 1px 10px}
.rt-dart-game-scores{grid-template-columns:1fr 1fr;gap:8px}
.rt-dart-player-score{font-size:calc(4.5rem + 5px)}
.rt-dart-game-wrapper .rt-dart-btn{font-size:1.8rem}
.rt-dart-game-wrapper .rt-dart-keypad .rt-dart-btn{font-size:calc(1.8rem + 6px) !important;}
.rt-dart-game-wrapper .rt-dart-btn-submit,.rt-dart-game-wrapper .rt-dart-btn-undo{font-size:1.8rem !important;}
.rt-dart-game-wrapper .rt-dart-btn-plus{font-size:calc(1.8rem - 3px) !important;}
.rt-dart-game-wrapper .rt-dart-btn-submit,.rt-dart-game-wrapper .rt-dart-btn-undo{min-width:140px}
}

/* Ensure dart modals are always on top */
.rt-dart-modal{z-index:999999!important;}

/* Stats-modal: mindre og pænere "Gem resultat"-knap */
#rt-dart-stats-modal .rt-dart-modal-buttons{
  margin-top:24px;
  justify-content:center;
}

#rt-dart-save-results{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 32px;
  font-size:20px;
  min-height:auto;
  width:auto;
  max-width:260px;
}

/* === Scoreliste modal (liste over scores pr. tur) === */
#rt-dart-scorelist-modal{
  align-items:stretch;
  justify-content:stretch;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-modal-content{
  background:#000;
  border:3px solid #d4af37;
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  border-radius:0;
  padding:16px 18px 18px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-columns{
  flex:1;
  min-height:0;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-col{
  display:flex;
  flex-direction:column;
  min-height:0;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-col-body{
  flex:1;
  max-height:none;
  height:100%;
  overflow:auto;
}


.rt-dart-scorelist-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-left:56px;
  padding-right:56px;
  margin-bottom:12px;
}
.rt-dart-scorelist-title{
  color:#d4af37;
  font-weight:900;
  font-size:1.25rem;
  letter-spacing:.02em;
}
.rt-dart-scorelist-close{
  position:absolute;
   left:0;
  right:auto;
  top:auto;
  bottom:6px;
  transform:none;
  width:44px;
  height:44px;
  border-radius:10px;
  border:2px solid #d4af37;
  background:#000;
  color:#d4af37;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.rt-dart-scorelist-close:hover,
.rt-dart-scorelist-close:focus{
  background:#d4af37;
  color:#000;
}

.rt-dart-scorelist-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border-top:1px solid #1e1e1e;
}
.rt-dart-scorelist-col{
  padding:12px 10px;
}
.rt-dart-scorelist-col + .rt-dart-scorelist-col{
  border-left:2px solid #1e1e1e;
}
.rt-dart-scorelist-col-name{
  text-align:center;
  color:#d4af37;
  font-weight:800;
  font-size:calc(1.5rem + 3px);
  margin:0 0 10px 0;
}
.rt-dart-scorelist-col-body{
  max-height:60vh;
  overflow:auto;
  padding:6px 0;
}
.rt-dart-scorelist-item{
  font-family:Arial, sans-serif;
  font-weight:700;
  font-size:45px !important;
  color:#fff;
  text-align:center;
  padding:4px 0;
}

/* === Info modal (guide) === */
#rt-dart-info-modal .rt-dart-info-modal-content{
  background:#000;
  border:3px solid #d4af37;
  width:min(720px, 92vw);
  max-width:720px;
  max-height:86vh;
  overflow:hidden;
  padding:16px 18px 18px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  text-align:left;
}

#rt-dart-info-modal .rt-dart-info-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-left:56px;
  padding-right:56px;
  margin-bottom:12px;
}

#rt-dart-info-modal .rt-dart-info-title{
  color:#d4af37;
  font-weight:900;
  font-size:1.25rem;
  letter-spacing:.02em;
  text-align:center;
}

#rt-dart-info-modal .rt-dart-info-body{
  flex:1;
  min-height:0;
  overflow:auto;
  padding-right:2px;
}

#rt-dart-info-modal .rt-dart-info-lead{
  color:#fff;
  font-weight:700;
  margin:0 0 12px 0;
  font-size:1.02rem;
}

#rt-dart-info-modal .rt-dart-info-section{
  border-top:1px solid #1e1e1e;
  padding:12px 0;
}

#rt-dart-info-modal .rt-dart-info-h{
  color:#d4af37;
  font-weight:900;
  margin:0 0 8px 0;
  font-size:1.05rem;
}

#rt-dart-info-modal .rt-dart-info-list{
  margin:0;
  padding:0 0 0 18px;
  color:#fff;
  line-height:1.45;
}

#rt-dart-info-modal .rt-dart-info-list li{margin:6px 0;}

#rt-dart-info-modal .rt-dart-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #d4af37;
  color:#d4af37;
  font-weight:900;
  font-size:0.92rem;
  letter-spacing:.01em;
  margin-right:8px;
  background:rgba(212,175,55,.08);
}

#rt-dart-info-modal .rt-dart-info-note{
  color:#cfcfcf;
  font-weight:600;
  margin:10px 0 0;
  font-size:0.95rem;
}

#rt-dart-info-modal .rt-dart-modal-buttons{
  margin-top:12px;
}

@media (max-width:768px){
  #rt-dart-scorelist-modal{
  align-items:stretch;
  justify-content:stretch;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-modal-content{
  background:#000;
  border:3px solid #d4af37;
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  border-radius:0;
  padding:16px 18px 18px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-columns{
  flex:1;
  min-height:0;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-col{
  display:flex;
  flex-direction:column;
  min-height:0;
}
#rt-dart-scorelist-modal .rt-dart-scorelist-col-body{
  flex:1;
  max-height:none;
  height:100%;
  overflow:auto;
}

  /* På mobil: vis kolonnerne side om side (ikke under hinanden) */
  .rt-dart-scorelist-columns{grid-template-columns:1fr 1fr;}
  .rt-dart-scorelist-col + .rt-dart-scorelist-col{border-left:2px solid #1e1e1e;border-top:none;}
  .rt-dart-scorelist-col-body{max-height:none;height:100%;}
}


/* Juster specifikt 'Gem resultat'-knappen i stats-modal */
#rt-dart-stats-modal .rt-dart-modal-buttons .rt-dart-btn {
  width: 260px;
  max-width: 80%;
  height: 64px;
  padding: 16px 24px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Begræns stats-modalens bredde en smule */
#rt-dart-stats-modal .rt-dart-modal-content {
  max-width: 700px;
}

/* === Tættest midten (42 pile) – pænere modal + dartskive mellem spillernavne === */
#rt-dart-closest-modal .rt-dart-modal-content,
#rt-dart-closest-player-modal .rt-dart-modal-content{
  border:3px solid #d4af37;
  background:radial-gradient(circle at 50% 15%, #1b1b1b 0%, #0b0b0b 55%, #000 100%);
  padding:22px 24px 20px;
  max-width:720px;
}

#rt-dart-closest-modal .rt-dart-modal-content p:first-child{
  margin:0 0 6px 0;
  font-size:1.35rem;
  font-weight:900;
  letter-spacing:.02em;
  color:#d4af37;
}
#rt-dart-closest-modal .rt-dart-modal-content p:nth-child(2){
  margin:0 0 10px 0;
  font-size:1.05rem;
  opacity:.95;
}

#rt-dart-closest-modal .rt-dart-modal-buttons .rt-dart-btn{
  min-width:160px;
  width:auto !important;
  aspect-ratio:auto !important;
  padding:14px 22px !important;
  border-radius:14px !important;
  border:2px solid #d4af37 !important;
  background:#000 !important;
  color:#d4af37 !important;
  font-size:1.15rem !important;
  font-weight:800;
}
#rt-dart-closest-modal .rt-dart-modal-buttons .rt-dart-btn:hover,
#rt-dart-closest-modal .rt-dart-modal-buttons .rt-dart-btn:focus{
  background:#d4af37 !important;
  color:#000 !important;
}

#rt-dart-closest-player-modal .rt-dart-modal-content p{
  margin:0;
  font-size:1.15rem;
  font-weight:800;
  color:#fff;
}

/* Layout: spillerknap – dartskive – spillerknap */
#rt-dart-closest-player-modal .rt-dart-modal-buttons{
  display:grid;
  grid-template-columns:minmax(170px,1fr) 140px minmax(170px,1fr);
  align-items:center;
  gap:18px;
  margin-top:18px;
}

#rt-dart-closest-player-modal .rt-dart-modal-buttons::before{
  content:"";
  grid-column:2;
  grid-row:1;
  width:140px;
  aspect-ratio:1/1;
  border-radius:999px;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20200%22%3E%0A%3Cdefs%3E%0A%20%20%3CradialGradient%20id%3D%22g%22%20cx%3D%2250%25%22%20cy%3D%2235%25%22%20r%3D%2265%25%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23333%22%2F%3E%0A%20%20%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23111%22%2F%3E%0A%20%20%3C%2FradialGradient%3E%0A%3C%2Fdefs%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2298%22%20fill%3D%22url(%23g)%22%20stroke%3D%22%23d4af37%22%20stroke-width%3D%224%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2284%22%20fill%3D%22%23000%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2270%22%20fill%3D%22%231a1a1a%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2256%22%20fill%3D%22%23000%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2242%22%20fill%3D%22%231a1a1a%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2228%22%20fill%3D%22%23000%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2218%22%20fill%3D%22%231b7f3a%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2212%22%20fill%3D%22%23b00020%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%227%22%20fill%3D%22%231b7f3a%22%2F%3E%0A%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%223.5%22%20fill%3D%22%23b00020%22%2F%3E%0A%0A%3C!--%20simple%20dart%20--%3E%0A%3Cg%20transform%3D%22translate(0%2C0)%22%3E%0A%20%20%3Cline%20x1%3D%22132%22%20y1%3D%2240%22%20x2%3D%22104%22%20y2%3D%2296%22%20stroke%3D%22%23c9c9c9%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%2F%3E%0A%20%20%3Cpolygon%20points%3D%22100%2C100%20108%2C96%20104%2C108%22%20fill%3D%22%23c9c9c9%22%2F%3E%0A%20%20%3Cpolygon%20points%3D%22136%2C34%20150%2C28%20146%2C44%22%20fill%3D%22%23d4af37%22%2F%3E%0A%20%20%3Cpolygon%20points%3D%22128%2C46%20142%2C40%20138%2C56%22%20fill%3D%22%23d4af37%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  box-shadow:0 10px 22px rgba(0,0,0,.65);
}

#rt-dart-closest-player-modal #rt-dart-closest-player-home{grid-column:1;grid-row:1;}
#rt-dart-closest-player-modal #rt-dart-closest-player-away{grid-column:3;grid-row:1;}

#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn{
  width:100% !important;
  aspect-ratio:1/1 !important;
  padding:10px 12px !important;
  border-radius:16px !important;
  border:3px solid #d4af37 !important;
  background:#000 !important;
  color:#d4af37 !important;
  font-size:1.25rem !important;
  font-weight:900;
  line-height:1.15;
  box-shadow:0 10px 18px rgba(0,0,0,.55);
}
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:hover,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:focus{
  background:#d4af37 !important;
  color:#000 !important;
}

/* Mobil: stack knapper med dartskive i midten */
@media (max-width:600px){
  #rt-dart-closest-player-modal .rt-dart-modal-content{max-width:92vw;}
  #rt-dart-closest-player-modal .rt-dart-modal-buttons{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:14px;
  }
  #rt-dart-closest-player-modal .rt-dart-modal-buttons::before{
    grid-column:1;
    grid-row:2;
    width:120px;
    margin:0 auto;
  }
  #rt-dart-closest-player-modal #rt-dart-closest-player-home{grid-column:1;grid-row:1;}
  #rt-dart-closest-player-modal #rt-dart-closest-player-away{grid-column:1;grid-row:3;}
}


/* -------------------------------------------------------
   Micro-animations (UX only)
-------------------------------------------------------- */
@keyframes rtDartScorePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.rt-dart-score-pop {
  animation: rtDartScorePop 260ms ease-out;
  will-change: transform;
}

@keyframes rtDartLegWinGlow {
  0% {
    box-shadow: 0 0 0 rgba(212,175,55,0);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 24px rgba(212,175,55,0.35);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 rgba(212,175,55,0);
    transform: scale(1);
  }
}
.rt-dart-leg-win {
  animation: rtDartLegWinGlow 900ms ease-out;
  will-change: transform, box-shadow;
}

@keyframes rtDartTrophyPop {
  0% { transform: translateY(6px) scale(0.8); opacity: 0; }
  30% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-2px) scale(1); opacity: 0; }
}
#rt-dart-stats-modal .rt-dart-modal-content.rt-dart-trophy-pop {
  position: relative;
}
#rt-dart-stats-modal .rt-dart-modal-content.rt-dart-trophy-pop::before {
  content: "🏆";
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  animation: rtDartTrophyPop 1200ms ease-out;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rt-dart-score-pop,
  .rt-dart-leg-win,
  #rt-dart-stats-modal .rt-dart-modal-content.rt-dart-trophy-pop::before {
    animation: none !important;
  }
}

/* -------------------------------------------------------
   UX: Deaktiver hover/active farveskift (for at undgå forvirring)
   Vi bevarer kun et diskret focus-outline (focus-visible).
-------------------------------------------------------- */
.rt-dart-game-wrapper .rt-dart-btn,
.rt-dart-game-wrapper .rt-dart-scorelist-btn,
.rt-dart-game-wrapper .rt-dart-scorelist-close,
.rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn{
  transition:none !important;
  -webkit-tap-highlight-color:transparent;
}

.rt-dart-game-wrapper .rt-dart-btn:focus,
.rt-dart-game-wrapper .rt-dart-scorelist-btn:focus,
.rt-dart-game-wrapper .rt-dart-scorelist-close:focus{
  outline:none !important;
}

.rt-dart-game-wrapper .rt-dart-btn:focus-visible,
.rt-dart-game-wrapper .rt-dart-scorelist-btn:focus-visible,
.rt-dart-game-wrapper .rt-dart-scorelist-close:focus-visible,
.rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn:focus-visible{
  outline:2px solid #d4af37 !important;
  outline-offset:2px !important;
}

/* Keypad/tastatur (guld) */
.rt-dart-game-wrapper .rt-dart-btn-gold:hover,
.rt-dart-game-wrapper .rt-dart-btn-gold:focus,
.rt-dart-game-wrapper .rt-dart-btn-gold:active{
  background:#d4af37 !important;
  color:#000 !important;
  border:none !important;
}

/* Fastscore (grå) */
.rt-dart-game-wrapper .rt-dart-btn-fast:hover,
.rt-dart-game-wrapper .rt-dart-btn-fast:focus,
.rt-dart-game-wrapper .rt-dart-btn-fast:active{
  background:#444 !important;
  color:#fff !important;
}

/* Tilbage (mørkegrå) */
.rt-dart-game-wrapper .rt-dart-btn-gray:hover,
.rt-dart-game-wrapper .rt-dart-btn-gray:focus,
.rt-dart-game-wrapper .rt-dart-btn-gray:active{
  background:#555 !important;
  color:#fff !important;
}

/* BUST */
.rt-dart-game-wrapper .rt-dart-btn-bust:hover,
.rt-dart-game-wrapper .rt-dart-btn-bust:focus,
.rt-dart-game-wrapper .rt-dart-btn-bust:active{
  background:#f6e6a8 !important;
  color:#000 !important;
  border:1px solid #555 !important;
}

/* Indsæt/Fortryd */
.rt-dart-game-wrapper .rt-dart-btn-submit:hover,
.rt-dart-game-wrapper .rt-dart-btn-submit:focus,
.rt-dart-game-wrapper .rt-dart-btn-submit:active{
  background:#d4af37 !important;
  color:#000 !important;
  border:none !important;
}
.rt-dart-game-wrapper .rt-dart-btn-undo:hover,
.rt-dart-game-wrapper .rt-dart-btn-undo:focus,
.rt-dart-game-wrapper .rt-dart-btn-undo:active{
  background:#444 !important;
  color:#fff !important;
}

/* "+" */
.rt-dart-game-wrapper .rt-dart-btn-plus:hover,
.rt-dart-game-wrapper .rt-dart-btn-plus:focus,
.rt-dart-game-wrapper .rt-dart-btn-plus:active{
  background:#000 !important;
  color:#d4af37 !important;
}

/* Scoreliste-knap (3 streger) + kryds */
.rt-dart-game-wrapper .rt-dart-scorelist-btn:hover,
.rt-dart-game-wrapper .rt-dart-scorelist-btn:focus,
.rt-dart-game-wrapper .rt-dart-scorelist-btn:active{
  background:#000 !important;
  color:#d4af37 !important;
  border-color:#d4af37 !important;
}
.rt-dart-game-wrapper .rt-dart-scorelist-close:hover,
.rt-dart-game-wrapper .rt-dart-scorelist-close:focus,
.rt-dart-game-wrapper .rt-dart-scorelist-close:active{
  background:#000 !important;
  color:#d4af37 !important;
}

/* Modal-knapper (tættest på etc.) */
.rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn:hover,
.rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn:focus,
.rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn:active{
  background:inherit !important;
  color:inherit !important;
}

/* Overstyr specifikke modal-hover regler med høj specificitet */
#rt-dart-closest-modal .rt-dart-modal-buttons .rt-dart-btn:hover,
#rt-dart-closest-modal .rt-dart-modal-buttons .rt-dart-btn:focus,
#rt-dart-closest-modal .rt-dart-modal-buttons .rt-dart-btn:active,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:hover,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:focus,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:active{
  background:#000 !important;
  color:#d4af37 !important;
}

/* ===== Info-modal ved 39 pile (Sidste 3 pile -> Bull) ===== */
#rt-dart-last3bull-modal{
  background: rgba(0,0,0,0.82);
}

#rt-dart-last3bull-modal .rt-dart-last3bull-content{
  width: calc(100% - 24px);
  max-width: 560px;
  background: #141414;
  border: 2px solid #d4af37;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

#rt-dart-last3bull-modal .rt-dart-last3bull-hero{
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 12px;
}

#rt-dart-last3bull-modal .rt-dart-last3bull-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(212,175,55,0.85);
  border-radius: 16px;
  background: rgba(212,175,55,0.08);
}

#rt-dart-last3bull-modal .rt-dart-last3bull-title{
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-align: left;
}

#rt-dart-last3bull-modal .rt-dart-last3bull-sub{
  font-size: 18px;
  font-weight: 600;
  color: #d4af37;
  line-height: 1.15;
  margin-top: 6px;
  text-align: left;
}

/* På smalle skærme: ikon over tekst */
@media (max-width: 520px){
  #rt-dart-last3bull-modal .rt-dart-last3bull-hero{
    flex-direction: column;
    text-align: center;
  }
  #rt-dart-last3bull-modal .rt-dart-last3bull-title,
  #rt-dart-last3bull-modal .rt-dart-last3bull-sub{
    text-align: center;
  }
}

/* ====================================================
   v0.1.100 – Visuel finpudsning af modaler
   - Rundere OK-knap i 39->Bull info-modal
   - 42-dart "tættest midten" modal i samme sort/guld tema
==================================================== */

/* OK-knap: rundere hjørner + mere "knap"-form */
#rt-dart-last3bull-modal #rt-dart-last3bull-ok{
  border-radius: 22px !important;
  aspect-ratio: auto !important;
  padding: 14px 32px !important;
}

/* ===== 42-dart modal (tættest midten) – tema-overhaling ===== */
#rt-dart-closest-player-modal,
#rt-dart-closest-modal{
  background: rgba(0,0,0,0.82);
}

/* Indholdskort */
#rt-dart-closest-player-modal .rt-dart-modal-content,
#rt-dart-closest-modal .rt-dart-modal-content{
  width: calc(100% - 24px);
  max-width: 620px;
  background: #141414;
  border: 2px solid #d4af37;
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

/* Dart+Bull ikon over titel (pseudo-element, så vi ikke skal ændre HTML) */
#rt-dart-closest-player-modal .rt-dart-modal-content::before,
#rt-dart-closest-modal .rt-dart-modal-content::before{
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border: 1px solid rgba(212,175,55,0.85);
  border-radius: 16px;
  background: rgba(212,175,55,0.08);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2064%2064%22%3E%3Ccircle%20cx=%2232%22%20cy=%2232%22%20r=%2226%22%20fill=%22none%22%20stroke=%22%23d4af37%22%20stroke-width=%223%22/%3E%3Ccircle%20cx=%2232%22%20cy=%2232%22%20r=%2217%22%20fill=%22none%22%20stroke=%22%23d4af37%22%20stroke-width=%222%22%20opacity=%220.9%22/%3E%3Ccircle%20cx=%2232%22%20cy=%2232%22%20r=%228%22%20fill=%22%23d4af37%22%20opacity=%220.95%22/%3E%3Ccircle%20cx=%2232%22%20cy=%2232%22%20r=%224%22%20fill=%22%23111%22%20opacity=%220.95%22/%3E%3Cg%20transform=%22translate(10%2C10)%20rotate(-25%2022%2022)%22%3E%3Cpath%20d=%22M6%2018%20L14%2022%20L6%2026%20Z%22%20fill=%22%23ffffff%22%20opacity=%220.95%22/%3E%3Cpath%20d=%22M10%2016%20L18%2022%20L10%2028%20Z%22%20fill=%22%23d4af37%22%20opacity=%220.95%22/%3E%3Crect%20x=%2214%22%20y=%2220%22%20width=%2224%22%20height=%224%22%20rx=%222%22%20fill=%22%23ffffff%22%20opacity=%220.95%22/%3E%3Crect%20x=%2222%22%20y=%2219%22%20width=%228%22%20height=%226%22%20rx=%222%22%20fill=%22%23d4af37%22%20opacity=%220.95%22/%3E%3Cpath%20d=%22M38%2020%20L46%2022%20L38%2024%20Z%22%20fill=%22%23ffffff%22%20opacity=%220.95%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Titeltekst */
#rt-dart-closest-player-modal .rt-dart-modal-content p,
#rt-dart-closest-modal .rt-dart-modal-content p{
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.12;
}

/* Slå den gamle dartskive-mellem-knapperne fra */
#rt-dart-closest-player-modal .rt-dart-modal-buttons::before{
  content: none !important;
  display: none !important;
}

/* Knap-layout: 2 pæne knapper ved siden af hinanden */
#rt-dart-closest-player-modal .rt-dart-modal-buttons{
  display: flex !important;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Knapper: sort + guld, runde hjørner, ingen hover-farveskift */
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:hover,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:focus,
#rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn:active{
  min-width: 220px;
  width: auto !important;
  max-width: 100%;
  aspect-ratio: auto !important;
  padding: 14px 22px !important;
  border-radius: 22px !important;
  border: 2px solid #d4af37 !important;
  background: #000 !important;
  color: #d4af37 !important;
  font-size: 24px !important;
  font-weight: 800;
  line-height: 1.05;
  box-shadow: 0 10px 18px rgba(0,0,0,.55);
}

/* Mobil: stack knapper */
@media (max-width: 520px){
  #rt-dart-closest-player-modal .rt-dart-modal-buttons{
    flex-direction: column;
    gap: 10px;
  }
  #rt-dart-closest-player-modal .rt-dart-modal-buttons .rt-dart-btn{
    width: 100% !important;
    min-width: 0;
  }
}

/* ==========================================================
   v0.1.104 – Slimt tastatur + flere "seneste scores" (nyeste øverst)
   ========================================================== */

/* Bund-klynge: actions + tastatur klistret til bunden */
.rt-dart-bottom{
  margin-top:auto;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Actions: kun 2 knapper (Fortryd / Indsæt) */
.rt-dart-actions.rt-dart-actions-two{
  /* 3 kolonner: Fortryd | Pause | Indsæt */
  grid-template-columns:1fr auto 1fr !important;
}

/* Når vi har 3 knapper, må Fortryd/Indsæt gerne "shrinke" på små skærme */
.rt-dart-actions.rt-dart-actions-two .rt-dart-btn-submit,
.rt-dart-actions.rt-dart-actions-two .rt-dart-btn-undo{
  min-width: 0 !important;
}

/* Tastatur wrapper (nu kolonne med 3 sektioner) */
.rt-dart-game-wrapper .rt-dart-keypad{
  display:flex !important;
  flex-direction:column;
  gap:10px;
  width:99%;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
  background:transparent !important;
  --rt-key-h: clamp(52px, 7.5vh, 70px);
  --rt-key-h-quick: clamp(58px, 8vh, 78px);
}

.rt-dart-keypad-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  width:100%;
}

.rt-dart-keypad-row{
  display:grid;
  gap:10px;
  width:100%;
}

.rt-dart-keypad-row-special{grid-template-columns:repeat(5,1fr);}
.rt-dart-keypad-row-quick{grid-template-columns:repeat(3,1fr);}

/* x2 + x3 + + samlet i samme plads som før (2 knapper -> 3 knapper) */
.rt-dart-multigroup{
  display:flex;
  gap:10px;
  grid-column: span 2;
  width:100%;
}
.rt-dart-multigroup .rt-dart-btn{
  flex:1 1 0;
  min-width:0;
  width:auto !important;
}


/* Slim knapper + lidt skygge (som reference-billedet) */
.rt-dart-game-wrapper .rt-dart-keypad .rt-dart-btn{
  width:100% !important;
  height:var(--rt-key-h) !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  padding:0 !important;
  border-radius:14px !important;
  box-shadow:0 4px 0 rgba(0,0,0,.35), 0 12px 18px rgba(0,0,0,.35);
}

/* Store scores en anelse højere */
.rt-dart-game-wrapper .rt-dart-keypad-row-quick .rt-dart-btn{
  height:var(--rt-key-h-quick) !important;
  font-size:calc(2rem + 6px) !important;
  font-weight:800;
}

/* Plus-knap: fjern gamle "kvadrat"-styles */
.rt-dart-game-wrapper .rt-dart-keypad .rt-dart-btn-plus{
  width:100% !important;
  height:var(--rt-key-h) !important;
  aspect-ratio:auto !important;
}

/* Quick score farver (kun visuelt) */
.rt-dart-game-wrapper .rt-dart-btn-quick-green{background:#1f7a3a !important;color:#fff !important;}
.rt-dart-game-wrapper .rt-dart-btn-quick-red{background:#a10d18 !important;color:#fff !important;}

/* "Seneste scores" under spillerbokse (5 i alt, nyeste øverst) */
.rt-dart-recent-below-list{min-height:340px !important;}
.rt-dart-recent-item{line-height:1.0 !important;padding:0 !important;}




/* === Pause modal (lækkert look som resten af spillet) === */
#rt-dart-pause-modal .rt-dart-pause-modal-content{
  border: 3px solid #d4af37;
  background: radial-gradient(circle at 50% 15%, #1b1b1b 0%, #0b0b0b 55%, #000 100%);
  padding: 22px 22px 20px;
  max-width: 520px;
  width: min(520px, 92vw);
  box-shadow: 0 0 26px rgba(0,0,0,.85);
}
#rt-dart-pause-modal .rt-dart-pause-title{
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: #d4af37;
  text-transform: uppercase;
}
#rt-dart-pause-modal .rt-dart-pause-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 6px 0 2px;
}
#rt-dart-pause-modal .rt-dart-pause-illustration svg{
  width: min(320px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}
#rt-dart-pause-end{
  width: 260px;
  max-width: 86%;
  height: 64px;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width:768px){
  #rt-dart-pause-modal .rt-dart-pause-modal-content{padding:18px 16px 16px;}
  #rt-dart-pause-modal .rt-dart-pause-title{font-size:1.45rem;}
  #rt-dart-pause-end{height:60px;font-size:18px;}
}



/* === UI TWEAK: reduce vertical size by 2px top/bottom === */
:root{
  --rt-key-h: clamp(48px, 7.0vh, 66px);
  --rt-key-h-quick: clamp(54px, 7.5vh, 74px);
}

/* Action buttons */
.rt-dart-btn-submit,
.rt-dart-game-wrapper .rt-dart-btn-undo{
  padding-top:11px !important;
  padding-bottom:11px !important;
}

/* Modal buttons */
.rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn{
  padding-top:12px !important;
  padding-bottom:12px !important;
}


/* === PREMIUM: Pause + Info modals (animation + glass feel) === */
.rt-dart-modal-premium{
  /* keep flex behavior from .rt-dart-modal */
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.10) 0%, rgba(0,0,0,0) 42%),
    rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .18s ease;
}
.rt-dart-modal-premium.rt-premium-visible{ opacity: 1; }

.rt-dart-modal-premium .rt-dart-modal-content{
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: transform .18s ease, opacity .18s ease;
  will-change: transform, opacity;
}
.rt-dart-modal-premium.rt-premium-visible .rt-dart-modal-content{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* content polish */
.rt-dart-modal-content-premium{
  border-radius: 22px !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,.75),
    0 0 0 1px rgba(212,175,55,.20) inset !important;
  position: relative;
  overflow: hidden;
}
.rt-dart-modal-content-premium:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:120px;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,.22) 0%, rgba(0,0,0,0) 70%);
  pointer-events:none;
  opacity:.9;
}

/* Pause modal tweaks */
#rt-dart-pause-modal .rt-dart-pause-modal-content{
  border-color: rgba(212,175,55,.85);
}
#rt-dart-pause-modal .rt-dart-pause-title{
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}
#rt-dart-pause-modal .rt-dart-pause-sub{
  margin:-4px 0 10px 0;
  color:#fff;
  font-weight:800;
  opacity:.9;
  letter-spacing:.01em;
}
#rt-dart-pause-modal .rt-dart-pause-illustration svg{
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.65));
}

/* Info modal polish */
#rt-dart-info-modal .rt-dart-info-modal-content{
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.12) 0%, rgba(0,0,0,0) 52%),
    #000;
  border-color: rgba(212,175,55,.85);
}
#rt-dart-info-modal .rt-dart-info-lead{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,175,55,.16);
  padding: 10px 12px;
  border-radius: 14px;
}
#rt-dart-info-modal .rt-dart-info-section{
  border-top: none;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,175,55,.14);
  border-radius: 14px;
  padding: 12px 12px;
  margin: 10px 0;
}
#rt-dart-info-modal .rt-dart-info-h{
  display:flex;
  align-items:center;
  gap:10px;
}
#rt-dart-info-modal .rt-dart-info-h:before{
  content:"";
  width:10px;height:10px;border-radius:999px;
  background:#d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
#rt-dart-info-modal .rt-dart-info-body{
  padding-right: 6px;
}
#rt-dart-info-modal .rt-dart-info-body::-webkit-scrollbar{ width: 10px; }
#rt-dart-info-modal .rt-dart-info-body::-webkit-scrollbar-track{ background: rgba(255,255,255,.05); border-radius: 999px; }
#rt-dart-info-modal .rt-dart-info-body::-webkit-scrollbar-thumb{ background: rgba(212,175,55,.35); border-radius: 999px; border: 2px solid rgba(0,0,0,.6); }

/* === Mobile-only: 1px lavere (top+bund) på knapper === */
@media (max-width: 640px){
  :root{
    --rt-key-h: clamp(46px, 6.8vh, 64px);
    --rt-key-h-quick: clamp(52px, 7.2vh, 72px);
  }

  /* Action buttons */
  .rt-dart-btn-submit,
  .rt-dart-game-wrapper .rt-dart-btn-undo{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }

  /* Modal buttons */
  .rt-dart-game-wrapper .rt-dart-modal-buttons .rt-dart-btn{
    padding-top:11px !important;
    padding-bottom:11px !important;
  }

  /* Scorelist + info buttons at the sides */
  .rt-dart-scorelist-btn{
    width:42px;
    height:42px;
  }
}

/* ==========================================================
   v0.1.123 – Force font-size on recent-score columns (not modal)
   ========================================================== */
.rt-dart-game-wrapper .rt-dart-recent-below-list .rt-dart-recent-item{
  font-size:45px !important;
}

/* v0.1.125 – Hard force font size 45px (recent columns + scorelist modal) */
.rt-dart-game-wrapper .rt-dart-recent-item,
#rt-dart-scorelist-modal .rt-dart-scorelist-item{
  font-size:45px !important;
}



/* v0.1.126 – Round indicator + 9 recent + font tweaks */


/* ==========================================================
   D51A / v0.1.140 – Responsive foundation for mindre tablets
   ----------------------------------------------------------
   Kun layoutgrundlag: ingen ændring af dartregler, scorelogik
   eller resultatgemning. Målet er at undgå at tastatur/knapper
   klippes på mindre tablets og samtidig forberede mobilvisning.
   ========================================================== */
.rt-dart-game-wrapper{
  --rt-d51-safe-bottom: env(safe-area-inset-bottom, 0px);
  --rt-d51-edge: clamp(6px, 1.2vw, 14px);
  --rt-d51-gap: clamp(6px, 1.0vh, 12px);
  padding: var(--rt-d51-edge) var(--rt-d51-edge) calc(4px + var(--rt-d51-safe-bottom)) var(--rt-d51-edge) !important;
}
.rt-dart-game{
  min-height:0 !important;
  height:100% !important;
  overflow:hidden !important;
}
.rt-dart-bottom{
  flex:0 0 auto !important;
  gap:clamp(6px, 1.0vh, 10px) !important;
  padding-bottom: max(0px, var(--rt-d51-safe-bottom));
}
.rt-dart-game-scores{
  flex:0 0 auto;
  margin-bottom:clamp(4px, .8vh, 12px) !important;
  gap:clamp(7px, 1.2vw, 12px) !important;
}
.rt-dart-round-row{
  flex:0 0 auto;
  margin:clamp(-4px, -.4vh, 0px) auto clamp(3px, .55vh, 8px) auto !important;
}
.rt-dart-input-row{
  flex:1 1 auto !important;
  min-height:0 !important;
  margin-bottom:clamp(3px, .65vh, 10px) !important;
  padding-left:clamp(42px, 5vw, 56px) !important;
  padding-right:clamp(42px, 5vw, 56px) !important;
  align-items:center !important;
  overflow:hidden !important;
}
.rt-dart-recent-below-list{
  min-height:0 !important;
  height:100% !important;
  max-height:100% !important;
  overflow:hidden !important;
}
.rt-dart-input-center{
  bottom:clamp(0px, .8vh, 6px) !important;
}
.rt-dart-keypad{
  --rt-key-h: clamp(42px, 6.4dvh, 66px) !important;
  --rt-key-h-quick: clamp(46px, 6.8dvh, 72px) !important;
  gap:clamp(5px, .9vh, 10px) !important;
}
.rt-dart-keypad-grid,
.rt-dart-keypad-row,
.rt-dart-multigroup{
  gap:clamp(5px, .9vh, 10px) !important;
}
.rt-dart-actions{
  gap:clamp(6px, 1.1vw, 12px) !important;
  margin-top:0 !important;
}
.rt-dart-game-wrapper .rt-dart-btn-submit,
.rt-dart-game-wrapper .rt-dart-btn-undo{
  min-height:clamp(48px, 6.6dvh, 68px) !important;
  padding-top:clamp(8px, 1.3vh, 12px) !important;
  padding-bottom:clamp(8px, 1.3vh, 12px) !important;
}
.rt-dart-game-wrapper .rt-dart-btn-pause{
  flex:0 0 auto !important;
}

/* Mindre tablets / landscape under ca. 900px højde: kompakt fundament */
@media (max-height: 900px), (max-width: 980px){
  .rt-dart-game-wrapper{
    --rt-d51-edge: clamp(4px, .9vw, 10px);
    padding-top: max(4px, env(safe-area-inset-top, 0px)) !important;
  }
  .rt-dart-player-card{
    min-height:clamp(128px, 21dvh, 190px) !important;
    padding:clamp(10px, 1.5dvh, 16px) clamp(10px, 1.5vw, 16px) !important;
  }
  .rt-dart-game-wrapper .rt-dart-player-name{
    font-size:clamp(1.85rem, 4.3dvh, 3.0rem) !important;
    margin-bottom:clamp(2px, .45dvh, 7px) !important;
    max-width:calc(100% - 76px);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .rt-dart-player-score{
    font-size:clamp(4.8rem, 11.8dvh, 7.3rem) !important;
    margin-bottom:clamp(2px, .45dvh, 8px) !important;
  }
  .rt-dart-legs-badge{
    top:clamp(8px, 1.2dvh, 14px) !important;
    right:clamp(8px, 1.2vw, 14px) !important;
    height:clamp(42px, 6.5dvh, 56px) !important;
    min-width:clamp(42px, 6.5dvh, 56px) !important;
    font-size:clamp(1.7rem, 4.2dvh, 2.8rem) !important;
    padding-left:clamp(10px, 1.4vw, 16px) !important;
    padding-right:clamp(10px, 1.4vw, 16px) !important;
  }
  .rt-dart-game-wrapper .rt-dart-player-stats div{
    font-size:clamp(1.0rem, 2.6dvh, 1.9rem) !important;
    line-height:1.08 !important;
    margin-bottom:1px !important;
  }
  .rt-dart-round-indicator{
    font-size:clamp(30px, 6.5dvh, 45px) !important;
  }
  .rt-dart-input-display{
    font-size:clamp(4.2rem, 13dvh, 7.6rem) !important;
    line-height:.92 !important;
  }
  .rt-dart-recent-item{
    font-size:clamp(25px, 5.0dvh, 45px) !important;
  }
  .rt-dart-scorelist-btn{
    width:clamp(38px, 5.7dvh, 44px) !important;
    height:clamp(38px, 5.7dvh, 44px) !important;
    bottom:clamp(0px, .55dvh, 6px) !important;
  }
  .rt-dart-game-wrapper .rt-dart-btn-submit,
  .rt-dart-game-wrapper .rt-dart-btn-undo{
    font-size:clamp(1.35rem, 3.5dvh, 2rem) !important;
  }
  .rt-dart-game-wrapper .rt-dart-keypad .rt-dart-btn{
    font-size:clamp(1.55rem, 4.1dvh, 2.45rem) !important;
    border-radius:clamp(9px, 1.8dvh, 14px) !important;
  }
}

/* Meget lave tablets / små tablets: behold hele tastaturet synligt */
@media (max-height: 760px){
  .rt-dart-game-scores{margin-bottom:4px !important;}
  .rt-dart-player-card{min-height:clamp(112px, 19dvh, 154px) !important;}
  .rt-dart-player-score{font-size:clamp(4.1rem, 10.6dvh, 6.1rem) !important;}
  .rt-dart-game-wrapper .rt-dart-player-name{font-size:clamp(1.55rem, 3.7dvh, 2.45rem) !important;}
  .rt-dart-game-wrapper .rt-dart-player-stats div{font-size:clamp(.92rem, 2.25dvh, 1.35rem) !important;}
  .rt-dart-round-row{margin-top:-2px !important;margin-bottom:2px !important;}
  .rt-dart-input-row{margin-bottom:2px !important;}
  .rt-dart-input-display{font-size:clamp(3.7rem, 11.0dvh, 6.2rem) !important;}
  .rt-dart-keypad{--rt-key-h:clamp(38px, 6.0dvh, 54px) !important;--rt-key-h-quick:clamp(40px, 6.3dvh, 58px) !important;gap:5px !important;}
  .rt-dart-keypad-grid,.rt-dart-keypad-row,.rt-dart-multigroup{gap:5px !important;}
  .rt-dart-game-wrapper .rt-dart-btn-submit,
  .rt-dart-game-wrapper .rt-dart-btn-undo{min-height:clamp(42px, 6.2dvh, 56px) !important;}
}

/* Mobil/portrait foundation: forbereder spilbarhed uden at ændre regler */
@media (max-width: 620px){
  .rt-dart-game-wrapper{padding-left:6px !important;padding-right:6px !important;}
  .rt-dart-game-scores{gap:6px !important;}
  .rt-dart-player-card{width:100% !important;min-height:clamp(118px, 19dvh, 170px) !important;outline-width:10px !important;outline-offset:-8px !important;}
  .rt-dart-game-wrapper .rt-dart-player-name{font-size:clamp(1.45rem, 6.0vw, 2.1rem) !important;max-width:calc(100% - 54px);}
  .rt-dart-player-score{font-size:clamp(3.8rem, 17vw, 5.7rem) !important;}
  .rt-dart-legs-badge{height:42px !important;min-width:42px !important;font-size:1.8rem !important;}
  .rt-dart-game-wrapper .rt-dart-player-stats div{font-size:clamp(.85rem, 3.3vw, 1.1rem) !important;}
  .rt-dart-round-indicator{font-size:clamp(26px, 7vw, 38px) !important;}
  .rt-dart-input-row{padding-left:40px !important;padding-right:40px !important;}
  .rt-dart-input-display{font-size:clamp(3.4rem, 18vw, 6.0rem) !important;}
  .rt-dart-keypad{--rt-key-h:clamp(46px, 7.0dvh, 60px) !important;--rt-key-h-quick:clamp(48px, 7.2dvh, 64px) !important;}
}

/* D51A: JS kan sætte disse klasser, men CSS virker også uden JS. */
.rt-dart-game-wrapper.rt-dart-compact-tablet .rt-dart-recent-below-list,
.rt-dart-game-wrapper.rt-dart-phone-mode .rt-dart-recent-below-list{
  min-height:0 !important;
}


/* D58AJ: Spiller-statistik i slutmodalen efter Spil-flow */
#rt-dart-stats-modal .rt-dart-modal-content {
  width: min(700px, 94vw);
}
#rt-dart-stats-modal .rt-dart-stats-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
#rt-dart-stats-modal .rt-dart-stats-table th,
#rt-dart-stats-modal .rt-dart-stats-table td {
  padding: 8px 9px;
  white-space: nowrap;
}
#rt-dart-stats-modal .rt-dart-stats-winner-row td {
  font-weight: 800;
}
@media (max-width: 520px) {
  #rt-dart-stats-modal .rt-dart-modal-content {
    width: 94vw;
    padding: 14px 10px;
  }
  #rt-dart-stats-modal .rt-dart-stats-table th,
  #rt-dart-stats-modal .rt-dart-stats-table td {
    padding: 6px 5px;
    font-size: 12px;
  }
}


/* D58AK: Spillerkort i slutmodalen efter Spil-flow. To kompakte kort i stedet for bred tabel. */
#rt-dart-stats-modal .rt-dart-modal-content {
  width: min(760px, 94vw);
  max-width: 760px;
}
#rt-dart-stats-modal .rt-dart-stats-table {
  display: none !important;
}
#rt-dart-stats-modal .rt-dart-stats-cards {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0 18px;
  align-items: start;
}
#rt-dart-stats-modal .rt-dart-stats-player-card {
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
#rt-dart-stats-modal .rt-dart-stats-player-header {
  padding: 10px 12px;
  background: rgba(212,175,55,.16);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(212,175,55,.45);
  word-break: break-word;
}
#rt-dart-stats-modal .rt-dart-stats-match-winner .rt-dart-stats-player-header {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(212,175,55,.32), rgba(212,175,55,.15));
}
#rt-dart-stats-modal .rt-dart-stats-leg-box {
  padding: 10px 12px 11px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
#rt-dart-stats-modal .rt-dart-stats-leg-box:last-child {
  border-bottom: 0;
}
#rt-dart-stats-modal .rt-dart-stats-leg-title {
  color: #d4af37;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
#rt-dart-stats-modal .rt-dart-stats-value-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #ffffff;
  padding: 1px 0;
}
#rt-dart-stats-modal .rt-dart-stats-value-line strong {
  color: #d4af37;
  font-weight: 800;
}
#rt-dart-stats-modal .rt-dart-stats-value-line span {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}
#rt-dart-stats-modal .rt-dart-stats-leg-winner {
  background: rgba(212,175,55,.055);
}
#rt-dart-stats-modal .rt-dart-stats-leg-winner .rt-dart-stats-leg-title,
#rt-dart-stats-modal .rt-dart-stats-luk-line span {
  color: #ffffff;
}
@media (max-width: 560px) {
  #rt-dart-stats-modal .rt-dart-modal-content {
    width: 94vw;
    padding: 14px 10px;
  }
  #rt-dart-stats-modal .rt-dart-stats-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #rt-dart-stats-modal .rt-dart-stats-player-header {
    font-size: 15px;
  }
  #rt-dart-stats-modal .rt-dart-stats-value-line {
    font-size: 13px;
  }
}


/* D58AL: Slutmodal polish - større læsbar statistik, men mindre Gem resultat-knap. */
#rt-dart-stats-modal .rt-dart-modal-content > p {
  font-size: calc(1rem + 3px) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
}
#rt-dart-stats-modal .rt-dart-stats-player-header {
  font-size: 19px !important;
  line-height: 1.25 !important;
  padding: 12px 14px !important;
}
#rt-dart-stats-modal .rt-dart-stats-leg-title {
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
#rt-dart-stats-modal .rt-dart-stats-value-line {
  font-size: 16px !important;
  line-height: 1.45 !important;
  padding: 2px 0 !important;
}
#rt-dart-stats-modal .rt-dart-stats-value-line strong,
#rt-dart-stats-modal .rt-dart-stats-value-line span {
  font-size: inherit !important;
}
#rt-dart-stats-modal .rt-dart-stats-leg-box {
  padding: 12px 14px 13px !important;
}
#rt-dart-save-results,
#rt-dart-stats-modal .rt-dart-modal-buttons #rt-dart-save-results,
.rt-dart-game-wrapper #rt-dart-stats-modal .rt-dart-modal-buttons #rt-dart-save-results.rt-dart-btn {
  width: auto !important;
  max-width: 210px !important;
  min-width: 160px !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 9px 22px !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  border-radius: 14px !important;
}
#rt-dart-stats-modal .rt-dart-modal-buttons {
  margin-top: 14px !important;
}
@media (max-width: 560px) {
  #rt-dart-stats-modal .rt-dart-stats-player-header {
    font-size: 18px !important;
  }
  #rt-dart-stats-modal .rt-dart-stats-leg-title,
  #rt-dart-stats-modal .rt-dart-stats-value-line {
    font-size: 16px !important;
  }
  #rt-dart-save-results,
  #rt-dart-stats-modal .rt-dart-modal-buttons #rt-dart-save-results,
  .rt-dart-game-wrapper #rt-dart-stats-modal .rt-dart-modal-buttons #rt-dart-save-results.rt-dart-btn {
    max-width: 190px !important;
    min-width: 150px !important;
    padding: 8px 18px !important;
    font-size: 16px !important;
  }
}


/* ==========================================================
   D68E / v0.1.156 – Scorekolonner kronologisk nedefra
   ----------------------------------------------------------
   Kun de to seneste-scorekolonner under spillerboksene:
   8 rækker, nyeste nederst og scoretal +3px.
   ========================================================== */
.rt-dart-game-wrapper .rt-dart-recent-below-list .rt-dart-recent-item{
  font-size:48px !important;
}
@media (max-height: 900px), (max-width: 980px){
  .rt-dart-game-wrapper .rt-dart-recent-below-list .rt-dart-recent-item{
    font-size:clamp(28px, calc(5.0dvh + 3px), 48px) !important;
  }
}


/* ==========================================================
   TABLETSCORE1 / v0.1.157 – Scorehistorik synlig fra første indgang
   ----------------------------------------------------------
   Kun layout for de to seneste-scorekolonner. JavaScript renderer
   nu kun faktiske scores; kolonnen bundjusteres så første score
   ikke skubbes ud af viewporten på tablets med lavere højde.
   ========================================================== */
.rt-dart-game-wrapper .rt-dart-recent-below-list{
  justify-content:flex-end !important;
}


/* ADMINTEST1 – tydelig, scoped markering af isoleret admin-testspil. */
.rt-dart-game-wrapper.rt-dart-test-mode{padding-top:48px !important;}
.rt-dart-game-wrapper .rt-dart-test-banner{
  position:absolute;top:0;left:0;right:0;min-height:44px;z-index:10020;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  box-sizing:border-box;padding:7px 12px;background:#17130a;color:#f6e6a8;
  border-bottom:1px solid #9a7e10;font-size:14px;line-height:1.25;
}
.rt-dart-game-wrapper .rt-dart-test-banner strong{letter-spacing:.04em;}
.rt-dart-game-wrapper .rt-dart-test-exit{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:32px;
  padding:5px 10px;border:1px solid #d4af37;border-radius:8px;color:#fff;text-decoration:none;font-weight:800;
}
.rt-dart-game-wrapper .rt-dart-test-exit:hover,.rt-dart-game-wrapper .rt-dart-test-exit:focus{background:#d4af37;color:#000;}
@media (max-width:560px){
  .rt-dart-game-wrapper.rt-dart-test-mode{padding-top:58px !important;}
  .rt-dart-game-wrapper .rt-dart-test-banner{min-height:54px;font-size:12px;gap:8px;}
}

/* DOUBLEPLAYER-PLAYABLE1C: kun aktive kaster fremhæves, begge navne synlige.
   Scope til Dartspil-kort, ikke global styling. */
.rt-dart-game-wrapper .rt-dart-player-name.rt-dart-double-pair .rt-dart-double-name{
  font:inherit;
  color:inherit;
  font-weight:inherit;
}
.rt-dart-game-wrapper .rt-dart-player-card.rt-dart-active .rt-dart-player-name.rt-dart-double-pair .rt-dart-double-name.rt-dart-double-thrower{
  color:#08763e !important;
  font-weight:900 !important;
  text-decoration:underline;
  text-decoration-color:#08763e;
  text-decoration-thickness:3px;
  text-underline-offset:5px;
}
.rt-dart-game-wrapper .rt-dart-player-card:not(.rt-dart-active) .rt-dart-player-name.rt-dart-double-pair .rt-dart-double-name.rt-dart-double-thrower{
  color:#71efa7 !important;
  font-weight:900 !important;
}
