/* 終局戰場 · deep page experience layer · 2026-11-04 */
:root{
  --dts-bg:#071018;
  --dts-bg-2:#0b151f;
  --dts-surface:#101c27;
  --dts-surface-2:#162431;
  --dts-surface-3:#1c2d3b;
  --dts-line:#304553;
  --dts-line-soft:rgba(122,153,170,.22);
  --dts-text:#edf4f6;
  --dts-muted:#9fb0ba;
  --dts-faint:#6f848f;
  --dts-accent:#d9a35d;
  --dts-accent-2:#f1c77f;
  --dts-accent-ink:#18120b;
  --dts-info:#66c6e7;
  --dts-success:#54c985;
  --dts-danger:#ef756c;
  --dts-warning:#efbd63;
  --dts-radius:14px;
  --dts-radius-sm:9px;
  --dts-shadow:0 22px 65px rgba(0,0,0,.34);
  --dts-focus:0 0 0 3px rgba(102,198,231,.28);
}
body.dts-deep-ui{
  margin:0;
  color:var(--dts-text);
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei","Segoe UI",sans-serif;
  background-color:var(--dts-bg);
}
body.dts-deep-ui,
body.dts-deep-ui *,
body.dts-deep-ui *::before,
body.dts-deep-ui *::after{box-sizing:border-box}
body.dts-deep-ui .dts-page-frame{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 40px;
  text-align:left!important;
}
body.dts-deep-ui .dts-page-frame>center{
  width:100%;
  display:block;
}
.dts-page-intro{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:end;
  margin:0 0 20px;
  padding:24px 26px;
  border:1px solid var(--dts-line-soft);
  border-radius:var(--dts-radius);
  background:
    linear-gradient(120deg,rgba(217,163,93,.13),transparent 43%),
    linear-gradient(180deg,rgba(25,42,55,.96),rgba(13,25,35,.96));
  box-shadow:var(--dts-shadow);
}
.dts-page-intro::after{
  content:"";
  position:absolute;
  width:230px;
  height:230px;
  right:-75px;
  top:-110px;
  border-radius:50%;
  border:1px solid rgba(217,163,93,.18);
  box-shadow:0 0 70px rgba(217,163,93,.08);
  pointer-events:none;
}
.dts-page-eyebrow{
  margin:0 0 8px;
  color:var(--dts-accent-2);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.dts-page-intro h1{
  margin:0;
  color:var(--dts-text);
  font-size:clamp(25px,3.2vw,38px);
  line-height:1.15;
  letter-spacing:.02em;
}
.dts-page-intro p{
  max-width:720px;
  margin:10px 0 0;
  color:var(--dts-muted);
  font-size:14px;
  line-height:1.75;
}
.dts-page-intro__status{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:0 12px;
  border:1px solid rgba(84,201,133,.32);
  border-radius:999px;
  background:rgba(84,201,133,.08);
  color:#a7efc0;
  font-size:12px;
  white-space:nowrap;
}
.dts-page-intro__status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--dts-success);
  box-shadow:0 0 12px rgba(84,201,133,.7);
}
body.dts-deep-ui .subtitle.dts-original-title{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  white-space:nowrap!important;
}
.dts-section-card,
body.dts-deep-ui form:not([style*="display:none"]),
body.dts-deep-ui .dts-responsive-table{
  border-color:var(--dts-line-soft);
}
body.dts-deep-ui input,
body.dts-deep-ui select,
body.dts-deep-ui textarea,
body.dts-deep-ui button{
  font:inherit;
}
body.dts-deep-ui input[type="text"],
body.dts-deep-ui input[type="password"],
body.dts-deep-ui input[type="number"],
body.dts-deep-ui input[type="email"],
body.dts-deep-ui select,
body.dts-deep-ui textarea{
  min-height:42px;
  padding:8px 11px;
  border:1px solid var(--dts-line);
  border-radius:8px;
  outline:0;
  background:#0a141d;
  color:var(--dts-text);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
body.dts-deep-ui textarea{min-height:100px;resize:vertical}
body.dts-deep-ui input:focus,
body.dts-deep-ui select:focus,
body.dts-deep-ui textarea:focus,
body.dts-deep-ui button:focus-visible,
body.dts-deep-ui a:focus-visible{
  border-color:var(--dts-info);
  box-shadow:var(--dts-focus);
  outline:0;
}
body.dts-deep-ui input[type="button"],
body.dts-deep-ui input[type="submit"],
body.dts-deep-ui input[type="reset"],
body.dts-deep-ui button,
body.dts-deep-ui .cmdbutton,
body.dts-deep-ui .b_button,
body.dts-deep-ui .glow_buttons{
  min-height:42px;
  padding:9px 16px;
  border:1px solid #526676;
  border-radius:8px;
  background:linear-gradient(180deg,#263847,#1b2a36);
  color:var(--dts-text);
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
body.dts-deep-ui input[type="button"]:hover,
body.dts-deep-ui input[type="submit"]:hover,
body.dts-deep-ui button:hover,
body.dts-deep-ui .cmdbutton:hover,
body.dts-deep-ui .b_button:hover,
body.dts-deep-ui .glow_buttons:hover{
  border-color:var(--dts-accent);
  background:linear-gradient(180deg,#344758,#243643);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
  transform:translateY(-1px);
}
body.dts-deep-ui input[type="button"]:active,
body.dts-deep-ui input[type="submit"]:active,
body.dts-deep-ui button:active,
body.dts-deep-ui .cmdbutton:active,
body.dts-deep-ui .b_button:active,
body.dts-deep-ui .glow_buttons:active{transform:translateY(0) scale(.98)}
body.dts-deep-ui input[type="submit"],
body.dts-deep-ui .dts-primary-action,
body.dts-room-ui .glow_buttons.yellow{
  border-color:#e0ae69;
  background:linear-gradient(180deg,#d9a35d,#a96f2c);
  color:var(--dts-accent-ink);
  font-weight:800;
}
body.dts-deep-ui input:disabled,
body.dts-deep-ui button:disabled,
body.dts-deep-ui .forbidden{
  opacity:.48;
  cursor:not-allowed;
  transform:none!important;
  box-shadow:none!important;
}
body.dts-deep-ui table{border-collapse:separate;border-spacing:0}
body.dts-deep-ui .dts-data-table{
  width:100%!important;
  overflow:hidden;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(14,26,36,.88);
}
body.dts-deep-ui .dts-data-table th{
  padding:12px 14px!important;
  border-bottom:1px solid var(--dts-line);
  background:#192a37;
  color:var(--dts-accent-2);
  font-size:12px;
  letter-spacing:.04em;
  text-align:left;
}
body.dts-deep-ui .dts-data-table td{
  padding:12px 14px!important;
  border-bottom:1px solid rgba(78,101,114,.24);
  color:var(--dts-text);
  line-height:1.55;
}
body.dts-deep-ui .dts-data-table tr:last-child td{border-bottom:0}
body.dts-deep-ui .dts-data-table tr:hover td{background:rgba(102,198,231,.035)}
.dts-empty-state{
  display:grid!important;
  place-items:center;
  min-height:220px;
  margin:18px 0;
  padding:30px;
  border:1px dashed #405665;
  border-radius:14px;
  background:rgba(13,25,35,.78);
  color:var(--dts-muted)!important;
  font-size:15px;
}
.dts-empty-state::before{
  content:"尚無內容";
  display:block;
  margin-bottom:8px;
  color:var(--dts-text);
  font-size:20px;
  font-weight:800;
}
.dts-page-tabs{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0 0 18px!important;
  padding:8px!important;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(11,22,31,.88);
}
.dts-page-tabs a,
.dts-page-tabs input[type="button"],
.dts-page-tabs button{
  width:auto!important;
  min-height:40px!important;
  margin:0!important;
  padding:8px 14px!important;
  border-radius:8px!important;
  text-decoration:none;
}

/* Account and profile */
body.dts-group-account .dts-page-frame>center>table:first-of-type{
  width:min(860px,100%)!important;
  margin:0 auto;
  padding:22px;
  border:1px solid var(--dts-line-soft);
  border-radius:var(--dts-radius);
  background:linear-gradient(145deg,rgba(22,36,49,.97),rgba(12,23,32,.97));
  box-shadow:var(--dts-shadow);
}
body.dts-group-account .dts-page-frame>center>table:first-of-type>tbody>tr{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:28px;
}
body.dts-group-account .dts-page-frame>center>table:first-of-type>tbody>tr>td[width]{display:none}
body.dts-group-account .dts-profile-stats{width:100%}
body.dts-group-account .dts-profile-stats td{
  padding:10px 12px;
  border-bottom:1px solid rgba(92,119,133,.2);
}
body.dts-group-account .dts-profile-stats td:first-child{color:var(--dts-muted)}
body.dts-group-account .dts-profile-stats td:last-child{text-align:right;font-weight:800}
body.dts-group-account #userIconImg{
  margin:0 auto 12px;
  border:1px solid var(--dts-line);
  border-radius:12px;
  background:#09121a;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
body.dts-group-account .dts-profile-actions table,
body.dts-group-account .dts-profile-actions tbody,
body.dts-group-account .dts-profile-actions tr,
body.dts-group-account .dts-profile-actions td{display:block;width:100%}
body.dts-group-account .dts-profile-actions button{width:100%!important;margin:0 0 8px}
body.dts-route-user-php form[name="userdata"]>div:first-of-type{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  align-items:start;
}
body.dts-route-user-php form[name="userdata"]>div:first-of-type>span{display:none}
body.dts-route-user-php form[name="userdata"]>div:first-of-type>div{
  display:block!important;
  min-width:0;
  padding:18px;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(15,28,39,.9);
}

/* Collections, card book and logistics */
body.dts-group-collection .dts-collection-nav{justify-content:center}
body.dts-group-collection .dts-pack-summary{
  width:min(760px,100%)!important;
  min-height:160px;
  margin:0 auto 20px;
  padding:18px;
  border:1px solid var(--dts-line-soft);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(26,42,55,.95),rgba(12,23,32,.96));
}
body.dts-group-collection .dts-card-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr));
  gap:14px;
  width:100%!important;
  max-width:min(1120px,100%);
  min-width:0;
  margin:0 auto!important;
  padding:0!important;
}
body.dts-group-collection .dts-card-grid>li{
  float:none!important;
  margin:0!important;
  min-width:0;
  border-radius:12px;
  transition:transform .18s ease,filter .18s ease;
}
body.dts-group-collection .dts-card-grid>li:hover{transform:translateY(-3px);filter:brightness(1.08)}
body.dts-group-collection .dts-inventory-table{max-width:1000px;margin:0 auto}
body.dts-group-collection .dts-inventory-table td:last-child{text-align:right}

/* Messages */
body.dts-group-messages #messages>div{
  padding:18px;
  border:1px solid var(--dts-line-soft);
  border-radius:14px;
  background:rgba(12,24,33,.92);
  box-shadow:var(--dts-shadow);
}
body.dts-group-messages #messages>div>div:nth-child(2){
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:14px;
}
body.dts-group-messages #messages>div>div:nth-child(2)>div[style*="display:inline-block"]{display:none!important}
body.dts-group-messages .message_line{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:12px;
}
body.dts-group-messages .message_ib{width:auto!important;min-width:0}
body.dts-group-messages .message_box{
  height:100%;
  overflow:hidden;
  border:1px solid var(--dts-line-soft)!important;
  border-radius:12px;
  background:linear-gradient(160deg,#172633,#0d1922)!important;
  cursor:pointer;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.dts-group-messages .message_box:hover{
  border-color:var(--dts-accent)!important;
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(0,0,0,.24);
}
body.dts-group-messages .message_title_bar{padding:12px!important;background:rgba(217,163,93,.08)}
body.dts-group-messages .message_cont{padding:12px!important;line-height:1.6}
body.dts-group-messages .message_encl{padding:10px 12px!important}
body.dts-group-messages .message_date{padding:8px 12px 12px!important;color:var(--dts-faint)!important}

/* Admin workbench */
body.dts-group-admin .dts-page-frame>center{max-width:1180px;margin:auto}
body.dts-group-admin form[name="admin"]>table>tbody>tr{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
body.dts-group-admin form[name="admin"]>table>tbody>tr>td{display:block;width:auto!important}
body.dts-group-admin table.admin{
  width:100%!important;
  overflow:hidden;
  border:1px solid var(--dts-line-soft);
  border-radius:14px;
  background:rgba(12,24,33,.94);
}
body.dts-group-admin table.admin .tdtitle{
  padding:15px!important;
  background:linear-gradient(90deg,rgba(217,163,93,.18),rgba(217,163,93,.03));
  color:var(--dts-accent-2);
  font-size:16px;
  font-weight:800;
}
body.dts-group-admin table.admin th,
body.dts-group-admin table.admin td{padding:10px 12px!important}
body.dts-group-admin table.admin tr{height:auto!important}
body.dts-group-admin table.admin input[type="submit"]{width:100%!important;height:auto!important}

/* Result, ranking and replay */
body.dts-group-result .dts-page-frame>table,
body.dts-group-result .dts-page-frame>center>table{
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}
body.dts-route-replay-php .dts-page-frame{width:min(1320px,calc(100% - 20px))}
body.dts-route-replay-php #replay_bar,
body.dts-route-replay-php #replay_bar>div,
body.dts-route-replay-php #replay_bar img{
  max-width:100%!important;
}
body.dts-route-replay-php #replay_bar{width:calc(100% - 28px)!important}
body.dts-route-replay-php .dts-replay-console{
  width:100%!important;
  max-width:1180px!important;
  overflow-x:auto;
  padding:10px;
  border:1px solid var(--dts-line-soft);
  border-radius:14px;
  background:rgba(10,20,29,.95);
  box-shadow:var(--dts-shadow);
}
body.dts-route-winner-php #main{width:auto!important;min-width:0}
body.dts-route-winner-php .dts-winner-layout>tbody>tr{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
}
body.dts-route-winner-php .dts-winner-layout>tbody>tr>td{display:block}

/* Room interaction */
body.dts-room-ui #persistent-roommain{
  width:min(940px,calc(100vw - 24px))!important;
  max-width:940px!important;
  height:min(760px,calc(100vh - 24px))!important;
}
body.dts-room-ui #roommain{
  min-height:300px;
  padding:0 10px;
}
body.dts-room-ui #roommain>table{
  width:100%!important;
  table-layout:auto;
}
body.dts-room-ui #roommain>table>tbody>tr:first-child>td{
  position:relative;
  min-height:76px;
  padding:15px 210px 15px 18px!important;
  border:1px solid var(--dts-line-soft);
  border-radius:12px 12px 0 0;
  background:linear-gradient(100deg,rgba(217,163,93,.15),rgba(13,25,35,.2));
}
body.dts-room-ui #roommain .glow_buttons{display:inline-flex;align-items:center;justify-content:center}
body.dts-room-ui #room_banner{
  display:block;
  margin:10px 0;
  padding:11px 13px;
  border-left:3px solid var(--dts-info);
  border-radius:6px;
  background:rgba(102,198,231,.07);
  line-height:1.65;
}
body.dts-room-ui #roomchatarea{
  margin:14px 10px 0;
  padding:12px;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(9,19,27,.92);
}
body.dts-room-ui #roomchatarea [style*="margin-left:22px"]{margin-left:0!important;margin-right:0!important}
body.dts-room-ui #roomchatarea #chatlist-content{height:150px!important;max-height:150px!important}
body.dts-room-ui #sendchat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
body.dts-room-ui #chatmsg{width:100%!important}
body.dts-room-ui #connect-status-text{color:var(--dts-success)}

/* Error, informational and auth pages */
body.dts-deep-ui img[src*="ERROR_"]{
  display:block;
  width:min(300px,78vw)!important;
  height:auto!important;
  margin:18px auto!important;
  border:1px solid var(--dts-line-soft);
  border-radius:16px;
  background:rgba(10,20,29,.76);
  box-shadow:var(--dts-shadow);
}
body.dts-group-auth .dts-page-frame form,
body.dts-group-account .dts-page-frame form[name="recovery"]{
  width:min(560px,100%);
  margin:0 auto;
  padding:22px;
  border:1px solid var(--dts-line-soft);
  border-radius:14px;
  background:rgba(13,25,35,.94);
  box-shadow:var(--dts-shadow);
}
body.dts-group-info .dts-page-frame{line-height:1.75}
body.dts-group-info .dts-page-frame h2,
body.dts-group-info .dts-page-frame h3{color:var(--dts-accent-2)}
body.dts-group-info .dts-page-frame hr{border:0;border-top:1px solid var(--dts-line-soft)}

@media (max-width:900px){
  body.dts-deep-ui .dts-page-frame{width:min(100% - 22px,1180px);padding-top:16px}
  .dts-page-intro{padding:20px}
  body.dts-group-messages .message_line{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.dts-route-user-php form[name="userdata"]>div:first-of-type{grid-template-columns:1fr}
  body.dts-group-admin form[name="admin"]>table>tbody>tr{grid-template-columns:1fr}
  body.dts-route-winner-php .dts-winner-layout>tbody>tr{grid-template-columns:1fr}
}
@media (max-width:680px){
  .dts-page-intro{grid-template-columns:1fr;gap:14px;padding:18px}
  .dts-page-intro__status{width:max-content}
  body.dts-group-account .dts-page-frame>center>table:first-of-type{padding:15px}
  body.dts-group-account .dts-page-frame>center>table:first-of-type>tbody>tr{grid-template-columns:1fr}
  body.dts-group-messages .message_line{grid-template-columns:1fr}
  body.dts-group-collection .dts-card-grid{grid-template-columns:1fr}
  body.dts-room-ui #persistent-roommain{inset:8px!important;width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important}
  body.dts-room-ui #roommain{padding:0}
  body.dts-room-ui #roommain>table>tbody>tr:first-child>td{padding:14px!important}
  body.dts-room-ui #roommain>table>tbody>tr:first-child>td>div[style*="position:absolute"]{
    position:static!important;
    display:inline-block;
    margin:10px 6px 0 0;
  }
  body.dts-room-ui #roommain>table>tbody>tr:nth-child(3){
    display:grid;
    grid-template-columns:1fr;
  }
  body.dts-room-ui #roommain>table>tbody>tr:nth-child(3)>td{display:block;width:100%!important}
  body.dts-room-ui #sendchat{grid-template-columns:1fr}
  body.dts-deep-ui .dts-card-table thead{display:none}
  body.dts-deep-ui .dts-card-table,
  body.dts-deep-ui .dts-card-table tbody,
  body.dts-deep-ui .dts-card-table tr,
  body.dts-deep-ui .dts-card-table td{display:block;width:100%!important}
  body.dts-deep-ui .dts-card-table tr{
    margin:0 0 12px;
    padding:10px;
    border:1px solid var(--dts-line-soft);
    border-radius:10px;
    background:#101d27;
  }
  body.dts-deep-ui .dts-card-table td{
    display:grid!important;
    grid-template-columns:minmax(100px,38%) 1fr;
    gap:12px;
    padding:8px!important;
    border:0!important;
    text-align:left!important;
  }
  body.dts-deep-ui .dts-card-table td::before{
    content:attr(data-label);
    color:var(--dts-muted);
    font-size:12px;
    font-weight:700;
  }
}
@media (prefers-reduced-motion:reduce){
  body.dts-deep-ui *,body.dts-deep-ui *::before,body.dts-deep-ui *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* ===== Detail correction: ending, account editor and card picker ===== */
body.dts-deep-ui{
  overflow-x:clip;
}
body.dts-deep-ui .dts-page-frame,
body.dts-deep-ui .dts-page-frame>*{
  min-width:0;
  max-width:100%;
}
body.dts-deep-ui img{
  max-width:100%;
  height:auto;
}

/* Ending storyboard */
body.dts-route-end-php .dts-page-frame{
  overflow:visible;
}
.dts-end-content{
  width:100%;
  min-width:0;
  text-align:center;
}
.dts-end-content>.dts-page-intro{
  text-align:left;
}
.dts-storyboard{
  width:min(860px,100%);
  margin:0 auto 22px;
  padding:20px;
  border:1px solid var(--dts-line-soft);
  border-radius:var(--dts-radius);
  background:linear-gradient(155deg,rgba(18,32,43,.96),rgba(9,18,26,.98));
  box-shadow:0 18px 46px rgba(0,0,0,.24);
}
.dts-storyboard-stage{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:280px;
  padding:14px 18px 22px;
  overflow:visible;
}
.dts-storyboard-stage .shootings{
  width:min(760px,100%);
  margin:0 auto;
  color:var(--dts-text);
  font-size:15px;
  line-height:1.85;
  overflow-wrap:anywhere;
}
.dts-storyboard-stage .shootings p{
  width:100%;
  margin:0 0 18px;
  line-height:1.85;
}
.dts-storyboard-stage .shootings img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:360px;
  margin:18px auto;
  object-fit:contain;
}
.dts-storyboard-stage .shootings .evergreen{
  display:inline-block;
  margin-top:10px;
  line-height:1.45!important;
}
.dts-storyboard-controls{
  position:static!important;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  min-height:44px;
  margin-top:8px;
  padding-top:16px;
  border-top:1px solid var(--dts-line-soft);
}
.dts-storyboard-button{
  position:static!important;
  left:auto!important;
  width:150px!important;
  min-height:44px!important;
  margin:0!important;
  align-items:center;
  justify-content:center;
}
.dts-next-match-panel{
  width:min(720px,100%);
  margin:18px auto 22px;
}
.dts-next-match-panel__content{
  width:100%;
  padding:20px;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(13,25,35,.94);
}
.dts-next-match-panel .glow_buttons{
  position:static!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:auto!important;
  min-width:150px;
  min-height:48px!important;
  margin:8px!important;
}
.dts-next-match-panel #nextgamevars{
  line-height:1.7;
}
.dts-next-match-form{display:none!important}
.dts-end-content #nextgamevarsform:not(.dts-next-match-form){
  width:min(720px,100%);
  margin:20px auto;
  padding:20px;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(13,25,35,.94);
}
.dts-end-summary{
  width:min(720px,100%);
  margin:24px auto 16px;
  padding:20px 22px;
  border:1px solid #3b5870;
  border-radius:12px;
  background:linear-gradient(145deg,#192940,#111e2e);
  color:var(--dts-text);
  line-height:1.85;
  text-align:center;
}
.dts-end-summary>strong:first-child{
  display:block;
  margin-bottom:8px;
  color:var(--dts-accent-2);
  font-size:18px;
}
.dts-end-back{
  margin:4px auto 16px!important;
}
.dts-replay-card{
  width:min(620px,100%);
  margin:18px auto 28px;
  padding:20px;
  border:1px solid #3d6c84;
  border-radius:12px;
  background:#182639;
  color:#fff;
  text-align:center;
}

/* Account editor */
.dts-user-page{
  width:100%;
  min-width:0;
  margin:0 auto;
}
.dts-form-notice{
  min-height:20px;
  margin:0 0 12px;
  text-align:center;
}
.dts-user-form{
  width:100%;
  min-width:0;
  margin:0;
}
body.dts-route-user-php .dts-user-panels{
  display:grid!important;
  grid-template-columns:minmax(250px,.95fr) minmax(360px,1.25fr) minmax(280px,1fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.dts-user-panel{
  min-width:0;
  padding:18px;
  border:1px solid var(--dts-line-soft);
  border-radius:12px;
  background:rgba(15,28,39,.94);
}
.dts-user-panel h2,
.dts-section-heading h2{
  margin:0 0 14px;
  color:var(--dts-accent-2);
  font-size:16px;
  line-height:1.35;
  text-align:left;
}
.dts-user-panel table,
.dts-user-panel .dts-responsive-table{
  display:table!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  table-layout:auto;
}
.dts-user-panel td{
  padding:7px 6px;
  vertical-align:middle;
  overflow-wrap:anywhere;
}
.dts-user-panel td:first-child{
  width:92px;
  color:var(--dts-muted);
  font-weight:700;
}
.dts-user-panel input[type="text"],
.dts-user-panel input[type="password"]{
  width:100%!important;
  max-width:100%!important;
  min-width:0;
}
.dts-user-identity-grid{
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  gap:14px;
  align-items:start;
  min-width:0;
}
.dts-user-avatar-settings,
.dts-user-words-settings{
  min-width:0;
}
.dts-user-avatar-settings td:first-child{
  width:48px;
}
.dts-user-avatar-settings #userIconImg{
  margin:8px auto 0;
}
.dts-user-words-settings td:first-child{
  width:70px;
}
.dts-field-note{
  margin-top:14px;
  padding:10px 12px;
  border-left:3px solid var(--dts-info);
  border-radius:6px;
  background:rgba(102,198,231,.07);
  color:var(--dts-muted);
  font-size:13px;
  line-height:1.65;
}
.dts-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  height:auto!important;
  margin:16px 0 22px;
}
.dts-form-actions input{
  min-width:104px;
}
.dts-card-selector{
  width:100%;
  min-width:0;
  margin:0;
  padding:20px;
  border:1px solid var(--dts-line-soft);
  border-radius:14px;
  background:rgba(10,21,29,.94);
}
.dts-section-heading{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  text-align:left;
}
.dts-section-heading h2{margin-bottom:5px}
.dts-section-heading p{
  margin:0;
  color:var(--dts-muted);
  font-size:13px;
  line-height:1.6;
}

/* Responsive card picker: no page-level or internal horizontal scrollbar */
.dts-card-picker{
  display:grid;
  grid-template-columns:160px minmax(0,1fr) 250px;
  gap:18px;
  width:100%;
  min-width:0;
  min-height:500px;
  margin:0;
}
.dts-card-pack-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.dts-card-pack-list .cardpack_bar{
  flex:0 0 40px;
}
.dts-card-browser{
  min-width:0;
}
.dts-card-browser__stage{
  position:relative;
  width:100%;
  min-width:0;
  height:480px;
}
.dts-card-browser div.cardpanel{
  position:absolute;
  inset:0;
  width:100%!important;
  height:480px!important;
  padding:12px!important;
  white-space:normal!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  align-content:start;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:6px;
}
.dts-card-browser div.cardpanel[style*="block"]{
  display:grid!important;
}
.dts-card-browser div.card_row{
  display:contents!important;
  width:auto!important;
}
.dts-card-browser div.card_bar{
  width:170px!important;
  justify-self:center;
}
.dts-card-preview{
  min-width:0;
  padding:14px;
  border:1px solid var(--dts-line-soft);
  border-radius:10px;
  background:rgba(15,28,39,.86);
}
.dts-card-preview>div:first-child{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:start;
}
.dts-card-preview #cardsearch_input{
  width:100%!important;
  min-width:0;
}
.dts-card-preview #cardsearch_feedback{
  grid-column:1/-1;
  min-height:22px;
  text-align:left;
}
.dts-card-preview .cardoption{
  max-width:100%;
  margin:8px auto;
}
body.dts-route-user-php #pc_icon_selecting,
body.dts-route-user-php #persistent-pc_icon_selecting{
  width:min(716px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
}

@media (max-width:1100px){
  body.dts-route-user-php .dts-user-panels{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .dts-user-panel--preferences{
    grid-column:1/-1;
  }
  .dts-card-picker{
    grid-template-columns:160px minmax(0,1fr);
  }
  .dts-card-preview{
    grid-column:1/-1;
  }
}
@media (max-width:760px){
  .dts-storyboard{
    padding:12px;
  }
  .dts-storyboard-stage{
    min-height:220px;
    padding:10px 6px 16px;
  }
  .dts-storyboard-stage .shootings{
    font-size:14px;
    line-height:1.75;
  }
  .dts-storyboard-controls{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .dts-storyboard-button{
    width:100%!important;
  }
  .dts-next-match-panel .glow_buttons{
    display:flex!important;
    width:100%!important;
    margin:8px 0!important;
  }
  body.dts-route-user-php .dts-user-panels{
    grid-template-columns:1fr!important;
  }
  .dts-user-panel--preferences{
    grid-column:auto;
  }
  .dts-user-identity-grid{
    grid-template-columns:1fr;
  }
  .dts-user-avatar-settings{
    max-width:260px;
  }
  .dts-form-actions{
    position:sticky;
    bottom:8px;
    z-index:20;
    padding:10px;
    border:1px solid var(--dts-line-soft);
    border-radius:10px;
    background:rgba(8,18,26,.94);
    backdrop-filter:blur(10px);
  }
  .dts-form-actions input{
    flex:1;
  }
  .dts-card-selector{
    padding:14px;
  }
  .dts-card-picker{
    grid-template-columns:1fr;
    min-height:0;
  }
  .dts-card-pack-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,160px));
    justify-content:center;
  }
  .dts-card-browser__stage,
  .dts-card-browser div.cardpanel{
    height:520px!important;
  }
  .dts-card-preview{
    grid-column:auto;
  }
}


/* Registration context: show what happens after the form before asking for data */
.dts-register-guide{
  width:min(900px,100%);
  margin:0 auto 20px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:minmax(190px,.7fr) minmax(0,1.5fr) auto;
  gap:18px;
  align-items:center;
  border:1px solid var(--dts-line-soft);
  border-left:3px solid var(--dts-accent);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(26,42,54,.98),rgba(12,24,33,.98));
  text-align:left;
}
.dts-register-guide__head>span{
  color:var(--dts-accent-2);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}
.dts-register-guide__head h2{
  margin:5px 0 0;
  color:var(--dts-text);
  font-size:18px;
  line-height:1.35;
}
.dts-register-guide ol{
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  list-style:none;
}
.dts-register-guide li{
  min-width:0;
  padding:10px;
  border:1px solid var(--dts-line-soft);
  background:rgba(8,18,26,.62);
}
.dts-register-guide li strong,
.dts-register-guide li span{
  display:block;
}
.dts-register-guide li strong{
  color:var(--dts-accent-2);
  font-size:13px;
}
.dts-register-guide li span{
  margin-top:4px;
  color:var(--dts-muted);
  font-size:12px;
  line-height:1.55;
}
.dts-register-guide>a{
  min-height:44px;
  padding:9px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--dts-line);
  border-radius:8px;
  color:var(--dts-text);
  white-space:nowrap;
}
@media(max-width:920px){
  .dts-register-guide{grid-template-columns:1fr}
  .dts-register-guide ol{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dts-register-guide>a{justify-self:start}
}
@media(max-width:640px){
  .dts-register-guide{padding:16px}
  .dts-register-guide ol{grid-template-columns:1fr}
  .dts-register-guide>a{width:100%}
}


/* ===== Deep-page art direction: field dossier over a live battlefield feed ===== */
.dts-page-intro{
  isolation:isolate;
  min-height:190px;
  align-content:end;
  border-radius:2px;
  border-color:rgba(121,145,151,.42);
  border-top:2px solid var(--dts-accent);
  background:
    linear-gradient(90deg,rgba(7,14,19,.98) 0%,rgba(8,18,25,.88) 47%,rgba(7,14,20,.58) 100%),
    url('../../img/dts-battlefield-dusk.webp') center 52%/cover no-repeat;
}
.dts-page-intro:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg,transparent 49.8%,rgba(121,166,171,.12) 50%,transparent 50.2%),
    linear-gradient(transparent 49.8%,rgba(121,166,171,.09) 50%,transparent 50.2%);
  background-size:72px 72px;
  mask-image:linear-gradient(90deg,black,transparent 76%);
}
.dts-page-intro:after{
  width:260px;
  height:260px;
  right:-70px;
  top:-112px;
  border-color:rgba(101,174,178,.25);
  box-shadow:0 0 0 34px rgba(101,174,178,.025),0 0 70px rgba(217,163,93,.1);
}
.dts-page-intro>div:first-child,
.dts-page-intro__status{position:relative;z-index:1}
.dts-page-eyebrow{
  color:#e0aa5d;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.22em;
}
.dts-page-intro h1{
  max-width:780px;
  color:#f1eadc;
  font-family:"Bahnschrift Condensed","Arial Narrow","Microsoft JhengHei",sans-serif;
  font-weight:800;
  letter-spacing:.04em;
  text-shadow:0 6px 28px #000;
  text-wrap:balance;
}
.dts-page-intro p{
  color:#b7c1c0;
  text-shadow:0 2px 8px #000;
  text-wrap:pretty;
}
.dts-page-intro__status{
  border-radius:2px;
  border-color:rgba(86,193,150,.42);
  background:rgba(7,29,25,.78);
  box-shadow:inset 0 0 20px rgba(68,190,144,.07);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.04em;
}
.dts-page-intro__status:before{animation:dts-signal-pulse 2.4s ease-in-out infinite}
.dts-page-intro__status:after{
  content:"  /  CH-07";
  color:#6f9189;
}
body.dts-deep-ui .dts-section-card,
body.dts-deep-ui .dts-user-panel,
body.dts-deep-ui .dts-card-selector,
body.dts-deep-ui .dts-storyboard,
body.dts-deep-ui .dts-next-match-panel__content,
body.dts-deep-ui .dts-end-summary,
body.dts-deep-ui .dts-replay-card,
body.dts-deep-ui .dts-register-guide{
  border-radius:2px;
  background-color:rgba(8,17,23,.94);
  box-shadow:0 18px 40px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.02);
}
body.dts-deep-ui .dts-user-panel,
body.dts-deep-ui .dts-card-selector,
body.dts-deep-ui .dts-storyboard,
body.dts-deep-ui .dts-next-match-panel__content{
  position:relative;
  border-top-color:rgba(211,157,79,.62);
}
body.dts-deep-ui .dts-user-panel:before,
body.dts-deep-ui .dts-card-selector:before,
body.dts-deep-ui .dts-storyboard:before,
body.dts-deep-ui .dts-next-match-panel__content:before{
  content:"";
  position:absolute;
  left:-1px;
  top:-1px;
  width:42px;
  height:2px;
  background:#d5a258;
  box-shadow:0 0 18px rgba(213,162,88,.26);
}
body.dts-deep-ui .dts-user-panel h2,
body.dts-deep-ui .dts-section-heading h2,
body.dts-deep-ui .dts-end-summary>strong:first-child{
  font-family:"Bahnschrift Condensed","Arial Narrow","Microsoft JhengHei",sans-serif;
  letter-spacing:.05em;
}
body.dts-deep-ui .dts-user-panel h2:before,
body.dts-deep-ui .dts-section-heading h2:before{
  content:"// ";
  color:#6f8589;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
body.dts-deep-ui .dts-data-table th,
body.dts-deep-ui .dts-card-table th{
  font-family:ui-monospace,SFMono-Regular,Consolas,"Microsoft JhengHei",monospace;
  letter-spacing:.04em;
}
body.dts-deep-ui .dts-empty-state{
  background:
    linear-gradient(135deg,rgba(217,163,93,.055),transparent 50%),
    repeating-linear-gradient(135deg,transparent 0 11px,rgba(104,142,148,.03) 11px 12px),
    #0b151c;
}
body.dts-deep-ui input[type=submit],
body.dts-deep-ui input[type=button],
body.dts-deep-ui button,
body.dts-deep-ui .glow_buttons{
  border-radius:2px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body.dts-deep-ui input[type=submit]:active,
body.dts-deep-ui input[type=button]:active,
body.dts-deep-ui button:active,
body.dts-deep-ui .glow_buttons:active{transform:translateY(1px) scale(.985)}
.dts-storyboard-stage{
  background:
    linear-gradient(rgba(7,14,19,.82),rgba(7,14,19,.92)),
    repeating-linear-gradient(0deg,transparent 0 31px,rgba(104,145,150,.04) 31px 32px);
}
.dts-card-browser__stage{
  background:
    linear-gradient(135deg,rgba(88,141,145,.035),transparent 60%),
    repeating-linear-gradient(90deg,transparent 0 47px,rgba(88,141,145,.035) 47px 48px);
}
@media(max-width:760px){
  .dts-page-intro{min-height:210px;align-items:end}
  .dts-page-intro__status:after{display:none}
}
@media(prefers-reduced-motion:reduce){
  .dts-page-intro__status:before{animation:none}
}
