/* V62 GAME HUB PRO – flat, modern game-first forum UX */

/* Homepage: five primary games without making the page noisy. */
.dsw-home .dsw-v58-games{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.dsw-home .dsw-v58-game{min-height:168px;position:relative;overflow:hidden;border-radius:20px;isolation:isolate}
.dsw-home .dsw-v58-game::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,8,13,.12),rgba(4,8,13,.82));z-index:-1}
.dsw-home .dsw-v58-game h3{font-size:1.05rem;line-height:1.15;max-width:16ch}
.dsw-home .dsw-v58-game small{letter-spacing:.08em;text-transform:uppercase;font-weight:850}
@media(max-width:1180px){.dsw-home .dsw-v58-games{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.dsw-home .dsw-v58-games{grid-template-columns:repeat(2,minmax(0,1fr))}.dsw-home .dsw-v58-game{min-height:140px}}
@media(max-width:480px){.dsw-home .dsw-v58-games{grid-template-columns:1fr}.dsw-home .dsw-v58-game{min-height:116px}}

/* Forum overview: emphasize the five main hubs, keep secondary areas quiet. */
.dsw-forum-group[data-v61-section="featured"] .dsw-forum-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
.dsw-forum-group[data-v61-section="featured"] .dsw-forum-card{min-width:0!important}
.dsw-forum-group[data-v61-section="featured"] .dsw-forum-name{font-size:1.06rem!important;line-height:1.16!important}
.dsw-forum-group[data-v61-section="featured"] .dsw-forum-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1320px){.dsw-forum-group[data-v61-section="featured"] .dsw-forum-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){.dsw-forum-group[data-v61-section="featured"] .dsw-forum-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.dsw-forum-group[data-v61-section="featured"] .dsw-forum-grid{grid-template-columns:1fr!important}}

/* Hub page: game-first hero + direct topics. */
.dsw-cat.v53-category .dsw-cat-hero{border-radius:24px!important;overflow:hidden}
.dsw-cat.v53-category .dsw-v61-hub-note{background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:16px!important;padding:13px 15px!important;color:#b9c6d2!important}
.dsw-cat.v53-category .dsw-v61-hub-note strong{color:#f8fafc}
.dsw-v61-topic-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.dsw-v61-topic-tabs a{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.09);border-radius:999px;padding:8px 11px;color:#aebbc7!important;background:rgba(255,255,255,.025);font-size:.78rem;font-weight:850;text-decoration:none}
.dsw-v61-topic-tabs a:hover,.dsw-v61-topic-tabs a.active{color:#fff!important;border-color:rgba(var(--hub-accent,100,217,255),.42);background:rgba(var(--hub-accent,100,217,255),.10)}

/* Search inside a game first, then optionally expand to the whole forum. */
.dsw-v62-hub-search{display:grid!important;grid-template-columns:auto minmax(150px,1fr) auto!important;align-items:center!important;gap:7px!important;min-width:min(330px,100%);padding:6px 7px 6px 10px!important}
.dsw-v62-hub-search input{min-width:0!important}
.dsw-v62-hub-search button{border:0;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.dsw-v62-hub-search button:hover{background:rgba(255,255,255,.14)}
.dsw-v62-global-search{display:inline-flex;align-items:center;padding:8px 10px;border-radius:10px;color:#9fb0c0!important;font-size:.72rem;font-weight:800;text-decoration:none;white-space:nowrap}
.dsw-v62-global-search:hover{color:#fff!important;background:rgba(255,255,255,.05)}

/* Tags replace visible subcategory clutter. */
.dsw-v62-topic-tag{background:rgba(100,217,255,.08)!important;border-color:rgba(100,217,255,.18)!important;color:#bdefff!important}
.dsw-thread[data-prefix="news"] .dsw-v62-topic-tag{background:rgba(74,222,128,.08)!important;border-color:rgba(74,222,128,.18)!important;color:#bbf7d0!important}

/* Cleaner thread rows: content first, metrics secondary. */
.dsw-thread{transition:transform .16s ease,border-color .16s ease,background .16s ease}
.dsw-thread:hover{transform:translateY(-1px)}
.dsw-thread-title{font-size:1rem!important;line-height:1.35!important}
.dsw-thread-meta{color:#8799aa!important}
.dsw-thread-side{opacity:.92}

@media(max-width:760px){
  .v53-thread-controls{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .dsw-v62-hub-search{order:-1;width:100%;min-width:100%}
  .dsw-v62-global-search{width:100%;justify-content:center}
  .dsw-v61-topic-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}
  .dsw-v61-topic-tabs::-webkit-scrollbar{display:none}
  .dsw-v61-topic-tabs a{white-space:nowrap}
}
