/* DGG's editorial layer: quieter chrome, stronger hierarchy, existing theme tokens. */
:root { --radius-panel: 16px; --radius-control: 8px; }
.dgg-welcome[hidden] { display: none; }
.preview-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem; padding:.6rem 1.5rem; background:#252013; color:#f3daa0; font:12px system-ui; border-bottom:1px solid #62532d; }
.preview-toolbar label { display:flex; align-items:center; gap:.5rem; }
.preview-toolbar select { padding:.35rem; background:#171717; color:#fff; border:1px solid #73623b; }
body { background-image: radial-gradient(ellipse at 85% 0, #301013 0, transparent 46%); background-attachment: fixed; }
#app-wrapper { max-width: 1540px; padding: clamp(1rem, 2.4vw, 2.25rem); }
.app-header { margin-bottom: 1.2rem; padding-bottom: 1.25rem; }
.glow-title { letter-spacing: -.035em; }
.app-quote { font-style: normal; letter-spacing: .015em; }
.hub-nav-bar { padding: .75rem; border-radius: 12px; gap: .7rem; }
.nav-btn { border-radius: var(--radius-control); transition: background-color .16s, border-color .16s; }
.nav-btn.active { box-shadow: none; }
.nav-admin-group { gap: .4rem; }
.nav-admin-group .nav-btn { font-size: .76rem; }
.hub-nav-bar:has(#manage-directory-theme) { flex-wrap: wrap; }
.hub-nav-bar:has(#manage-directory-theme) .nav-links-group { flex-basis: 100%; }
.hub-nav-bar:has(#manage-directory-theme) .nav-admin-group { width: 100%; justify-content: flex-end; border-top: 1px solid var(--panel-border); padding-top: .6rem; flex-wrap: wrap; }
/* Unfilled placement controls remain in the promotion manager, without dominating the directory. */
.header-ad-slots:has(.ad-slot-placeholder):not(:has(.ad-slot:not(.ad-slot-placeholder))) { display: none; }
.side-ad-slot--advertisement:has(> .ad-slot-placeholder) { height: auto; min-height: 0; }
.side-ad-slot--advertisement > .ad-slot-placeholder { height: auto; min-height: 60px; padding: .65rem; display: grid; gap: .25rem; }
.player-promotion-card { border-radius: 12px; border-color: var(--panel-border); }
.nav-links-group .nav-btn { min-height: 40px; display: inline-flex; align-items: center; }
.dgg-welcome { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--panel-border); border-radius: 18px; overflow: hidden; margin: 1.5rem 0 2.4rem; background: var(--interface-surface); }
.dgg-welcome-copy { position: relative; }
.dgg-welcome-copy { padding: clamp(1.5rem, 4vw, 3.6rem); background: radial-gradient(ellipse at top left, #44151b88, transparent 75%); }
.dgg-welcome h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); letter-spacing: -.05em; line-height: 1.06; margin: .9rem 0 1.25rem; }
.dgg-welcome h2 span { color: #efb6b6; }
.dgg-welcome-copy > p:not(.section-kicker) { max-width: 52ch; color: #c7cbd2; line-height: 1.75; }
.section-kicker { font-size: .71rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 750; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1rem; }
.welcome-actions a { display: inline-flex; align-items: center; gap: 1.4rem; padding: .85rem 1.15rem; text-decoration: none; }
.welcome-signature { font-size: .75rem; }
.welcome-purpose { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid var(--panel-border); background: linear-gradient(135deg, #ffffff04, transparent); }
.purpose-monogram { font-size: 2.5rem; font-weight: 900; letter-spacing: -.1em; color: #d96a70; margin-bottom: 1.5rem; }
.welcome-purpose h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -.025em; line-height: 1.25; margin: .7rem 0 1rem; max-width: 23ch; }
.welcome-purpose p:not(.section-kicker) { color: #c7cbd2; line-height: 1.75; max-width: 47ch; }
.welcome-purpose a { color: #f2c5c5; text-underline-offset: .3em; margin-top: 1.4rem; font-weight: 650; }
.welcome-purpose small { color: var(--text-muted); font-size: .72rem; margin-top: .75rem; line-height: 1.6; }
#directory-start { scroll-margin-top: 1rem; }
.directory-discovery { align-items: end; padding-bottom: 1.5rem; gap: 1.5rem; }
.directory-discovery h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); letter-spacing: -.035em; margin: .45rem 0; }
.directory-discovery p { line-height: 1.6; }
.directory-discovery input { margin-top: .5rem; min-height: 46px; }
.directory-tile { border-radius: 14px; text-align: left; padding: 1.5rem; }
.directory-tile[data-genre] { position: relative; min-height: 185px; display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; overflow: hidden; background-image: linear-gradient(125deg, #8a0b0b18, transparent 75%); }
.directory-tile[data-genre] h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.genre-index { color: #d58989; font-size: .7rem; font-weight: 750; letter-spacing: .12em; }
.genre-games { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.genre-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding-top: .8rem; border-top: 1px solid var(--panel-border); font-size: .78rem; }
.genre-card-footer strong { color: #d9c3c3; font-weight: 550; }
.genre-card-arrow { color: #f1bbbb; font-size: 1.25rem; }
.community-directory-heading { align-items: center; gap: 1rem; }
.community-directory-heading h2 { font-size: 1.2rem; }
.directory-heading-actions .nav-btn { font-size: .75rem; }
.directory-group-heading { letter-spacing: .07em; text-transform: uppercase; font-size: .72rem; color: #d6aaaa; padding-block: .6rem; }
.directory-trail { grid-column: 1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; color:var(--text-muted); font-size:.8rem; }
.directory-trail button { color:#efb6b6; background:none; border:0; padding:.4rem 0; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:.2em; }
.directory-trail [aria-current] { color:var(--text-main); }
.membership-role-row { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:.6rem; padding:.75rem 0; }
@media (max-width:600px) { .membership-role-row { grid-template-columns:1fr; } }
.directory-tile--game p { line-height: 1.65; }
.game-tile-thumbnail-placeholder { background: linear-gradient(135deg, #37171c, #171b22); color: #d1b3b7; display: grid; place-items: center; font-size: .85rem; }
.directory-empty { grid-column: 1/-1; padding: 2rem; border: 1px solid var(--panel-border); border-radius: 14px; background: var(--interface-surface); }
.directory-empty h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.directory-empty p { max-width: 60ch; color: var(--text-muted); line-height: 1.75; }
.directory-empty .welcome-actions { margin-bottom: 0; }
.content-panel { border-radius: 16px; }
.panel-header-row h2 { letter-spacing: -.03em; }
input, textarea, select { accent-color: #a72332; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.modal-window { border-radius: 16px; border-color: #754049; box-shadow: 0 24px 100px #000a; }
@media (min-width: 1200px) { .directory-layout--no-side-ads .tiles-container { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
 .dgg-welcome { grid-template-columns: 1fr; margin-top: 1rem; }
 .welcome-purpose { border-left: 0; border-top: 1px solid var(--panel-border); }
 .purpose-monogram { display: none; }
 .welcome-purpose h3 { max-width: none; }
 .directory-discovery { align-items: stretch; }
 .directory-tile[data-genre] { min-height: 175px; }
 .welcome-actions a { justify-content: center; }
}
/* Game discovery cards retain catalogue order and load artwork only on the visible page. */
.game-interest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-top: 1rem; }
.game-interest-grid .game-interest-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--panel-border); border-radius: 12px; background: #111318; }
.game-interest-card__art { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #36181e, #171e2a); }
.game-interest-card__art img { width: 100%; height: 100%; object-fit: cover; }
.game-interest-card__placeholder:not([hidden]) { display: grid; height: 100%; place-items: center; color: #dfbdc2; font-weight: 700; }
.game-interest-card .game-request-support__details { padding: 1rem; }
.game-interest-card h3 { margin: .4rem 0; font-size: 1.15rem; }
.game-interest-card__genre { color: #dba7ae; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.game-interest-card .game-request-support__actions { padding: 0 1rem 1rem; margin-top: auto; display: grid; gap: .6rem; white-space: normal; }
.game-interest-card__official { border: 0; color: var(--text-muted); background: transparent; cursor: pointer; font: inherit; font-size: .8rem; }
.game-interest-card summary { cursor: pointer; font-size: .8rem; margin-top: .7rem; color: var(--text-muted); }
.community-news-image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.community-news-article .community-news-hero { display: block; width: 100%; height: auto; max-height: 620px; aspect-ratio: auto; object-fit: contain; background: #08090b; }
.community-news-full-image { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; }
.community-news-image-button:focus-visible { outline: 2px solid #e9b86b; outline-offset: 3px; }
.resource-library-search { display: flex; flex-wrap: wrap; gap: .7rem; margin: .8rem 0; }
.resource-library-search button { min-height: 40px; }
.resource-moderation-tools { margin-top: 1rem; color: var(--text-muted); }
.dashboard-quick-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem 0 .75rem;
}
.news-announcement-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; border: 1px solid #393939; border-radius: .6rem; }
.news-announcement-targets { display: grid; gap: .5rem; max-height: 16rem; overflow: auto; }
.news-announcement-targets label { display: flex; align-items: center; gap: .6rem; }
.news-announcement-targets input { width: auto; }
#new-genre-field[hidden] { display: none; }
