/* ============================================================
   GTC redesign layer — loaded AFTER style.css on every public page.
   Pure override: delete the <link> to get the old look back.
   Source of truth for the look: GreekTranslationCrew_Template.
   ============================================================ */
:root {
  --bg-2: #0d1020;
  --surface: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #5cc8ff;
  --accent-2: #9b6bff;
  --accent-3: #ff6bd5;
  --glow: 0 0 40px rgba(92, 200, 255, 0.30);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --font: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
body { line-height: 1.55; -webkit-font-smoothing: antialiased; animation: rd-pagein .5s ease both; }
@keyframes rd-pagein { from { opacity: 0; } }

/* old background layers are replaced by the aurora below */
#bg-canvas, .bg-glow, .bg-grid { display: none !important; }
.rd-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rd-aurora i { position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform; animation: rd-drift 24s ease-in-out infinite alternate; }
.rd-aurora i:nth-child(1) { width: 560px; height: 560px; left: -8%; top: -12%; background: var(--accent); opacity: .30; }
.rd-aurora i:nth-child(2) { width: 520px; height: 520px; right: -6%; top: 4%; background: var(--accent-2); opacity: .30; animation-duration: 30s; animation-delay: -6s; }
.rd-aurora i:nth-child(3) { width: 520px; height: 520px; left: 35%; bottom: -22%; background: var(--accent-3); opacity: .18; animation-duration: 34s; animation-delay: -12s; }
@keyframes rd-drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,70px) scale(.94); } }
.rd-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); }
.rd-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
body::after { content: ""; position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- navigation ---------- */
.nav { background: rgba(7, 8, 15, .62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: padding .3s, box-shadow .3s; }
.nav.is-stuck { padding-block: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.nav__logo { filter: none; border-radius: 10px; }
.nav__name { background: none; color: var(--text); -webkit-text-fill-color: initial; font-weight: 700; letter-spacing: -.01em; }
.nav__links a { padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a::after { display: none; }
.nav__links a:hover { background: var(--surface); color: var(--text); }

/* ---------- buttons ---------- */
.btn { border-radius: 14px; font-weight: 700; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s; }
.btn--primary { position: relative; overflow: hidden; color: #07080f; background: var(--grad); box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn--primary:hover { box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn--primary:hover::after { left: 130%; }
.btn--ghost:hover { border-color: var(--border-strong); box-shadow: none; background: rgba(255,255,255,.075); }

/* ---------- hero ---------- */
.hero__badge { background: var(--surface); font-weight: 600; }
.hero__badge-dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: rd-pulse 2s ease-out infinite; }
@keyframes rd-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 100% { box-shadow: 0 0 0 12px transparent; } }
.hero__title { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.hero__title-line--accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fade-up .6s ease .15s both, rd-flow 7s linear infinite;
}
@keyframes rd-flow { to { background-position: 250% 0; } }
.hero__stats .stat { padding: 16px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); align-items: center; }
.stat__num { background: none; color: var(--text); -webkit-text-fill-color: initial; font-weight: 700; letter-spacing: -.02em; }

/* ---------- section headings ---------- */
.section-title { background: none; color: var(--text); -webkit-text-fill-color: initial; font-weight: 700; letter-spacing: -.03em; }
.section-title__text { background: none; color: var(--text); -webkit-text-fill-color: initial; }

/* ---------- game cards ---------- */
.game-card__art::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 70% 30%, transparent 0 22%, rgba(255,255,255,.10) 22.4% 22.9%, transparent 23.3% 34%, rgba(255,255,255,.07) 34.4% 34.9%, transparent 35.3%); }
.game-card__art span { letter-spacing: -.04em; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.game-card__title { letter-spacing: -.01em; }
.game-card__status { background: rgba(7, 8, 15, .65); backdrop-filter: blur(8px); }
.game-card__bar { height: 6px; }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 60%); }
.game-card:hover::before { opacity: 1; }
/* grid page only: 3D tilt (the home carousel positions its cards itself) */
.games-grid .game-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.games-grid .game-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c1) 35%, transparent), 0 24px 60px color-mix(in srgb, var(--c2) 30%, transparent); }
.game-card__img, .game-card__art { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.games-grid .game-card:hover .game-card__img, .games-grid .game-card:hover .game-card__art { transform: scale(1.06); }
.game-card { overflow: hidden; }

/* ---------- team ---------- */
.team-card { position: relative; overflow: hidden; background: var(--surface); transition: transform .25s, border-color .25s; }
.team-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 60%); }
.team-card:hover::before { opacity: 1; }
.team-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

/* ---------- game page ---------- */
.gd__section-h { font-weight: 700; letter-spacing: -.02em; }
.gd-ver__rel { transition: border-color .25s, transform .25s; }
.gd-ver__rel:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.gd__changelog li, .gd__dep { transition: transform .25s; }

/* ---------- footer ---------- */
.footer { background: transparent; border-top: 1px solid var(--border); }

/* ---------- reveal on scroll (classes are removed again once shown) ---------- */
.rd-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.rd-rv.rd-in { opacity: 1; transform: none; }
.rd-rv.game-card { transform: perspective(900px) translateY(26px); }
.rd-rv.rd-in.game-card { transform: perspective(900px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rd-rv { opacity: 1 !important; transform: none !important; }
}

.games-grid .game-card { position: relative; }


/* ============================================================
   HOMEPAGE EXTRAS (redesign-home.js)
   ============================================================ */
/* headline: fixed slot so the rotating phrase never moves the layout */
.hero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero__title-line--accent { min-height: 1.1em; white-space: nowrap; transition: opacity .35s, transform .35s; }
.hero__title-line--accent.rd-swap-out { opacity: 0; transform: translateY(14px); }
@media (max-width: 700px) { .hero__title-line--accent { white-space: normal; min-height: 2.3em; } }

.hero { position: relative; }
.rd-float { position: absolute; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(8px); font-size: .8rem; font-weight: 700; white-space: nowrap; animation: rd-bob 6s ease-in-out infinite; pointer-events: none; }
.rd-float--a { left: -16%; top: 34%; } .rd-float--b { right: -18%; top: 26%; animation-delay: -3s; }
@keyframes rd-bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@media (max-width: 1250px) { .rd-float { display: none; } }

/* hero showcase */
.rd-showcase { position: relative; width: 100%; height: 330px; max-width: 760px; margin: 0 auto 36px; }
.rd-sc { position: absolute; left: 50%; top: 0; width: 240px; border-radius: 22px; overflow: hidden; text-align: left; text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); box-shadow: 0 30px 70px rgba(0,0,0,.5);
  transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--r));
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s; animation: rd-scfloat 7s ease-in-out infinite; }
.rd-sc__cover { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 60%), radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 55%), #11142a; }
.rd-sc__cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 16px); }
.rd-sc__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-sc__cover b { position: relative; font-size: 3rem; font-weight: 800; letter-spacing: -.05em; color: rgba(255,255,255,.92); -webkit-text-stroke: 1px rgba(255,255,255,.35); }
.rd-sc__t { display: block; padding: 12px 16px 14px; font-weight: 700; font-size: .92rem; }
.rd-sc__t small { display: block; color: var(--text-dim); font-weight: 500; font-size: .76rem; }
.rd-sc--l { --x: -240px; --y: 44px; --r: -9deg; z-index: 1; animation-delay: -1.5s; }
.rd-sc--m { --x: 0px; --y: 0px; --r: 0deg; z-index: 3; }
.rd-sc--r { --x: 240px; --y: 44px; --r: 9deg; z-index: 2; animation-delay: -3.5s; }
.rd-showcase:hover .rd-sc--l { --x: -280px; --r: -12deg; }
.rd-showcase:hover .rd-sc--r { --x: 280px; --r: 12deg; }
.rd-showcase:hover .rd-sc--m { --y: -12px; }
.rd-sc:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c1) 45%, transparent), 0 30px 70px color-mix(in srgb, var(--c2) 35%, transparent); }
@keyframes rd-scfloat { 50% { translate: 0 -10px; } }
.rd-showcase::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -10px; height: 70px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent); filter: blur(20px); }
@media (max-width: 700px) { .rd-showcase { height: 270px; } .rd-sc { width: 190px; } .rd-sc--l { --x: -110px; } .rd-sc--r { --x: 110px; }
  .rd-showcase:hover .rd-sc--l { --x: -120px; } .rd-showcase:hover .rd-sc--r { --x: 120px; } }

/* marquee */
.rd-marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rd-marquee__track { display: flex; gap: 48px; width: max-content; animation: rd-scroll 42s linear infinite; }
.rd-marquee:hover .rd-marquee__track { animation-play-state: paused; }
.rd-marquee span { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--text-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.rd-marquee span::after { content: "✦"; color: var(--accent); font-size: .8rem; }
@keyframes rd-scroll { to { transform: translateX(-50%); } }

/* "why GTC" tiles */
.rd-why { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 70px 24px 20px; }
.rd-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; margin-top: 30px; }
.rd-tile { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transition: transform .3s, border-color .3s; }
.rd-tile:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.rd-tile h3 { font-size: 1.15rem; letter-spacing: -.02em; } .rd-tile p { color: var(--text-dim); font-size: .92rem; max-width: 38ch; }
.rd-tile--wide { grid-column: span 2; } .rd-tile--tall { grid-row: span 2; }
.rd-tile--accent { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), color-mix(in srgb, var(--accent-2) 26%, var(--bg-2))); }
.rd-tile__vis { position: absolute; inset: 0 0 auto 0; height: 55%; padding-top: 16px; display: grid; place-items: center; pointer-events: none; }
.rd-tile--tall .rd-tile__vis { height: 60%; }
.rd-big { font-size: 4.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-vchips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
.rd-vchips i { font-style: normal; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); animation: rd-chipin .6s both; }
.rd-vchips i:first-child { background: var(--grad); color: #07080f; border-color: transparent; }
.rd-vchips i:nth-child(2) { animation-delay: .1s; } .rd-vchips i:nth-child(3) { animation-delay: .2s; } .rd-vchips i:nth-child(4) { animation-delay: .3s; }
@keyframes rd-chipin { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.rd-ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; background: conic-gradient(var(--accent) 0 100%, transparent 0); position: relative; }
.rd-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg-2); } .rd-ring span { position: relative; }
@media (max-width: 860px) { .rd-bento { grid-template-columns: 1fr 1fr; } .rd-tile--tall { grid-row: auto; } }
@media (max-width: 520px) { .rd-bento { grid-template-columns: 1fr; } .rd-tile--wide { grid-column: auto; } }

/* Discord band */
.rd-band-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 30px auto 70px; padding: 0 24px; }
.rd-band { position: relative; border-radius: 26px; padding: 52px 24px; text-align: center; border: 1px solid var(--border);
  background: radial-gradient(600px 300px at 15% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), radial-gradient(600px 300px at 90% 100%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 60%), var(--surface); }
.rd-band h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.rd-band p { color: var(--text-dim); margin-bottom: 22px; }
.rd-band::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: .9;
  background: conic-gradient(from var(--rd-ang, 0deg), transparent 0 55%, var(--accent) 70%, var(--accent-2) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rd-spin 6s linear infinite; }
@property --rd-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rd-spin { to { --rd-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .rd-sc, .rd-float, .rd-marquee__track, .rd-vchips i, .rd-band::after { animation: none !important; } }


.rd-why .section-head { max-width: 820px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.team-grid > .team-card { flex: 1 1 340px; max-width: 400px; }
.team-card__game { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- game art in the background ---------- */
.rd-figs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.rd-fig { position: absolute; top: 0; bottom: 0; width: min(31vw, 470px); opacity: .4; overflow: hidden;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.rd-fig--l { left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 45%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 45%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); }
.rd-fig--r { right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.65) 45%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.65) 45%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); }
.rd-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%;
  opacity: 0; transform: scale(1.04); filter: saturate(1.15) contrast(1.05) brightness(.9); transition: opacity 1.8s ease; }
.rd-fig img.is-on { opacity: 1; }
/* The zoom runs on BOTH layers all the time. Tying it to .is-on made the outgoing image snap back to its small size the moment it started fading out. */
.rd-fig img { animation: rd-kenburns 18s ease-in-out infinite alternate; }
.rd-fig img + img { animation-delay: -9s; }
@keyframes rd-kenburns { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.14) translateY(-2%); } }
@media (max-width: 1000px) { .rd-figs { display: none; } }
@media (prefers-reduced-motion: reduce) { .rd-fig img { animation: none; } }

/* "Cut-out" look without a cut-out: SCREEN blending makes the dark parts of a
   cover vanish into the dark page and leaves only the lit figures. The blend
   must sit on the masked strip itself (a parent with opacity would isolate it). */
.rd-fig { mix-blend-mode: screen; opacity: .6; }
.rd-fig img { filter: saturate(1.2) contrast(1.5) brightness(.8); }
/* ---------- game edit modal (game page) + embedded admin editor ---------- */
.gd-edit-modal__backdrop { background: rgba(5, 6, 13, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.gd-edit-modal__panel { border-color: var(--border-strong); border-radius: 22px; background: rgba(13, 16, 32, .9);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .7), 0 0 70px color-mix(in srgb, var(--accent-2) 22%, transparent);
  animation: rd-modalin .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rd-modalin { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.gd-edit-modal__close { background: var(--surface); transition: transform .2s, border-color .2s, color .2s; }
.gd-edit-modal__close:hover { transform: rotate(90deg); }
/* inside the iframe the page behind is transparent: no own background layers */
.is-admin-embed .rd-aurora, .is-admin-embed .rd-grid { display: none; }
.admin-form, .admin-row { border-radius: 16px; }

.rd-nofade .rd-fig img { transition: none !important; }

/* long reading pages (about, legal): keep the background art faint so text stays easy to read */
body:has(article.about) .rd-figs { opacity: .28; }

/* ---------- "why GTC" tiles, take 2: one grid of left-aligned visual + text ---------- */
.rd-bento { grid-auto-rows: 214px; gap: 18px; }
.rd-tile { padding: 22px 24px 24px; gap: 4px; justify-content: flex-end; }
.rd-tile h3 { font-size: 1.1rem; }
.rd-tile p { font-size: .9rem; line-height: 1.5; }
.rd-tile__vis { inset: 22px 24px auto 24px; height: auto; padding: 0; display: flex; align-items: flex-start; justify-content: flex-start; }
.rd-tile--tall .rd-tile__vis { height: auto; }
.rd-big { font-size: 3.6rem; letter-spacing: -.05em; line-height: .95; }
.rd-ring { width: 68px; height: 68px; font-size: 1rem; background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent)); box-shadow: 0 0 34px color-mix(in srgb, var(--accent-2) 35%, transparent); animation: rd-ringspin 14s linear infinite; }
.rd-ring::before { inset: 6px; }
.rd-ring span { animation: rd-ringspin 14s linear infinite reverse; }
@keyframes rd-ringspin { to { transform: rotate(360deg); } }
.rd-tile:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* mini version list inside the big tile */
.rd-mock { width: min(100%, 360px); display: grid; gap: 8px; }
.rd-mock__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: .86rem;
  background: rgba(7, 8, 15, .45); border: 1px solid var(--border); backdrop-filter: blur(6px); opacity: calc(1 - var(--i, 0) * .17); transform: translateX(calc(var(--i, 0) * 10px)); }
.rd-mock__row:nth-child(1) { --i: 0; } .rd-mock__row:nth-child(2) { --i: 1; } .rd-mock__row:nth-child(3) { --i: 2; } .rd-mock__row:nth-child(4) { --i: 3; }
.rd-mock__row b { font-weight: 800; letter-spacing: -.01em; }
.rd-mock__row em { font-style: normal; color: var(--text-dim); font-size: .8rem; }
.rd-mock__row span { font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.rd-mock__row.is-latest { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, rgba(7,8,15,.55)), color-mix(in srgb, var(--accent-2) 34%, rgba(7,8,15,.55))); border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-2) 25%, transparent); }
.rd-mock__row.is-latest em { color: var(--text); font-weight: 700; }
.rd-mock__row.is-latest span { background: var(--grad); color: #07080f; }

/* option groups inside the wide tile */
.rd-opts { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.rd-opts__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-opts__group small { flex-basis: 100%; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.rd-opts i { font-style: normal; font-weight: 700; font-size: .8rem; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-dim); }
.rd-opts i.is-on { background: var(--grad); color: #07080f; border-color: transparent; }
@media (max-width: 860px) { .rd-bento { grid-auto-rows: auto; } .rd-tile { min-height: 190px; } .rd-tile__vis { position: static; margin-bottom: auto; padding-bottom: 18px; } .rd-tile--tall { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .rd-ring, .rd-ring span { animation: none; } }

/* tiles sit on top of the background art: a little frosted glass keeps them readable */
.rd-tile { background: rgba(13, 16, 32, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rd-tile--accent { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, rgba(13,16,32,.8)), color-mix(in srgb, var(--accent-2) 26%, rgba(13,16,32,.8))); }
/* the two option groups share one row (they used to stack and run into the title) */
.rd-opts { flex-wrap: nowrap; gap: 12px 24px; }
.rd-opts__group { flex-wrap: wrap; gap: 6px 6px; }
.rd-opts i { padding: 5px 11px; font-size: .78rem; white-space: nowrap; }
@media (max-width: 1100px) { .rd-opts { flex-wrap: wrap; } }

/* ---------- server-rendered content for search engines ---------- */
.gd-ssr, .np-ssr { max-width: 860px; margin: 0 auto; padding: 8px 24px 40px; line-height: 1.7; }
.gd-ssr h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 8px; }
.gd-ssr h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.gd-ssr__meta, .np-ssr__meta { color: var(--text-dim); font-size: .92rem; }
.gd-ssr ul, .gd-ssr ol { margin: 6px 0 6px 1.3rem; display: grid; gap: 4px; }
.gd-ssr a, .np-ssr a { color: var(--accent); }
.seo-index { position: relative; z-index: 1; max-width: 1180px; margin: 10px auto 60px; padding: 28px 24px 0; border-top: 1px solid var(--border); }
.seo-index h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.seo-index__list { list-style: none; columns: 3 260px; column-gap: 28px; font-size: .88rem; }
.seo-index__list li { break-inside: avoid; padding: 3px 0; }
.seo-index__list a { color: var(--text-dim); text-decoration: none; }
.seo-index__list a:hover { color: var(--accent); text-decoration: underline; }
.seo-index p { margin-top: 12px; font-size: .9rem; } .seo-index p a { color: var(--accent); }

/* Discord buttons wear Discord's own colours (official "blurple"), wherever they are on the site */
.btn[href*="discord.gg"], .btn[href*="discord.com/invite"] {
  position: relative; overflow: hidden; color: #fff; background: #5865f2; border-color: transparent;
  box-shadow: 0 8px 28px rgba(88, 101, 242, .38);
}
.btn[href*="discord.gg"]:hover, .btn[href*="discord.com/invite"]:hover {
  color: #fff; background: #4752c4; border-color: transparent; box-shadow: 0 12px 34px rgba(88, 101, 242, .55);
}
.btn[href*="discord.gg"] svg, .btn[href*="discord.com/invite"] svg { fill: #fff; }
.btn[href*="discord.gg"]::after, .btn[href*="discord.com/invite"]::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s;
}
.btn[href*="discord.gg"]:hover::after, .btn[href*="discord.com/invite"]:hover::after { left: 130%; }
