/* Renaissance Games 3.2 — unified editorial architecture */
:root {
  --accent: #e62a46;
  --accent-rgb: 230, 42, 70;
  --gold: var(--accent);
  --gold-bright: var(--accent);
  --wine: #59111d;
  --wine-bright: var(--accent);
  --red: var(--accent);
}

body,
.news-home-section,
.popular-section,
.news-browser,
.related-section,
.discussion-section,
.development-section,
.about-statement,
.about-principles {
  background-color: #090b0e;
}

.brand-name strong,
.portal-intro h1 em,
.about-page h1 em,
.development-hero h1 em,
.section-index,
.kicker,
.studio-eyebrow,
.portal-section-heading > a span,
.news-card-category,
.genre-chip {
  color: var(--accent);
}

.button.primary,
.portal-search button {
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover,
.portal-search button:hover {
  border-color: var(--accent);
  background: var(--accent);
  filter: brightness(1.08);
}

.site-header {
  border-bottom-color: #252b32;
  background: rgba(9, 11, 14, .94);
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.brand-mark img { transform: scale(1.16); }
.header-tools { margin-left: 18px; gap: 8px; }

.header-search-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #343c46;
  border-radius: 9px;
  background: #0d1116;
  color: #f0f2f4;
  font-size: 21px;
  line-height: 1;
}

.header-search-button:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
}

/* Home */
.portal-intro {
  background:
    radial-gradient(circle at 82% 48%, rgba(var(--accent-rgb), .14), transparent 26%),
    linear-gradient(102deg, #090b0e 0%, #0a0d11 64%, #0d0f13 100%);
}

.portal-intro::before { display: none; }

.portal-intro::after {
  opacity: .16;
  background-size: 76px 76px;
}

.portal-intro-grid,
.portal-intro-grid.portal-intro-single {
  min-height: 610px;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  gap: 72px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.portal-intro-copy,
.portal-intro-single .portal-intro-copy {
  min-width: 0;
  width: 100%;
  max-width: 790px;
}

.portal-intro h1 {
  margin: 23px 0 18px;
  font-size: clamp(64px, 7.2vw, 102px);
}

.portal-description,
.portal-intro-single .portal-description {
  max-width: 690px;
}

.home-media-signal { width: min(100%, 410px); }

.home-media-signal .signal-core,
.about-media-signal .signal-core {
  border-color: rgba(var(--accent-rgb), .72);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .28), #090b0e 68%);
  box-shadow: 0 0 78px rgba(var(--accent-rgb), .15);
}

.home-media-signal .signal-core img,
.about-media-signal .signal-core img {
  width: 78%;
  height: 78%;
}

.signal-orbit::after {
  background: var(--accent);
  box-shadow: 0 0 17px rgba(var(--accent-rgb), .9);
}

.portal-signal > small { display: none; }

.portal-search {
  width: min(100%, 760px);
  grid-template-columns: minmax(260px, 1fr) minmax(160px, auto) auto;
  gap: 5px;
  margin-top: 30px;
  padding: 5px;
  border-color: #39424d;
  background: #0d1217;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.portal-search-query {
  min-width: 0;
  display: flex;
  align-items: center;
  color: #727d89;
}

.portal-search-query > span {
  padding-left: 13px;
  font-size: 20px;
}

.portal-search input { width: 100%; padding-left: 9px; }

.portal-search-genre {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  border-left: 1px solid #333c46;
}

.portal-search select {
  min-width: 160px;
  min-height: 46px;
  padding: 0 34px 0 14px;
  border: 0;
  background: #0d1217;
  color: #c6ccd3;
  cursor: pointer;
}

.portal-search button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
}

.quick-topics {
  max-width: 760px;
  margin-top: 14px;
}

.quick-topics a {
  border-color: #323a43;
  background: rgba(13, 18, 23, .7);
}

.quick-topics a:hover { border-color: var(--accent); color: #fff; }

.home-editorial-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(235px, .65fr) minmax(235px, .65fr);
  grid-auto-rows: minmax(300px, auto);
  align-items: stretch;
}

.home-editorial-grid .news-card-featured { grid-row: span 2; }
.home-editorial-grid .news-card-featured .news-card-cover { aspect-ratio: 16 / 10; }
.home-editorial-grid .news-card-featured .news-card-body { padding: 27px 28px 30px; }
.home-editorial-grid .news-card-featured h3 { min-height: 0; font-size: clamp(25px, 2.2vw, 34px); }
.home-editorial-grid .news-card-featured p { min-height: 0; }
.home-editorial-grid .news-card-compact .news-card-body { padding: 18px 19px 20px; }
.home-editorial-grid .news-card-compact h3 { min-height: 0; margin-top: 10px; font-size: 18px; -webkit-line-clamp: 2; }
.home-editorial-grid .news-card-compact p { min-height: 0; -webkit-line-clamp: 2; font-size: 11px; }
.home-editorial-grid .news-card-compact .news-card-meta { gap: 9px; }
.news-card:hover { border-color: #4a5561; }
.news-card-pinned { border-color: rgba(var(--accent-rgb), .48); }
.card-pin-badge { background: rgba(var(--accent-rgb), .94); }
.news-card-category { background: rgba(var(--accent-rgb), .12); }
.news-card h3 a:hover { color: var(--accent); }

/* About */
.about-page .reveal {
  opacity: 1;
  transform: none;
}
.about-page h1 em { color: var(--accent) !important; }
.about-principle::before { background: var(--accent); }
.about-principle > span { color: var(--accent); }
.about-finale {
  background: linear-gradient(110deg, #090b0e 0%, #0a0d11 64%, rgba(var(--accent-rgb), .085) 100%);
}
.about-finale blockquote {
  max-width: 1040px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}
.about-finale blockquote::after { content: none; }
.about-finale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 43px;
}
.about-finale-actions .button { margin-top: 0; }

/* Public development sheet */
.development-page { background: #090b0e; }
.development-hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #272e36;
  background:
    radial-gradient(circle at 81% 48%, rgba(var(--accent-rgb), .15), transparent 25%),
    linear-gradient(112deg, #090b0e, #0d1116);
}
.development-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 80px;
  padding-top: 74px;
  padding-bottom: 74px;
}
.development-hero h1 {
  margin: 26px 0 24px;
  font: 760 clamp(60px, 7vw, 96px)/.9 var(--sans);
  letter-spacing: -.065em;
}
.development-hero h1 em { font-style: normal; }
.development-hero p {
  max-width: 680px;
  margin: 0;
  color: #9da6b0;
  font-size: 17px;
  line-height: 1.75;
}
.development-now {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #3a444f;
  border-radius: 14px;
  background: linear-gradient(135deg, #121820, #0d1116);
}
.development-now::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.development-now > span,
.development-detail > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.development-now strong {
  display: block;
  margin: 14px 0 12px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.development-now p { color: #8f99a4; font-size: 13px; line-height: 1.7; }
.development-section { padding: 104px 0 122px; }
.development-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 35px;
}
.development-heading h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.052em;
}
.development-heading p { max-width: 330px; margin: 0; color: #747f8a; font-size: 12px; line-height: 1.65; }
.development-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
  gap: 30px;
  align-items: start;
}
.development-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #2f3740;
  list-style: none;
}
.development-list li { border-bottom: 1px solid #2b323a; }
.development-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 23px 7px;
  border: 0;
  background: transparent;
  color: #dce1e6;
  text-align: left;
  cursor: pointer;
}
.development-list button > span { color: #5f6974; font-size: 11px; font-weight: 750; }
.development-list button div { display: grid; gap: 6px; }
.development-list button small { color: #6f7984; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.development-list button strong { font-size: 18px; letter-spacing: -.02em; }
.development-list button:hover,
.development-list button.active { background: #0e1318; }
.development-list button.active > span,
.development-list button.active strong { color: var(--accent); }
.roadmap-state {
  padding: 6px 8px;
  border: 1px solid #363f49;
  border-radius: 999px;
  color: #747f8a;
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}
.state-current { border-color: rgba(var(--accent-rgb), .55); color: var(--accent); }
.state-done { color: #9ba5af; }
.development-detail {
  position: sticky;
  top: 96px;
  min-height: 330px;
  padding: 38px;
  border: 1px solid #343d47;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), .13), transparent 35%),
    #10151b;
}
.development-detail h2 {
  margin: 20px 0 18px;
  font-size: clamp(32px, 3.5vw, 47px);
  line-height: 1.05;
  letter-spacing: -.05em;
}
.development-detail p { margin: 0; color: #9ca5af; font-size: 14px; line-height: 1.78; }
.development-detail > small { display: block; margin-top: 34px; color: #77828d; font-size: 10px; }

/* Gallery and lightbox */
.article-gallery-grid.gallery-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-gallery-grid.gallery-count-3 {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.article-gallery-grid.gallery-count-3 figure:first-child { grid-row: 1 / 3; }
.article-gallery-grid.gallery-count-3 figure:first-child button { height: 100%; aspect-ratio: auto; min-height: 430px; }
.article-gallery-grid.gallery-count-3 figure:not(:first-child) button { aspect-ratio: 16 / 9; }
.article-gallery button { border-color: #353f49; }
.article-gallery button:hover { border-color: var(--accent); }
.gallery-lightbox {
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 18px;
  padding: 70px 30px 32px;
}
.gallery-lightbox-toolbar {
  position: absolute;
  top: 18px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-lightbox-toolbar > span { color: #aab2bb; font-size: 11px; letter-spacing: .12em; }
.gallery-lightbox-toolbar button,
.gallery-lightbox > .gallery-lightbox-nav {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #46515d;
  border-radius: 10px;
  background: #11171d;
  color: #fff;
  cursor: pointer;
}
.gallery-lightbox-toolbar button { font-size: 25px; }
.gallery-lightbox > .gallery-lightbox-nav {
  position: static;
  inset: auto;
  font-size: 20px;
}
.gallery-lightbox > .gallery-lightbox-nav:hover,
.gallery-lightbox-toolbar button:hover { border-color: var(--accent); }
.gallery-lightbox figure {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 0;
}
.gallery-lightbox img { max-height: calc(100vh - 145px); }
.gallery-lightbox figcaption {
  max-width: 760px;
  color: #9ca5af;
  font-size: 11px;
  text-align: center;
}

/* Reactions and comments */
.article-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  margin: 0 0 72px;
  padding: 25px 27px;
  border: 1px solid #303944;
  border-radius: 13px;
  background: #10151a;
}
.article-feedback-copy > span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.article-feedback-copy h2 {
  margin: 7px 0 6px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.article-feedback-copy p { margin: 0; color: #818c97; font-size: 11px; line-height: 1.6; }
.article-feedback-actions { display: flex; gap: 9px; }
.feedback-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #3a4550;
  border-radius: 10px;
  background: #0b1015;
  color: #aab3bd;
  text-align: left;
  cursor: pointer;
}
.feedback-button > span:nth-child(2) { display: grid; gap: 2px; }
.feedback-button strong { color: #eef1f4; font-size: 11px; }
.feedback-button small { color: #6f7a85; font-size: 8px; white-space: nowrap; }
.feedback-button b {
  min-width: 24px;
  padding: 4px 6px;
  border-radius: 999px;
  background: #1c232b;
  font-size: 9px;
  text-align: center;
}
.feedback-button.dislike { grid-template-columns: auto minmax(90px, 1fr); }
.feedback-icon { color: var(--accent); font-size: 18px; }
.feedback-button.dislike .feedback-icon { color: #8f99a4; font-size: 20px; }
.feedback-button:hover,
.feedback-button.selected {
  border-color: rgba(var(--accent-rgb), .75);
  background: rgba(var(--accent-rgb), .1);
}
.feedback-button.selected .feedback-icon { color: var(--accent); }
.feedback-button:disabled { opacity: .6; cursor: wait; }

.discussion-heading {
  grid-template-columns: 1fr;
  gap: 0;
}
.comment-compose-grid {
  grid-template-columns: 1fr;
  align-items: start;
}
.comment-compose-grid label:first-child { width: 100%; }
.comment-compose input { height: 52px; min-height: 52px; }
.comment-compose textarea { width: 100%; min-height: 132px; resize: vertical; }
.comment-compose input:focus,
.comment-compose textarea:focus { border-color: var(--accent); }
.discussion-toolbar a.active::after { background: var(--accent); }
.discussion-comment-actions .comment-like.selected { border-color: rgba(var(--accent-rgb), .55); }

@media (max-width: 1100px) {
  .home-editorial-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  }
  .home-editorial-grid .news-card-featured { grid-row: span 2; }
  .development-hero-grid { gap: 45px; }
}

@media (max-width: 900px) {
  .portal-intro-grid,
  .portal-intro-grid.portal-intro-single {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
  }
  .home-media-signal { width: 250px; }
  .portal-search { grid-template-columns: minmax(0, 1fr) 150px auto; }
  .development-layout { grid-template-columns: 1fr; }
  .development-detail { position: static; min-height: 0; }
  .article-feedback { grid-template-columns: 1fr; }
  .article-feedback-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .header-tools { display: flex; align-items: center; margin-left: auto; }
  .header-search-button { display: grid; }
  .portal-intro-grid,
  .portal-intro-grid.portal-intro-single {
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .home-media-signal {
    width: 170px;
    display: grid;
    justify-self: start;
    margin: 8px 0 0;
  }
  .home-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-editorial-grid .news-card-featured { grid-column: 1 / -1; grid-row: auto; }
  .development-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .development-now { max-width: 620px; }
}

@media (max-width: 680px) {
  .portal-intro h1 { font-size: clamp(44px, 13vw, 56px); }
  .portal-search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }
  .portal-search-query { grid-column: 1 / -1; border-bottom: 1px solid #313944; }
  .portal-search-genre { border-left: 0; }
  .portal-search select { min-width: 0; width: 100%; }
  .portal-search button { min-width: 92px; justify-content: center; padding: 0 12px; }
  .home-media-signal { width: 142px; margin-top: 13px; }
  .home-editorial-grid { grid-template-columns: 1fr; }
  .home-editorial-grid .news-card-featured { grid-column: auto; }
  .development-hero { min-height: 0; }
  .development-hero-grid { padding-top: 62px; padding-bottom: 62px; }
  .development-hero h1 { font-size: 58px; }
  .development-section { padding: 70px 0 84px; }
  .development-heading { display: block; }
  .development-heading p { margin-top: 16px; }
  .development-list button { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 20px 4px; }
  .roadmap-state { grid-column: 2; justify-self: start; }
  .development-detail { padding: 27px 23px; }
  .article-gallery-grid.gallery-count-2,
  .article-gallery-grid.gallery-count-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .article-gallery-grid.gallery-count-3 figure:first-child { grid-row: auto; }
  .article-gallery-grid.gallery-count-3 figure:first-child button { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .gallery-lightbox { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 7px; padding: 68px 8px 24px; }
  .gallery-lightbox-toolbar > span { font-size: 9px; }
  .gallery-lightbox-toolbar button,
  .gallery-lightbox > .gallery-lightbox-nav { width: 40px; height: 40px; }
  .article-feedback { margin-bottom: 56px; padding: 22px 18px; }
  .article-feedback-actions { display: grid; grid-template-columns: 1fr; }
  .feedback-button { width: 100%; }
  .comment-compose { padding: 18px; }
  .comment-compose-grid label:first-child { width: 100%; }
  .about-finale blockquote { font-size: 43px; }
  .about-finale-actions { display: grid; }
  .about-finale-actions .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-orbit-one,
  .signal-orbit-two { animation: none; }
}
