/* Regions Turnering – dark/gold theme
 * VIGTIGT: Alt er 100% scoped til .rt-ui wrapperen.
 */

.rt-ui{
  --rt-gold:#9a7e10;
  --rt-bg:#070708;
  --rt-card:#0f0f12;
  --rt-card2:#0b0b0e;
  --rt-text:#ffffff;
  --rt-muted:rgba(255,255,255,.65);

  /* Gold alpha tokens */
  --rt-bd:rgba(154,126,16,.35);
  --rt-bd-strong:rgba(154,126,16,.55);
  --rt-line:rgba(154,126,16,.16);
  --rt-line-2:rgba(154,126,16,.22);
  --rt-head-bg:rgba(154,126,16,.10);
  --rt-hover-bg:rgba(154,126,16,.06);
  --rt-glow:rgba(154,126,16,.14);

  color:var(--rt-text);
  background:var(--rt-bg);
  padding:18px 14px;
}

.rt-ui, .rt-ui *{ box-sizing:border-box; }

.rt-ui__container{
  max-width:1100px;
  margin:0 auto;
}

/* Typography */
.rt-ui .rt-kicker{
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:rgba(255,255,255,.70);
  margin:0 0 6px 0;
}

.rt-ui .rt-title{
  color:var(--rt-gold);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
  font-size:24px;
  line-height:1.1;
  margin:0;
}

.rt-ui .rt-subtitle{
  margin-top:8px;
  color:rgba(255,255,255,.85);
  font-size:14px;
}

.rt-ui .rt-muted{
  color:var(--rt-muted);
  margin:10px 0 0;
  font-size:13px;
}

/* Cards */
.rt-ui .rt-card{
  border-radius:18px;
  border:1px solid var(--rt-bd);
  box-shadow:0 12px 35px rgba(0,0,0,.45);
  padding:16px 18px;
  background:
    radial-gradient(120% 120% at 50% 20%, rgba(154,126,16,.14), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,0)),
    var(--rt-card);
}

.rt-ui .rt-card__title,
.rt-ui .rt-card .rt-card__title,
.rt-ui .rt-card > .rt-card__title,
.rt-ui .rt-card__title{
  color:var(--rt-gold);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
  font-size:13px;
  margin:0 0 12px;
}

/* Layout */
.rt-ui__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.rt-ui__header-left{ min-width:0; }

.rt-ui__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

@media (max-width: 860px){
  .rt-ui__grid{ grid-template-columns:1fr; }
  .rt-ui .rt-title{ font-size:22px; }
}

/* Meta (profile rows) */
.rt-ui .rt-meta{
  border:1px solid var(--rt-line-2);
  border-radius:12px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(154,126,16,.10), rgba(0,0,0,0));
}

.rt-ui .rt-meta__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-top:1px solid var(--rt-line);
}

.rt-ui .rt-meta__row:first-child{ border-top:none; }

.rt-ui .rt-meta__label{
  color:rgba(255,255,255,.70);
  font-size:12px;
  letter-spacing:.2px;
  text-transform:uppercase;
  font-weight:700;
}

.rt-ui .rt-meta__value{
  color:var(--rt-text);
  font-size:13px;
  font-weight:700;
  text-align:right;
  min-width:0;
}

/* Pills */
.rt-ui .rt-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(154,126,16,.45);
  background:rgba(154,126,16,.06);
  color:var(--rt-gold);
  font-weight:900;
  font-size:11px;
  letter-spacing:.2px;
  white-space:nowrap;
}

.rt-ui .rt-pill--soft{
  border-color:rgba(154,126,16,.35);
  font-weight:800;
  margin-right:8px;
}

/* Buttons */
.rt-ui .rt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  font-size:13px;
  line-height:1;
  border:1px solid transparent;
  transition:transform .08s ease, filter .12s ease, background-color .12s ease, box-shadow .12s ease;
  user-select:none;
}

.rt-ui .rt-btn:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(154,126,16,.15);
}

.rt-ui .rt-btn--gold{
  background:var(--rt-gold);
  color:#000;
}

.rt-ui .rt-btn--gold:hover{ filter:brightness(.92); box-shadow:0 0 0 1px rgba(154,126,16,.12), 0 10px 25px rgba(0,0,0,.35); }

.rt-ui .rt-btn--outline{
  background:transparent;
  color:var(--rt-text);
  border-color:var(--rt-bd-strong);
}

.rt-ui .rt-btn--outline:hover{ background:var(--rt-hover-bg); }

/* Table wrapper */
.rt-ui .rt-table-wrap{
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--rt-line-2);
}

.rt-ui .rt-table{
  width:100%;
  border-collapse:collapse;
}

.rt-ui .rt-table thead{ background:var(--rt-head-bg); }

.rt-ui .rt-table th{
  text-align:left;
  padding:12px 12px;
  color:var(--rt-gold);
  font-size:12px;
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
}

.rt-ui .rt-table td{
  padding:12px 12px;
  border-top:1px solid var(--rt-line);
  color:var(--rt-text);
  font-size:13px;
  vertical-align:middle;
}

.rt-ui .rt-th-right,
.rt-ui .rt-td-right{ text-align:right; }

.rt-ui .rt-table tbody tr:hover td{ background:var(--rt-hover-bg); }

.rt-ui .rt-team-name{ font-weight:800; }

@media (max-width: 520px){
  .rt-ui{ padding:14px 10px; }
  .rt-ui .rt-btn{ padding:10px 12px; }
  .rt-ui .rt-table th, .rt-ui .rt-table td{ padding:10px 10px; }
}

/* Inputs/selects (for future controls inside .rt-ui) */
.rt-ui label{
  color:var(--rt-gold);
  font-weight:700;
  font-size:13px;
}

.rt-ui input[type="text"],
.rt-ui input[type="email"],
.rt-ui input[type="password"],
.rt-ui input[type="number"],
.rt-ui input[type="date"],
.rt-ui input[type="time"],
.rt-ui select,
.rt-ui textarea{
  background:#000000 !important;
  color:#ffffff !important;
  border:1px solid rgba(154,126,16,.5) !important;
  border-radius:10px;
  padding:10px 12px;
  box-shadow:none;
}

.rt-ui select{ color:var(--rt-gold) !important; }

.rt-ui input::placeholder,
.rt-ui textarea::placeholder{ color:rgba(255,255,255,.5); }

.rt-ui input:focus,
.rt-ui select:focus,
.rt-ui textarea:focus{
  outline:none;
  border-color:rgba(154,126,16,.55) !important;
  box-shadow:0 0 0 3px rgba(154,126,16,.12);
}

/* P1A — Min Regions Dart dashboard */
.rt-ui.rt-spiller-dashboard{
  min-height:0;
}

.rt-ui .rt-spiller-dashboard__hero{
  overflow:hidden;
  position:relative;
}

.rt-ui .rt-spiller-dashboard__hero:after{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:260px;
  height:260px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(154,126,16,.22), rgba(154,126,16,0) 68%);
  pointer-events:none;
}

.rt-ui .rt-dashboard-badges{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}

.rt-ui .rt-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);
  gap:14px;
  align-items:start;
}

.rt-ui .rt-dashboard-card{
  min-width:0;
}

.rt-ui .rt-meta__link{
  color:#ffffff;
  text-decoration:none;
  border-bottom:1px solid rgba(154,126,16,.45);
}

.rt-ui .rt-meta__link:hover{
  color:var(--rt-gold);
}

.rt-ui .rt-muted-inline{
  color:var(--rt-muted);
  font-size:12px;
  font-weight:700;
}

.rt-ui .rt-dashboard-pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.rt-ui .rt-table-wrap--dashboard{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.rt-ui .rt-dashboard-table{
  min-width:620px;
}

.rt-ui .rt-dashboard-table td:first-child{
  min-width:210px;
}

@media (max-width: 900px){
  .rt-ui .rt-dashboard-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .rt-ui__header.rt-spiller-dashboard__hero{
    display:block;
  }

  .rt-ui .rt-dashboard-badges{
    gap:6px;
  }

  .rt-ui .rt-meta__row{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }

  .rt-ui .rt-meta__value{
    text-align:left;
    width:100%;
    overflow-wrap:anywhere;
  }

  .rt-ui .rt-dashboard-table{
    min-width:560px;
  }
}

/* P1B — Min næste kamp */
.rt-ui .rt-dashboard-card--next-match{
  position:relative;
  overflow:hidden;
}

.rt-ui .rt-dashboard-card--teams{
  grid-column:1 / -1;
}

/* D66L — Overblik i Spillerportal skal stå stablet og ikke i to kolonner. */
.rt-ui .rt-dashboard-card--profile,
.rt-ui .rt-dashboard-card--next-match,
.rt-ui .rt-dashboard-card--teams,
.rt-ui .rt-dashboard-card--ugemail{
  grid-column:1 / -1;
}

.rt-ui .rt-dashboard-card--profile{ order:10; }
.rt-ui .rt-dashboard-card--next-match{ order:20; }
.rt-ui .rt-dashboard-card--teams{ order:30; }
.rt-ui .rt-dashboard-card--ugemail{ order:40; }

.rt-ui .rt-spiller-ugemail-toggle{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:8px;
  color:#fff;
  font-weight:800;
  line-height:1.35;
}

.rt-ui .rt-spiller-ugemail-toggle input{
  margin-top:2px;
  flex:0 0 auto;
}

@media (max-width: 640px){
  .rt-ui .rt-spiller-ugemail-toggle{
    justify-content:flex-start;
  }
}

.rt-ui .rt-next-match{
  display:grid;
  gap:14px;
}

.rt-ui .rt-next-match__teams{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-weight:900;
  line-height:1.25;
}

.rt-ui .rt-next-match__team{
  color:#fff;
  font-size:18px;
}

.rt-ui .rt-next-match__vs{
  color:var(--rt-gold);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.35px;
  border:1px solid rgba(154,126,16,.42);
  border-radius:999px;
  padding:3px 8px;
  background:rgba(154,126,16,.08);
}

.rt-ui .rt-next-match__meta-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.rt-ui .rt-next-match__meta-item{
  border:1px solid var(--rt-line-2);
  border-radius:12px;
  padding:10px 11px;
  background:rgba(0,0,0,.20);
  min-width:0;
}

.rt-ui .rt-next-match__meta-item--wide{
  grid-column:1 / -1;
}

.rt-ui .rt-next-match__meta-item span{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.25px;
  margin-bottom:5px;
}

.rt-ui .rt-next-match__meta-item strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:900;
  overflow-wrap:anywhere;
}

.rt-ui .rt-next-match__actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

@media (max-width: 640px){
  .rt-ui .rt-next-match__meta-grid{
    grid-template-columns:1fr;
  }

  .rt-ui .rt-next-match__team{
    font-size:16px;
  }

  .rt-ui .rt-next-match__actions .rt-btn{
    width:100%;
  }
}

/* P1C — Holdets sæson */
.rt-ui .rt-dashboard-card--season{
  grid-column:1 / -1;
}

.rt-ui .rt-season-list{
  display:grid;
  gap:12px;
}

.rt-ui .rt-season-card{
  border:1px solid var(--rt-line-2);
  border-radius:14px;
  padding:13px;
  background:linear-gradient(180deg, rgba(154,126,16,.08), rgba(0,0,0,.16));
}

.rt-ui .rt-season-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.rt-ui .rt-season-card__team{
  color:#fff;
  font-size:17px;
  line-height:1.2;
  font-weight:900;
}

.rt-ui .rt-season-card__division{
  color:rgba(255,255,255,.68);
  font-size:12px;
  font-weight:800;
  margin-top:4px;
}

.rt-ui .rt-season-rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border:1px solid rgba(154,126,16,.48);
  border-radius:999px;
  padding:5px 10px;
  color:var(--rt-gold);
  background:rgba(154,126,16,.08);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.rt-ui .rt-season-stats{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:9px;
}

.rt-ui .rt-season-stat{
  border:1px solid rgba(154,126,16,.20);
  border-radius:11px;
  background:rgba(0,0,0,.22);
  padding:9px 10px;
  min-width:0;
}

.rt-ui .rt-season-stat span,
.rt-ui .rt-season-next span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:10px;
  font-weight:900;
  letter-spacing:.25px;
  text-transform:uppercase;
  margin-bottom:4px;
}

.rt-ui .rt-season-stat strong,
.rt-ui .rt-season-next strong{
  display:block;
  color:#fff;
  font-size:14px;
  font-weight:900;
}

.rt-ui .rt-season-next{
  margin-top:10px;
  border:1px solid rgba(154,126,16,.20);
  border-radius:11px;
  background:rgba(0,0,0,.18);
  padding:9px 10px;
}

.rt-ui .rt-season-next small{
  color:rgba(255,255,255,.62);
  font-size:12px;
  font-weight:800;
}

.rt-ui .rt-season-next--empty strong{
  color:rgba(255,255,255,.72);
}

@media (max-width: 760px){
  .rt-ui .rt-season-card__top{
    display:block;
  }

  .rt-ui .rt-season-rank{
    margin-top:9px;
  }

  .rt-ui .rt-season-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px){
  .rt-ui .rt-season-stats{
    grid-template-columns:1fr;
  }
}

/* P1D — Mit holds kampprogram og resultater */
.rt-ui .rt-dashboard-card--schedule,
.rt-ui .rt-dashboard-card--results{
  grid-column:1 / -1;
}

.rt-ui .rt-match-list{
  display:grid;
  gap:10px;
}

.rt-ui .rt-match-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--rt-line-2);
  border-radius:14px;
  padding:12px;
  background:linear-gradient(180deg, rgba(154,126,16,.07), rgba(0,0,0,.18));
}

.rt-ui .rt-match-row__main{
  min-width:0;
  flex:1 1 auto;
}

.rt-ui .rt-match-row__teams{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:#fff;
  font-weight:900;
  line-height:1.25;
}

.rt-ui .rt-match-row__teams span{
  overflow-wrap:anywhere;
}

.rt-ui .rt-match-row__teams em{
  color:var(--rt-gold);
  font-style:normal;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.25px;
  border:1px solid rgba(154,126,16,.36);
  border-radius:999px;
  padding:2px 7px;
  background:rgba(154,126,16,.07);
}

.rt-ui .rt-match-row__meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:7px;
  color:rgba(255,255,255,.65);
  font-size:12px;
  font-weight:750;
}

.rt-ui .rt-match-row__meta span{
  border-left:1px solid rgba(154,126,16,.30);
  padding-left:8px;
}

.rt-ui .rt-match-row__meta span:first-child{
  border-left:none;
  padding-left:0;
}

.rt-ui .rt-match-row__actions{
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.rt-ui .rt-result-score{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(154,126,16,.50);
  color:var(--rt-gold);
  background:rgba(154,126,16,.09);
  font-size:13px;
  font-weight:900;
}

.rt-ui .rt-result-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(154,126,16,.45);
  color:#fff;
  background:rgba(154,126,16,.08);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.25px;
}

.rt-ui .rt-result-pill--win{
  color:#d8ffd8;
  border-color:rgba(86,201,86,.42);
  background:rgba(86,201,86,.11);
}

.rt-ui .rt-result-pill--loss{
  color:#ffd4d4;
  border-color:rgba(219,68,68,.42);
  background:rgba(219,68,68,.11);
}

.rt-ui .rt-result-pill--draw{
  color:#fff1bd;
  border-color:rgba(154,126,16,.48);
  background:rgba(154,126,16,.10);
}

@media (max-width: 700px){
  .rt-ui .rt-match-row{
    display:block;
  }

  .rt-ui .rt-match-row__actions{
    justify-content:flex-start;
    margin-top:10px;
  }

  .rt-ui .rt-match-row__actions .rt-btn,
  .rt-ui .rt-match-row__actions .rt-result-pill{
    width:100%;
  }
}

/* P1E — Spillerportal kortnavigation */
.rt-ui .rt-spiller-nav-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:10px;
  margin:0 0 14px;
}

.rt-ui .rt-spiller-nav-card{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-height:78px;
  text-decoration:none;
  border:1px solid var(--rt-line-2);
  border-radius:16px;
  padding:12px 13px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(154,126,16,.13), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,0)),
    rgba(0,0,0,.20);
  color:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  transition:transform .1s ease, border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.rt-ui .rt-spiller-nav-card:hover,
.rt-ui .rt-spiller-nav-card:focus{
  transform:translateY(-1px);
  border-color:var(--rt-bd-strong);
  background-color:rgba(154,126,16,.08);
  outline:none;
}

.rt-ui .rt-spiller-nav-card.is-active{
  border-color:rgba(154,126,16,.76);
  box-shadow:0 0 0 1px rgba(154,126,16,.20), 0 14px 34px rgba(0,0,0,.34);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(154,126,16,.24), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(154,126,16,.12), rgba(0,0,0,.04)),
    rgba(0,0,0,.24);
}

.rt-ui .rt-spiller-nav-card span{
  color:var(--rt-gold);
  font-size:13px;
  font-weight:900;
  line-height:1.12;
  text-transform:uppercase;
  letter-spacing:.28px;
}

.rt-ui .rt-spiller-nav-card strong{
  color:rgba(255,255,255,.76);
  font-size:11px;
  font-weight:800;
  line-height:1.22;
}

.rt-ui .rt-dashboard-card--statistik,
.rt-ui .rt-dashboard-card--udvikling{
  grid-column:1 / -1;
}

.rt-ui .rt-feature-panel{
  display:flex;
  align-items:flex-start;
  gap:13px;
  border:1px solid var(--rt-line-2);
  border-radius:15px;
  padding:15px;
  background:linear-gradient(180deg, rgba(154,126,16,.08), rgba(0,0,0,.16));
}

.rt-ui .rt-feature-panel__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(154,126,16,.45);
  background:rgba(154,126,16,.10);
  color:var(--rt-gold);
  font-size:22px;
  font-weight:900;
}

.rt-ui .rt-feature-panel h3{
  margin:0 0 6px;
  color:#fff;
  font-size:18px;
  line-height:1.2;
}

.rt-ui .rt-feature-panel p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.45;
}

.rt-ui.rt-spiller-dashboard[data-rt-active-section="overblik"] .rt-dashboard-grid{
  grid-template-columns:1fr;
}

.rt-ui.rt-spiller-dashboard[data-rt-active-section="kampprogram"] .rt-dashboard-grid,
.rt-ui.rt-spiller-dashboard[data-rt-active-section="resultater"] .rt-dashboard-grid,
.rt-ui.rt-spiller-dashboard[data-rt-active-section="hold-saeson"] .rt-dashboard-grid,
.rt-ui.rt-spiller-dashboard[data-rt-active-section="statistik"] .rt-dashboard-grid,
.rt-ui.rt-spiller-dashboard[data-rt-active-section="udvikling"] .rt-dashboard-grid{
  grid-template-columns:1fr;
}

@media (max-width: 1060px){
  .rt-ui .rt-spiller-nav-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .rt-ui .rt-spiller-nav-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .rt-ui .rt-spiller-nav-card{
    min-height:72px;
    padding:11px;
  }

  .rt-ui .rt-spiller-nav-card span{
    font-size:12px;
  }

  .rt-ui .rt-spiller-nav-card strong{
    font-size:10.5px;
  }

  .rt-ui .rt-feature-panel{
    display:block;
  }

  .rt-ui .rt-feature-panel__icon{
    margin-bottom:10px;
  }
}


/* P2A/P2B — Min statistik og udvikling */
.rt-ui .rt-player-stats-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
  border:1px solid var(--rt-line-2);
  border-radius:15px;
  padding:14px;
  background:linear-gradient(180deg, rgba(154,126,16,.08), rgba(0,0,0,.14));
}

.rt-ui .rt-player-stats-intro h3,
.rt-ui .rt-player-form-panel h3{
  margin:0 0 5px;
  color:#fff;
  font-size:18px;
  font-weight:900;
  line-height:1.2;
}

.rt-ui .rt-player-stats-intro p,
.rt-ui .rt-player-form-panel p{
  margin:0;
  color:rgba(255,255,255,.70);
  font-size:13px;
  line-height:1.45;
}

.rt-ui .rt-player-stat-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:10px;
}

.rt-ui .rt-player-stat-tile{
  border:1px solid rgba(154,126,16,.24);
  border-radius:14px;
  background:rgba(0,0,0,.22);
  padding:12px;
  min-width:0;
}

.rt-ui .rt-player-stat-tile--gold{
  border-color:rgba(154,126,16,.62);
  background:linear-gradient(180deg, rgba(154,126,16,.16), rgba(0,0,0,.20));
}

.rt-ui .rt-player-stat-tile span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.24px;
  margin-bottom:6px;
}

.rt-ui .rt-player-stat-tile strong{
  display:block;
  color:#fff;
  font-size:22px;
  font-weight:950;
  line-height:1.05;
  overflow-wrap:anywhere;
}

.rt-ui .rt-player-stat-tile--gold strong{
  color:var(--rt-gold);
}

.rt-ui .rt-player-form-panel{
  border:1px solid var(--rt-line-2);
  border-radius:15px;
  padding:15px;
  background:linear-gradient(180deg, rgba(154,126,16,.08), rgba(0,0,0,.16));
}

.rt-ui .rt-player-form-panel__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
}

.rt-ui .rt-player-form-strip{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}

.rt-ui .rt-form-dot{
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.12);
  box-shadow:0 0 0 3px rgba(255,255,255,.04);
}

.rt-ui .rt-form-dot--win{ background:rgba(86,201,86,.85); border-color:rgba(86,201,86,.55); }
.rt-ui .rt-form-dot--loss{ background:rgba(219,68,68,.88); border-color:rgba(219,68,68,.58); }
.rt-ui .rt-form-dot--draw{ background:rgba(154,126,16,.90); border-color:rgba(154,126,16,.58); }

.rt-ui .rt-player-recent-list{
  display:grid;
  gap:9px;
}

.rt-ui .rt-player-recent-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(154,126,16,.18);
  border-radius:13px;
  padding:10px 11px;
  background:rgba(0,0,0,.22);
}

.rt-ui .rt-player-recent-row strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.rt-ui .rt-player-recent-row span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
  font-weight:750;
  margin-top:3px;
}

.rt-ui .rt-player-recent-row__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.rt-ui .rt-player-recent-avg{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  min-width:58px;
  margin-top:0 !important;
  border:1px solid rgba(154,126,16,.42);
  border-radius:999px;
  color:var(--rt-gold) !important;
  background:rgba(154,126,16,.08);
  font-size:12px !important;
  font-weight:900 !important;
}

@media (max-width: 900px){
  .rt-ui .rt-player-stat-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .rt-ui .rt-player-stats-intro,
  .rt-ui .rt-player-form-panel__top{
    display:block;
  }

  .rt-ui .rt-player-stats-intro .rt-pill{ margin-top:10px; }
  .rt-ui .rt-player-form-strip{ margin-top:10px; }

  .rt-ui .rt-player-recent-row{
    display:block;
  }

  .rt-ui .rt-player-recent-row__right{
    justify-content:flex-start;
    margin-top:9px;
    flex-wrap:wrap;
  }
}

@media (max-width: 430px){
  .rt-ui .rt-player-stat-grid{ grid-template-columns:1fr; }
}


/* P2B — Udbygget Min udvikling */
.rt-ui .rt-player-development-panel{
  border:1px solid var(--rt-line-2);
  border-radius:15px;
  padding:15px;
  background:linear-gradient(180deg, rgba(154,126,16,.08), rgba(0,0,0,.16));
}

.rt-ui .rt-development-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin:13px 0;
}

.rt-ui .rt-development-kpi{
  border:1px solid rgba(154,126,16,.24);
  border-radius:14px;
  background:rgba(0,0,0,.22);
  padding:12px;
  min-width:0;
}

.rt-ui .rt-development-kpi--gold{
  border-color:rgba(154,126,16,.62);
  background:linear-gradient(180deg, rgba(154,126,16,.16), rgba(0,0,0,.20));
}

.rt-ui .rt-development-kpi--up{
  border-color:rgba(86,201,86,.45);
  background:linear-gradient(180deg, rgba(86,201,86,.10), rgba(0,0,0,.22));
}

.rt-ui .rt-development-kpi--down{
  border-color:rgba(219,68,68,.45);
  background:linear-gradient(180deg, rgba(219,68,68,.10), rgba(0,0,0,.22));
}

.rt-ui .rt-development-kpi span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.24px;
  margin-bottom:6px;
}

.rt-ui .rt-development-kpi strong{
  display:block;
  color:#fff;
  font-size:18px;
  font-weight:950;
  line-height:1.15;
  overflow-wrap:anywhere;
}

.rt-ui .rt-development-kpi--gold strong{
  color:var(--rt-gold);
  font-size:24px;
}

.rt-ui .rt-development-kpi small{
  display:block;
  color:rgba(255,255,255,.58);
  font-size:11px;
  font-weight:800;
  margin-top:5px;
}

.rt-ui .rt-development-subtitle{
  margin:14px 0 8px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:950;
  letter-spacing:.26px;
  text-transform:uppercase;
}

.rt-ui .rt-development-months{
  margin-top:6px;
}

.rt-ui .rt-development-month-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(154,126,16,.18);
  border-radius:13px;
  padding:10px 11px;
  background:rgba(0,0,0,.22);
  margin-bottom:8px;
}

.rt-ui .rt-development-month-row strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.rt-ui .rt-development-month-row span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
  font-weight:750;
  margin-top:3px;
}

.rt-ui .rt-development-month-row__values{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}

.rt-ui .rt-development-month-row__values span{
  margin-top:0;
  color:rgba(255,255,255,.68);
}

.rt-ui .rt-development-month-row__values strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  min-width:58px;
  border:1px solid rgba(154,126,16,.42);
  border-radius:999px;
  color:var(--rt-gold);
  background:rgba(154,126,16,.08);
  font-size:12px;
  font-weight:950;
}

@media (max-width: 900px){
  .rt-ui .rt-development-kpi-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .rt-ui .rt-development-month-row{ display:block; }
  .rt-ui .rt-development-month-row__values{
    justify-content:flex-start;
    margin-top:9px;
  }
}

@media (max-width: 430px){
  .rt-ui .rt-development-kpi-grid{ grid-template-columns:1fr; }
}


/* P2C/P2D — Mine rekorder og tydeligere Min form */
.rt-ui .rt-player-records-panel{
  margin-top:14px;
  border:1px solid var(--rt-line-2);
  border-radius:15px;
  padding:14px;
  background:linear-gradient(180deg, rgba(154,126,16,.07), rgba(0,0,0,.16));
}

.rt-ui .rt-player-record-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.rt-ui .rt-player-record-card,
.rt-ui .rt-player-form-card{
  border:1px solid rgba(154,126,16,.24);
  border-radius:14px;
  background:rgba(0,0,0,.23);
  padding:12px;
  min-width:0;
}

.rt-ui .rt-player-record-card--gold,
.rt-ui .rt-player-form-card--gold{
  border-color:rgba(154,126,16,.62);
  background:linear-gradient(180deg, rgba(154,126,16,.17), rgba(0,0,0,.22));
}

.rt-ui .rt-player-record-card span,
.rt-ui .rt-player-form-card span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:10px;
  font-weight:900;
  letter-spacing:.24px;
  text-transform:uppercase;
  margin-bottom:6px;
}

.rt-ui .rt-player-record-card strong,
.rt-ui .rt-player-form-card strong{
  display:block;
  color:#fff;
  font-size:20px;
  font-weight:950;
  line-height:1.12;
  overflow-wrap:anywhere;
}

.rt-ui .rt-player-record-card--gold strong,
.rt-ui .rt-player-form-card--gold strong{
  color:var(--rt-gold);
}

.rt-ui .rt-player-record-card small,
.rt-ui .rt-player-form-card small{
  display:block;
  color:rgba(255,255,255,.58);
  font-size:11px;
  font-weight:800;
  line-height:1.35;
  margin-top:6px;
}

.rt-ui .rt-player-form-main-summary{
  color:#fff1bd !important;
  font-weight:900;
}

.rt-ui .rt-player-form-strip--wide{
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:240px;
}

.rt-ui .rt-player-form-strip--wide .rt-form-dot{
  width:20px;
  height:20px;
}

.rt-ui .rt-player-form-cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:12px 0 13px;
}

.rt-ui .rt-player-form-card strong{
  font-size:16px;
}

.rt-ui .rt-player-form-card--gold strong{
  font-size:18px;
}

@media (max-width: 900px){
  .rt-ui .rt-player-record-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rt-ui .rt-player-form-cards{ grid-template-columns:1fr; }
}

@media (max-width: 620px){
  .rt-ui .rt-player-form-strip--wide{
    justify-content:flex-start;
    max-width:none;
  }
}

@media (max-width: 430px){
  .rt-ui .rt-player-record-grid{ grid-template-columns:1fr; }
}


/* D65L: Mobil-scroll ny spiller ([rt_opret_spiller]).
   Layout-only: ingen ændring af validering, holdtilknytning, database, login eller invitation-mail. */
.rt-spillerportal-form,
.rt-spillerportal-form .rt-spillerportal-field,
.rt-spillerportal-form .rt-spillerportal-actions{
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

.rt-spillerportal-form{
  display:block;
  width:100%;
  max-width:100%;
  padding-bottom:calc(96px + env(safe-area-inset-bottom));
  margin-bottom:0;
}

.rt-spillerportal-form input,
.rt-spillerportal-form select,
.rt-spillerportal-form textarea,
.rt-spillerportal-form button{
  max-width:100%;
  box-sizing:border-box;
}

@media (max-width:760px){
  .rt-spillerportal-form{
    padding-bottom:calc(140px + env(safe-area-inset-bottom)) !important;
    overflow-y:visible !important;
  }
  .rt-spillerportal-form .rt-spillerportal-field,
  .rt-spillerportal-form .rt-spillerportal-actions{
    width:100% !important;
    max-width:100% !important;
  }
  .rt-spillerportal-form .rt-spillerportal-actions{
    margin-bottom:calc(64px + env(safe-area-inset-bottom)) !important;
  }
}


/* D66M — Overblik skal altid stå først i spillerportalens menukort. */
.rt-ui .rt-spiller-nav-card[data-rt-section-target="overblik"]{
  order:-100;
}
