/* DK-United Player UCP + Closed Beta V0.5.7
   Content-only styling. The official V2.5 public header, DK-Guard, navigation,
   Live Status and Player Account sidebars remain owned by /app/ui.php. */

:root{
  --dku-ruby:#d71949;
  --dku-ruby-bright:#ff5279;
  --dku-ruby-dark:#780c2a;
  --dku-panel:#100c11;
  --dku-panel-2:#180e14;
  --dku-line:#5d2337;
  --dku-line-soft:#39232d;
  --dku-text:#f7f2f4;
  --dku-muted:#b8aab0;
  --dku-green:#44dc8a;
  --dku-amber:#ffd06b;
  --dku-red:#ff7688;
  --dku-shadow:0 18px 48px rgba(0,0,0,.42);
}

.dku-account-shell,
.dku-account-shell *{box-sizing:border-box}

.dku-account-shell{
  width:100%;
  min-width:0;
  display:grid;
  gap:18px;
  padding:24px 0 42px;
  color:var(--dku-text);
}

.dku-account-shell h1,
.dku-account-shell h2,
.dku-account-shell h3{
  margin-top:0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
}
.dku-account-shell h1{margin-bottom:10px;font-size:clamp(30px,4.6vw,54px);line-height:1.02}
.dku-account-shell h2{margin-bottom:9px;font-size:clamp(22px,2.5vw,31px);line-height:1.08}
.dku-account-shell h3{margin-bottom:7px;font-size:19px}
.dku-account-shell p{color:#d0c4c9}
.dku-account-shell a{touch-action:manipulation;-webkit-tap-highlight-color:rgba(215,25,73,.18)}

.dku-card{
  min-width:0;
  padding:clamp(18px,2.5vw,26px);
  border:1px solid var(--dku-line);
  border-radius:17px;
  background:
    linear-gradient(145deg,rgba(79,7,31,.70),rgba(15,12,16,.97) 62%),
    var(--dku-panel);
  box-shadow:var(--dku-shadow),inset 0 1px rgba(255,255,255,.025);
}

.dku-card>p:last-child{margin-bottom:0}
.dku-kicker{
  display:block;
  margin-bottom:7px;
  color:#ff8da7;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.dku-muted{color:var(--dku-muted)!important}
.dku-preline{white-space:pre-line}
.dku-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}

.dku-notice{
  padding:14px 16px;
  border:1px solid #7f6226;
  border-radius:12px;
  background:#33270e;
  color:#ffe5a3;
}
.dku-notice.success{border-color:#268757;background:#0d3825;color:#c2ffdc}
.dku-notice.error{border-color:#a12f43;background:#46141f;color:#ffd4da}

.dku-hero-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  border-color:#8b2946;
  background:
    radial-gradient(circle at 8% 0,rgba(255,42,92,.16),transparent 24rem),
    linear-gradient(145deg,#4b0b23,#140d12 67%);
}
.dku-hero-card.dku-unlocked{border-color:#317953;box-shadow:var(--dku-shadow),0 0 30px rgba(68,220,138,.08)}
.dku-hero-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}

.dku-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
}
.dku-section-head>div{min-width:0}

.dku-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:29px;
  padding:5px 10px;
  border:1px solid #51434a;
  border-radius:999px;
  background:#232026;
  color:#e5dfe2;
  font-size:10px;
  font-weight:900;
  letter-spacing:.035em;
  white-space:nowrap;
}
.dku-badge.good{border-color:#258354;background:#0d3723;color:#9cf4bf}
.dku-badge.warn{border-color:#89631e;background:#392a0b;color:#ffe099}
.dku-badge.bad{border-color:#9d2d42;background:#451520;color:#ffacb8}

.dku-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dku-stat{
  min-width:0;
  padding:16px;
  border:1px solid #492633;
  border-radius:12px;
  background:rgba(8,8,11,.72);
}
.dku-stat span,.dku-stat small{display:block;color:var(--dku-muted)}
.dku-stat span{font-size:12px}
.dku-stat strong{display:block;margin:5px 0;color:#fff;font-size:19px;overflow-wrap:anywhere}
.dku-stat small{font-size:11px;line-height:1.45}

.dku-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

.dku-details{margin:0;padding:0;border:1px solid #3e2630;border-radius:12px;overflow:hidden;background:rgba(6,6,9,.55)}
.dku-details div{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr);gap:14px;padding:11px 13px;border-bottom:1px solid #34222a}
.dku-details div:last-child{border-bottom:0}
.dku-details dt{color:#9f9298;font-size:11px}
.dku-details dd{margin:0;color:#fff;font-size:12px;font-weight:800;overflow-wrap:anywhere;text-align:right}
.dku-details.compact div{padding:9px 11px}

.dku-check-list,.dku-rule-list{margin:0;padding:0;list-style:none}
.dku-check-list li{position:relative;padding:8px 0 8px 25px;border-bottom:1px solid rgba(76,37,51,.55);color:#d9cfd3}
.dku-check-list li:last-child{border-bottom:0}
.dku-check-list li::before{content:"✓";position:absolute;left:0;color:var(--dku-green);font-weight:900}
.dku-rule-list{display:grid;gap:12px;counter-reset:dku-rule}
.dku-rule-list li{
  counter-increment:dku-rule;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:start;
  column-gap:12px;
  row-gap:4px;
  min-width:0;
  padding:15px;
  border:1px solid #4b2835;
  border-radius:12px;
  background:#100d11;
}
.dku-rule-list li::before{
  content:counter(dku-rule);
  grid-column:1;
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid #9a3050;
  border-radius:50%;
  background:#310f1c;
  color:#ff9ab0;
  font-weight:900;
}
.dku-rule-list li>strong{
  grid-column:2;
  grid-row:1;
  display:block;
  min-width:0;
  color:#fff;
  overflow-wrap:anywhere;
}
.dku-rule-list li>span{
  grid-column:2;
  grid-row:2;
  display:block;
  min-width:0;
  margin-top:0;
  color:var(--dku-muted);
  line-height:1.55;
  overflow-wrap:anywhere;
}

.dku-live-dot{display:inline-flex;align-items:center;gap:7px;color:#87efb1;font-size:10px;font-weight:900;white-space:nowrap}
.dku-live-dot i{width:8px;height:8px;border-radius:50%;background:var(--dku-green);box-shadow:0 0 11px var(--dku-green)}

.dku-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dku-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 15px;
  border:1px solid #b62f54;
  border-radius:10px;
  background:linear-gradient(180deg,#d91d50,#86102f);
  color:#fff!important;
  font-weight:900;
  text-decoration:none!important;
  cursor:pointer;
  touch-action:manipulation;
}
.dku-button:hover,.dku-button:focus-visible{filter:brightness(1.13);outline:none;box-shadow:0 0 0 3px rgba(217,29,80,.17)}
.dku-button.secondary{border-color:#5b4651;background:#1c181d}
.dku-button.danger{border-color:#a72b42;background:linear-gradient(180deg,#bc203d,#741225)}
.dku-text-link{color:#ff8ea7!important;font-weight:900;text-decoration:none}
.dku-text-link:hover{text-decoration:underline}

/* Normal Player UCP menu cards. */
.dku-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}
.dku-menu a{
  display:grid;
  gap:6px;
  min-height:94px;
  padding:16px;
  border:1px solid #65263b;
  border-radius:13px;
  background:linear-gradient(145deg,rgba(76,8,30,.86),rgba(16,13,18,.98) 68%);
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}
.dku-menu a:hover,.dku-menu a:focus-visible{border-color:#e13c68;transform:translateY(-2px);outline:none}
.dku-menu strong{font-size:15px}
.dku-menu span{color:#b8aab0;font-size:12px}

/* Missing in the broken build: shared Closed Beta navigation. */
.dku-beta-subnav{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  padding:10px;
  border:1px solid #562237;
  border-radius:14px;
  background:rgba(10,8,11,.92);
  box-shadow:0 13px 32px rgba(0,0,0,.28);
}
.dku-beta-subnav-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:8px 10px;
  border:1px solid #422731;
  border-radius:9px;
  background:#181016;
  color:#e6dce0!important;
  font-size:11px;
  font-weight:900;
  text-align:center;
  text-decoration:none!important;
  touch-action:manipulation;
}
.dku-beta-subnav-link:hover,.dku-beta-subnav-link:focus-visible{border-color:#c8335a;background:#28101a;outline:none}
.dku-beta-subnav-link.is-active{border-color:#e03765;background:linear-gradient(180deg,#be1944,#76102b);color:#fff!important;box-shadow:0 0 18px rgba(217,25,73,.15)}

/* Closed Beta dashboard buttons. */
.dku-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.dku-dashboard-tile{
  position:relative;
  min-width:0;
  min-height:116px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  gap:6px 12px;
  padding:18px;
  overflow:hidden;
  border:1px solid #6d2940;
  border-radius:14px;
  background:linear-gradient(145deg,rgba(89,8,34,.91),rgba(16,12,17,.99) 70%);
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:0 15px 34px rgba(0,0,0,.34);
  touch-action:manipulation;
}
.dku-dashboard-tile::before{content:"";position:absolute;top:0;right:0;left:0;height:3px;background:linear-gradient(90deg,#d71949,#ff6889,transparent)}
.dku-dashboard-tile:hover,.dku-dashboard-tile:focus-visible{border-color:#e33b68;background:linear-gradient(145deg,#73102f,#1d1118 70%);transform:translateY(-2px);outline:none;box-shadow:0 18px 40px rgba(0,0,0,.42),0 0 22px rgba(215,25,73,.11)}
.dku-dashboard-tile>span{min-width:0;font-size:15px;font-weight:900}
.dku-dashboard-tile>strong{justify-self:end;min-width:30px;padding:4px 8px;border:1px solid #8b3550;border-radius:999px;background:#2d111c;color:#ff9db4;font-size:12px;text-align:center}
.dku-dashboard-tile>small{grid-column:1/-1;color:#b9abb0;font-size:11px;line-height:1.4}

.dku-form{display:grid;gap:14px}
.dku-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dku-form label{color:#f6edf0;font-weight:800}
.dku-form input,.dku-form select,.dku-form textarea{
  width:100%;
  margin-top:6px;
  padding:12px 13px;
  border:1px solid #55404a;
  border-radius:10px;
  background:#09090c;
  color:#fff;
  font:inherit;
}
.dku-form textarea{resize:vertical}
.dku-form input:focus,.dku-form select:focus,.dku-form textarea:focus{border-color:#d53762;outline:2px solid rgba(213,55,98,.19);outline-offset:1px}
.dku-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.dku-consent-check{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px}
.dku-consent-check input{width:auto!important;margin-top:4px!important}
.dku-security-note{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid rgba(68,220,138,.35);border-radius:11px;background:rgba(8,57,32,.58);color:#bff4d2}
.dku-security-note p{margin:0;color:inherit}

.dku-download-list{display:grid;gap:14px}
.dku-download-card{display:grid;gap:14px}
.dku-download-card .dku-actions{margin-top:2px}

.dku-report-card details{margin-top:12px;border:1px solid #462833;border-radius:10px;background:#0e0c10;overflow:hidden}
.dku-report-card summary{padding:12px 14px;color:#ff91aa;font-weight:900;cursor:pointer;touch-action:manipulation}
.dku-report-body{padding:0 14px 14px;border-top:1px solid #38242c}
.dku-report-meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.dku-report-meta span{padding:5px 8px;border:1px solid #4a2a35;border-radius:999px;background:#181016;color:#c7b9be;font-size:10px;font-weight:800}
.dku-admin-reply{margin-top:13px;padding:13px;border:1px solid #4d3039;border-radius:10px;background:#151116}
.dku-admin-reply strong{color:#fff}
.dku-admin-reply p{margin:6px 0 0}
.dku-admin-reply.answered{border-color:#277f53;background:#0e2d20}
.dku-admin-reply.pending{border-color:#755b29;background:#29220f}

.dku-article{display:grid;gap:10px}
.dku-restricted{border-color:#8c2d41;background:linear-gradient(145deg,#43131f,#130d11)}

@media(max-width:1050px){
  .dku-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dku-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dku-beta-subnav{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:720px){
  .dku-account-shell{padding-top:18px}
  .dku-card{padding:18px;border-radius:14px}
  .dku-hero-card{grid-template-columns:1fr}
  .dku-hero-status,.dku-section-head{justify-content:flex-start}
  .dku-section-head{display:grid}
  .dku-grid,.dku-two-col,.dku-menu,.dku-dashboard-grid,.dku-form-grid{grid-template-columns:1fr}
  .dku-beta-subnav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}
  .dku-beta-subnav-link{min-height:46px;font-size:10px}
  .dku-details div{grid-template-columns:1fr;gap:4px}
  .dku-details dd{text-align:left}
  .dku-actions{display:grid;grid-template-columns:1fr}
  .dku-button{width:100%}
}

@media(max-width:420px){
  .dku-beta-subnav{grid-template-columns:1fr}
  .dku-dashboard-tile{min-height:104px}
}

@media(prefers-reduced-motion:reduce){
  .dku-dashboard-tile,.dku-menu a{transition:none!important;transform:none!important}
}


/* V0.5.8 defensive record rendering. */
.dku-article,
.dku-report-card{
  min-width:0;
  overflow-wrap:anywhere;
}
.dku-article .dku-section-head,
.dku-report-card .dku-section-head{
  min-width:0;
}
.dku-article .dku-kicker,
.dku-report-card .dku-kicker{
  overflow-wrap:anywhere;
}

/* Public Core CMS Community UX V1.1.0 — compact account and beta navigation. */
@media(max-width:720px){
  .dku-account-shell{gap:12px;padding:12px 0 30px}
  .dku-card{padding:15px;border-radius:13px}
  .dku-account-shell h1{font-size:clamp(28px,9vw,40px)}
  .dku-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .dku-menu a{min-height:74px;padding:12px;gap:4px}
  .dku-menu strong{font-size:13px}
  .dku-menu span{font-size:10.5px}
  .dku-beta-subnav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px;padding:7px}
  .dku-beta-subnav-link{min-height:38px;padding:6px 7px;font-size:9.5px;line-height:1.15}
  .dku-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dku-dashboard-tile{min-height:92px;padding:13px}
  .dku-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dku-button{width:100%;min-height:40px;padding:8px 10px;font-size:12px}
}
@media(max-width:360px){
  .dku-menu,.dku-dashboard-grid{grid-template-columns:1fr}
  .dku-beta-subnav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dku-actions{grid-template-columns:1fr}
}
