/* ==========================================================================
   The Retro Report (powered by Gametality): /retro-report/ and game-page stories.
   Colours come from the active theme (--t-* variables in themes.css).
   ========================================================================== */

.rr-page { max-width: 1320px; margin: 0 auto; padding: 0 0 40px; --rr-ring: var(--t-card-ring, #3b7bff); --rr-glow: var(--t-card-glow, rgba(70,150,255,.5)); --rr-head: var(--t-head, #14245e); --rr-chip: var(--t-primary, #6ccc12); --rr-chip-text: var(--t-primary-text, #102000); }
.rr-page .hp-sec:first-child { margin-top: clamp(16px, 2.5vw, 34px); }
.rr-page .hp-sec + .hp-sec { margin-top: clamp(18px, 2.4vw, 32px); }

/* ---------- masthead ---------- */
.rr-mast { display: block; }
.rr-mast .rr-powered--mast { margin-top: 10px; }
.rr-mast__kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--rr-head); opacity: .7; }
.rr-mast__kicker .xp-i { width: 15px; height: 15px; }
.rr-mast__title { margin: 0; font-size: clamp(32px, 4.6vw, 62px); line-height: .98; font-weight: 1000; letter-spacing: -.035em; color: var(--rr-head); }
.rr-mast__the { font-size: .5em; letter-spacing: 0; vertical-align: .55em; font-style: italic; font-weight: 900; opacity: .8; }
.rr-mast__tag { margin: 8px 0 0; font-size: clamp(14px, 1.25vw, 18px); font-weight: 800; color: var(--rr-head); opacity: .72; }

/* "Powered by Gametality" */
.rr-powered { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; text-decoration: none; color: var(--rr-head);
	background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 2px 8px rgba(0,20,60,.12); transition: transform .18s ease, box-shadow .18s ease; }
.rr-powered:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 2px var(--rr-ring), 0 6px 16px rgba(0,20,60,.18); }
.rr-powered__by { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.rr-powered__logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.rr-powered__name { font-size: 15px; font-weight: 1000; letter-spacing: -.01em; }
.rr-powered--mast { padding: 8px 18px 8px 10px; }
.rr-powered--mast .rr-powered__logo { width: 40px; height: 40px; }
.rr-powered--mast .rr-powered__name { font-size: 18px; }

/* ---------- chips ---------- */
.rr-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
	color: var(--rr-chip-text); background: var(--rr-chip); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 6px rgba(0,0,0,.18); }
.rr-card__img .rr-chip { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- featured story ---------- */
.rr-feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 34px); align-items: center; }
.rr-feat__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0b1530; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rr-ring), 0 12px 26px rgba(0,20,60,.25); }
.rr-feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rr-feat:hover .rr-feat__img img { transform: scale(1.03); }
.rr-feat__kick { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.rr-feat__sec { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--rr-head); opacity: .7; }
.rr-feat__title { margin: 0; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.12; font-weight: 1000; letter-spacing: -.02em; }
.rr-feat__title a { color: var(--rr-head); text-decoration: none; }
.rr-feat__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rr-feat__ex { margin: 12px 0 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; font-weight: 600; color: #2b3550; }
.rr-feat__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 16px; font-size: 13px; font-weight: 800; color: #4b5675; }

/* "Read on Gametality" button */
.rr-read { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 900; text-decoration: none;
	color: var(--rr-chip-text); background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 52%) var(--rr-chip);
	box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), 0 4px 12px rgba(0,0,0,.2); transition: transform .18s ease, box-shadow .18s ease; }
.rr-read:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 0 14px var(--rr-glow), 0 6px 16px rgba(0,0,0,.22); }
.rr-ext { flex: none; opacity: .85; }

/* ---------- filters ---------- */
.rr-latest__head { margin-bottom: 10px !important; }
.rr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(14px, 1.6vw, 22px); }
.rr-filter { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 900; cursor: pointer; color: var(--rr-head);
	background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1.5px rgba(30,50,110,.16); transition: background .15s ease, box-shadow .15s ease, color .15s ease; }
.rr-filter:hover { box-shadow: inset 0 0 0 2px var(--rr-ring); }
.rr-filter.is-on { color: var(--rr-chip-text); background: var(--rr-chip); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 2px rgba(255,255,255,.7), 0 0 10px var(--rr-glow); }
.rr-filter.is-empty:not(.is-on) { opacity: .5; }
.rr-filter:focus-visible { outline: 3px solid var(--rr-ring); outline-offset: 2px; }

/* ---------- story cards ---------- */
.rr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.rr-cell[hidden] { display: none; }
.rr-card { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(30,50,110,.12), 0 6px 16px rgba(10,30,90,.14); transition: transform .2s ease, box-shadow .2s ease; }
.rr-card:hover, .rr-card:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 2.5px var(--rr-ring), 0 0 18px var(--rr-glow), 0 12px 24px rgba(10,30,90,.2); }
.rr-card__img { position: relative; aspect-ratio: 16 / 9; background: #0b1530; overflow: hidden; }
.rr-card__img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.rr-card:hover .rr-card__img > img { transform: scale(1.04); }
.rr-noimg { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #3a2a7a, #120a2e); }
.rr-noimg img { width: 30%; max-width: 110px; height: auto; border-radius: 50%; opacity: .9; }
.rr-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 14px; }
.rr-card__title { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.22; font-weight: 1000; letter-spacing: -.01em; }
.rr-card__title a { color: var(--rr-head); text-decoration: none; }
.rr-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.rr-card__title a:focus-visible { outline: none; }
.rr-card:focus-within { outline: 3px solid var(--rr-ring); outline-offset: 2px; }
.rr-card__ex { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; color: #46506b; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rr-card__meta { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 800; color: #6a7390; }
.rr-card__src { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--rr-head); opacity: .75; }
.rr-card:hover .rr-card__src { opacity: 1; }

.rr-none { margin: 8px 0 0; padding: 22px; text-align: center; border-radius: 16px; font-weight: 800; color: #4b5675; background: rgba(255,255,255,.6); }
.rr-more-wrap { display: flex; justify-content: center; }
.rr-more { margin-top: clamp(16px, 2vw, 26px); min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer;
	color: var(--rr-head); background: #fff; box-shadow: inset 0 0 0 2px var(--rr-ring), 0 4px 12px rgba(0,20,60,.15); transition: transform .18s ease, box-shadow .18s ease; }
.rr-more:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--rr-ring), 0 0 14px var(--rr-glow), 0 6px 16px rgba(0,20,60,.18); }
.rr-more[hidden] { display: none; }

.rr-empty { text-align: center; padding: clamp(28px, 4vw, 56px) 20px !important; }
.rr-empty h2 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 28px); font-weight: 1000; color: var(--rr-head); }
.rr-empty p { margin: 0 0 18px; font-weight: 700; color: #46506b; }

.rr-foot { margin: 18px auto 0; padding: 0 16px; max-width: 760px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--t-sub, #eaf3ff); opacity: .9; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* ---------- darker themes: readable text on the glass panels ---------- */
html[data-sg-theme="playstation"] .rr-page, html[data-sg-theme="xbox-og"] .rr-page { --rr-head: #0d1a3c; }
html[data-sg-theme="xbox-og"] .rr-page { --rr-head: #0d3d05; }

/* ---------- game pages ---------- */
.rr-game { --rr-ring: var(--t-card-ring, #3b7bff); --rr-glow: var(--t-card-glow, rgba(70,150,255,.5)); --rr-head: var(--t-head, #14245e); --rr-chip: var(--t-primary, #6ccc12); --rr-chip-text: var(--t-primary-text, #102000); }
.rr-game__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.rr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.rr-feat { grid-template-columns: 1fr; }
}
@media (max-width: 699.98px) {
	.rr-powered--mast { padding: 6px 14px 6px 8px; }
	.rr-powered--mast .rr-powered__logo { width: 30px; height: 30px; }
	.rr-powered--mast .rr-powered__name { font-size: 16px; }
	.rr-grid { grid-template-columns: 1fr; }
	.rr-filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; margin-right: -4px; padding: 2px 4px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.rr-filters::-webkit-scrollbar { display: none; }
	.rr-filter { flex: none; }
	.rr-feat__img { border-radius: 16px; }
	.rr-read { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.rr-card, .rr-card__img > img, .rr-feat__img img, .rr-read, .rr-powered, .rr-more { transition: none; }
	.rr-card:hover, .rr-read:hover, .rr-powered:hover, .rr-more:hover { transform: none; }
	.rr-card:hover .rr-card__img > img, .rr-feat:hover .rr-feat__img img { transform: none; }
}
.rr-page { min-height: calc(100vh - 220px); }

/* ---------- homepage section ---------- */
.rr-home { --rr-ring: var(--t-card-ring, #3b7bff); --rr-glow: var(--t-card-glow, rgba(70,150,255,.5)); --rr-head: var(--t-head, #14245e); --rr-chip: var(--t-primary, #6ccc12); --rr-chip-text: var(--t-primary-text, #102000); }
.rr-home__head { flex-wrap: wrap; }
.rr-titleblock { display: grid; justify-items: start; gap: 8px; }
.rr-home__head { align-items: flex-end; }
.rr-powered--sm { padding: 4px 12px 4px 6px; }
.rr-powered--sm .rr-powered__logo { width: 24px; height: 24px; }
.rr-powered--sm .rr-powered__name { font-size: 14px; }
@media (max-width: 699.98px) {
	.rr-grid--home { grid-template-columns: 1fr; }
}
@media (min-width: 700px) and (max-width: 1100px) { .rr-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rr-grid--home .rr-card__ex { -webkit-line-clamp: 2; } }
/* phones: compact homepage list (thumbnail beside the headline) */
@media (max-width: 699.98px) {
	.rr-grid--home { gap: 10px; }
	.rr-grid--home .rr-card { flex-direction: row; border-radius: 16px; }
	.rr-grid--home .rr-card__img { flex: 0 0 36%; aspect-ratio: auto; min-height: 96px; }
	.rr-grid--home .rr-card__img .rr-chip { display: none; }
	.rr-grid--home .rr-card__body { padding: 10px 12px; gap: 6px; }
	.rr-grid--home .rr-card__title { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.rr-grid--home .rr-card__ex { display: none; }
	.rr-grid--home .rr-card__meta { font-size: 11.5px; }
}
@media (max-width: 699.98px) {
	.rr-grid--home .rr-card__meta time { white-space: nowrap; }
	.rr-grid--home .rr-card__readon { display: none; }
}
