/* Roomix game skin — same look as the in-game tablet: night violet surfaces, the Roomix face wallpaper drifting
   behind everything, DynaPuff titles, puffy buttons with a lip, hot-pink dividers, springy (OutBack) motion. */

@font-face { font-family: "DynaPuff"; src: url("../fonts/DynaPuff-Bold.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Variable.ttf") format("truetype"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }

:root {
  --night: #15112A;
  --plum: #251F48;
  --violet: #281B60;
  --indigo: #33236A;
  --rim: #4E3F94;
  --lilac: #A98BFF;
  --lilac-2: #D2B8FF;
  --hot: #FF5C93;
  --ink: #1C1240;
  --t-blue: #5B8CFF; --t-blue-d: #2F54C8;
  --t-purple: #B56CF0; --t-purple-d: #7A3CC6;
  --t-teal: #35C2B6; --t-teal-d: #16807C;
  --t-orange: #F2904E; --t-orange-d: #C4502C;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, .61, .36, 1);
  --display: "DynaPuff", "Fredoka", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- page background */
body {
  background: radial-gradient(1200px 700px at 50% -10%, #3a2780 0%, var(--violet) 38%, var(--night) 78%) fixed, var(--night);
}
/* The face wallpaper, drifting diagonally like the tablet's background. */
body::before {
  content: ""; position: fixed; inset: -240px; z-index: -2; pointer-events: none; border-radius: 0; filter: none; opacity: .085;
  width: auto; height: auto; top: -240px; left: -240px;
  background: url("../img/face-pattern.png") 0 0 / 230px 230px repeat;
  animation: rx-pattern 38s linear infinite;
}
body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; inset: 0; width: auto; height: auto; top: 0; left: 0; bottom: 0; right: 0;
  border-radius: 0; filter: none; opacity: 1; animation: none;
  background: radial-gradient(900px 600px at 85% 110%, rgba(255, 92, 147, .16), transparent 60%), radial-gradient(800px 500px at 0% 40%, rgba(140, 104, 255, .18), transparent 60%);
}
@keyframes rx-pattern { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(230px, 230px, 0); } }
#rx-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* cursor glow */
.rx-cursor { position: fixed; z-index: 0; width: 520px; height: 520px; left: 0; top: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169, 139, 255, .16), transparent); transition: opacity .4s; will-change: transform; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .page-head h1, .hero h1 { font-family: var(--display); letter-spacing: .2px; font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 34px); }
.section-title h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.section-title a { color: var(--lilac-2); font-weight: 600; }
.section-title a:hover { color: #fff; }
.muted { color: var(--muted); }
::selection { background: rgba(255, 92, 147, .45); }

/* ---------------------------------------------------------------- header = tablet header */
.site-header {
  background: linear-gradient(180deg, rgba(51, 35, 106, .94), rgba(35, 42, 102, .9));
  border-bottom: 3px solid var(--hot); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; background: url("../img/face-pattern.png") 0 0 / 150px 150px repeat; }
.brand { gap: 14px; }
.brand-logo { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18), 0 8px 18px -6px rgba(255, 92, 147, .7); animation: rx-wobble 6s var(--smooth) infinite; }
.brand-name { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: 1px; color: #fff; text-shadow: 0 3px 0 rgba(28, 18, 64, .55); }
.brand-sep { width: 3px; height: 30px; border-radius: 2px; background: var(--hot); flex: none; }
.brand-page { font-family: var(--display); font-size: 21px; color: #fff; opacity: .92; white-space: nowrap; }
@keyframes rx-wobble { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-12deg) scale(1.08); } 94% { transform: rotate(9deg) scale(1.05); } }
.brand:hover .brand-logo { animation: rx-spin .7s var(--spring); }
@keyframes rx-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.2); } to { transform: rotate(360deg) scale(1); } }

.nav { gap: 6px; }
.nav-link { position: relative; padding: 9px 14px; border-radius: 16px; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 15px; gap: 8px; }
.nav-link svg { width: 20px; height: 20px; flex: none; transition: transform .35s var(--spring); }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link:hover svg { transform: translateY(-2px) scale(1.18) rotate(-6deg); }
.nav-link.active { color: #fff; background: rgba(16, 7, 42, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 26px; height: 4px; margin-left: -13px; border-radius: 3px; background: var(--hot); animation: rx-pop .45s var(--spring); }
@keyframes rx-pop { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.account-chip { background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); border-radius: 16px; }
.account-chip:hover { border-color: var(--hot); transform: translateY(-1px); }
.badge { background: var(--hot); box-shadow: 0 0 0 2px var(--indigo); animation: rx-throb 2.2s ease-in-out infinite; }
@keyframes rx-throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------------------------------------------------------------- buttons: puffy with a lip */
.btn { font-family: inherit; font-weight: 600; border-radius: 18px; transition: transform .25s var(--spring), box-shadow .25s var(--smooth), filter .2s; }
.btn:active { transform: translateY(3px) scale(.96); }
.btn.primary { color: var(--ink); background: linear-gradient(180deg, var(--lilac-2), #9E78FF); background-size: 100% 140%; border: 0;
  box-shadow: 0 6px 0 #4b2fb0, 0 18px 34px -14px rgba(158, 120, 255, .9); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #4b2fb0, 0 26px 40px -14px rgba(158, 120, 255, 1); filter: brightness(1.06); }
.btn.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #4b2fb0, 0 8px 16px -10px rgba(158, 120, 255, .8); }
.btn.hot { color: #fff; border: 0; background: linear-gradient(180deg, #ff86b0, var(--hot)); box-shadow: 0 6px 0 #a3245a, 0 18px 34px -14px rgba(255, 92, 147, .9); }
.btn.hot:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #a3245a, 0 26px 40px -12px rgba(255, 92, 147, 1); }
.btn.ghost { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .22); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn.lg { padding: 17px 30px; font-size: 18px; border-radius: 22px; }

/* ---------------------------------------------------------------- surfaces */
.card { background: linear-gradient(180deg, rgba(47, 40, 88, .92), rgba(33, 27, 68, .94)); border: 2px solid var(--rim); border-radius: var(--radius); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); }
.empty { border: 2px dashed var(--rim); background: rgba(37, 31, 72, .55); border-radius: var(--radius); }
.tab { border: 2px solid var(--rim); background: rgba(37, 31, 72, .7); color: var(--muted); font-weight: 600; transition: transform .3s var(--spring), background .2s; }
.tab:hover { color: #fff; transform: translateY(-2px); }
.tab.active { background: linear-gradient(180deg, #ff86b0, var(--hot)); border-color: transparent; color: #fff; box-shadow: 0 5px 0 #a3245a; }
.pill { background: rgba(255, 92, 147, .16); color: #ffc2d7; border: 2px solid rgba(255, 92, 147, .4); font-weight: 600; }
.page-head { padding-top: 54px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 52px); text-shadow: 0 5px 0 rgba(28, 18, 64, .6); }
.skeleton { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 2px solid var(--rim); }
.toast { border: 2px solid var(--rim); border-radius: 18px; background: rgba(37, 31, 72, .97); animation: rx-toast .5s var(--spring); }
@keyframes rx-toast { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
input, textarea, select { font-family: inherit; }

.site-footer { border-top: 3px solid var(--hot); background: linear-gradient(180deg, rgba(35, 42, 102, .5), rgba(21, 17, 42, .9)); }

/* ---------------------------------------------------------------- home: hero tablet */
.rx-hero { position: relative; padding: 48px 0 30px; text-align: center; }
.rx-tablet { position: relative; margin: 0 auto; max-width: 1120px; padding: 22px; border-radius: 54px;
  background: linear-gradient(180deg, #3b3256, #231d36); box-shadow: 0 0 0 3px #6f5aa8 inset, 0 0 0 2px #120d22, 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(169, 139, 255, .45);
  transition: transform .6s var(--smooth); }
.rx-tablet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #0c0818; box-shadow: 0 0 0 2px #5d4c8e, 18px 0 0 -4px #8a74c6; }
.rx-screen { position: relative; overflow: hidden; border-radius: 34px; aspect-ratio: 1731 / 909; background: #10142e; isolation: isolate; }
.rx-scene { position: absolute; inset: 0; background: #10142e url("../img/hero-scene.jpg") no-repeat; background-size: cover; background-position: calc(50% + var(--px, 0px)) calc(60% + var(--py, 0px)); transition: background-position .5s var(--smooth); }
.rx-screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(21, 17, 42, .1) 30%, rgba(21, 17, 42, .82) 100%); }
.rx-screen-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 45%, transparent 55%); transform: translateX(-120%); animation: rx-glare 7s ease-in-out 2.2s infinite; }
@keyframes rx-glare { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.rx-hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 7%; padding: 0 24px; }
.rx-wordmark { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 13vw, 172px); line-height: .92; color: #fff; letter-spacing: 2px;
  text-shadow: 0 8px 0 #6c4fe0, 0 16px 0 rgba(28, 18, 64, .55), 0 30px 60px rgba(0, 0, 0, .55); display: inline-flex; }
.rx-wordmark span { display: inline-block; transform-origin: 50% 100%; opacity: 0; animation: rx-drop .9s var(--spring) forwards, rx-bob 4.8s ease-in-out infinite; animation-delay: calc(.25s + var(--i) * .09s), calc(1.6s + var(--i) * .18s); }
@keyframes rx-drop { 0% { opacity: 0; transform: translateY(-120%) scale(.6, 1.4); } 55% { opacity: 1; transform: translateY(6%) scale(1.25, .72); } 75% { transform: translateY(-4%) scale(.94, 1.08); } 100% { opacity: 1; transform: none; } }
@keyframes rx-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6%) rotate(-2deg); } }
.rx-wordmark span:hover { animation: rx-jelly .7s var(--spring); opacity: 1; }
@keyframes rx-jelly { 0% { transform: scale(1); } 30% { transform: scale(1.3, .75); } 50% { transform: scale(.85, 1.2); } 70% { transform: scale(1.08, .94); } 100% { transform: scale(1); } }
.rx-tag { margin: 18px auto 0; max-width: 34ch; font-size: clamp(17px, 1.8vw, 22px); color: rgba(255, 255, 255, .92); font-weight: 500; opacity: 0; animation: rx-rise .8s var(--spring) 1s forwards; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.rx-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; opacity: 0; animation: rx-rise .8s var(--spring) 1.2s forwards; }
.rx-face { position: absolute; z-index: 2; top: 9%; right: 7%; width: clamp(64px, 9vw, 120px); border-radius: 30%; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 255, 255, .85);
  opacity: 0; animation: rx-face-in 1s var(--spring) 1.4s forwards, rx-float 5s ease-in-out 2.4s infinite; }
@keyframes rx-face-in { from { opacity: 0; transform: scale(0) rotate(-180deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes rx-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes rx-rise { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
.rx-shoot { position: absolute; z-index: 1; top: 0; left: 0; width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); opacity: 0; transform-origin: right center; }
.rx-shoot.go { animation: rx-shoot 1.4s ease-in forwards; }
@keyframes rx-shoot { 0% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(25deg) scaleX(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--sx) + 520px), calc(var(--sy) + 240px)) rotate(25deg) scaleX(1); } }
.rx-hero-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
.rx-hero-note a { color: var(--lilac-2); font-weight: 600; }
.rx-hero-note a:hover { color: #fff; }

/* ---------------------------------------------------------------- home: game tiles */
.rx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 40px 0 10px; perspective: 900px; }
.rx-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 22px; border-radius: 28px; color: #fff;
  background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 8px 0 var(--c3), 0 26px 40px -22px rgba(0, 0, 0, .9);
  transform-style: preserve-3d; transition: transform .45s var(--spring), box-shadow .3s var(--smooth); }
.rx-tile::before { content: ""; position: absolute; inset: -120px; opacity: .16; background: url("../img/face-pattern.png") 0 0 / 120px 120px repeat; animation: rx-drift-120 24s linear infinite; }
@keyframes rx-drift-120 { to { transform: translate3d(120px, 120px, 0); } }
.rx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); transform: translateX(-130%); transition: transform .8s var(--smooth); }
.rx-tile:hover::after { transform: translateX(130%); }
.rx-tile:hover { box-shadow: 0 12px 0 var(--c3), 0 40px 50px -22px rgba(0, 0, 0, .95); }
.rx-tile:active { transform: translateY(6px) scale(.97) !important; box-shadow: 0 2px 0 var(--c3); }
.rx-tile svg { position: absolute; top: 20px; left: 20px; width: 62px; height: 62px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18)); transition: transform .5s var(--spring); transform: translateZ(40px); }
.rx-tile:hover svg { transform: translateZ(60px) scale(1.18) rotate(-10deg); }
.rx-tile b { position: relative; font-family: var(--display); font-size: 27px; font-weight: 700; display: flex; align-items: center; gap: 8px; transform: translateZ(30px); text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.rx-tile b::after { content: ""; width: 12px; height: 12px; border-right: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); transition: transform .3s var(--spring); }
.rx-tile:hover b::after { transform: translateX(6px) rotate(45deg); }
.rx-tile small { position: relative; font-size: 15px; opacity: .92; transform: translateZ(20px); }
.rx-tile.blue { --c1: var(--t-blue); --c2: var(--t-blue-d); --c3: #1f3a94; }
.rx-tile.purple { --c1: var(--t-purple); --c2: var(--t-purple-d); --c3: #55238f; }
.rx-tile.teal { --c1: var(--t-teal); --c2: var(--t-teal-d); --c3: #0d5754; }
.rx-tile.orange { --c1: var(--t-orange); --c2: var(--t-orange-d); --c3: #8c3418; }

/* face marquee */
.rx-marquee { position: relative; overflow: hidden; margin: 56px -22px 0; padding: 16px 0; border-block: 3px solid rgba(255, 92, 147, .5); background: rgba(37, 31, 72, .55); transform: rotate(-2deg); }
.rx-marquee-track { display: flex; gap: 46px; width: max-content; animation: rx-marquee 26s linear infinite; }
.rx-marquee span { display: inline-flex; align-items: center; gap: 46px; font-family: var(--display); font-size: clamp(26px, 3vw, 40px); color: #fff; white-space: nowrap; }
.rx-marquee img { width: 48px; height: 48px; border-radius: 30%; animation: rx-spin-slow 6s linear infinite; }
@keyframes rx-marquee { to { transform: translateX(-50%); } }
@keyframes rx-spin-slow { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- scroll reveal (springy rise, staggered like the tablet cards) */
.reveal { opacity: 0; transform: translateY(46px) scale(.95); transition: opacity .7s var(--smooth), transform .9s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.rx-pop-in { animation: rx-rise .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 60ms); }


/* photo cards get a little life */
.photo-card, .room-card, .fr-card { transition: transform .45s var(--spring), box-shadow .3s var(--smooth); }
.photo-card:hover, .room-card:hover, .fr-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .9), 0 0 0 2px var(--hot); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .rx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-sep, .brand-page { display: none; }
  .rx-tablet { padding: 12px; border-radius: 34px; }
  .rx-screen { border-radius: 24px; aspect-ratio: 4 / 5; }
  .rx-hero-copy { bottom: 6%; }
}
@media (max-width: 520px) {
  .rx-tiles { grid-template-columns: 1fr; }
  .rx-tile { min-height: 150px; }
  .rx-face { display: none; }
  .rx-screen { aspect-ratio: 3 / 4.4; }
}

/* ---------------------------------------------------------------- reduced motion: keep the look, drop the movement */
@media (prefers-reduced-motion: reduce) {
  body::before, .rx-tile::before, .rx-discord, .rx-discord::before, .rx-discord-logo img, .rx-discord-logo b, .rx-discord-bubbles span, .rx-discord-bubbles i, .rx-discord-join, .rx-discord-join::after, .rx-marquee-track, .rx-marquee img, .brand-logo, .badge, .rx-screen-glare { animation: none !important; }
  .rx-wordmark span, .rx-tag, .rx-cta, .rx-face { animation: none !important; opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #rx-stars, .rx-cursor, .rx-shoot { display: none; }
  [data-tilt] { transform: none !important; }
}
@media (max-width: 1240px) { .brand-sep, .brand-page { display: none; } }

/* ---------------------------------------------------------------- header layout: never overlap */
.site-header .wrap.header-inner { max-width: 1480px; gap: 14px; }
.brand { flex: none; }
.brand-name { overflow: visible; }
.nav { margin-left: 4px; flex-wrap: nowrap; }
.nav-link { padding: 8px 11px; white-space: nowrap; }
.account { flex: none; gap: 8px; }
@media (max-width: 1560px) { .brand-sep, .brand-page { display: none; } }
@media (max-width: 1320px) { .nav-link { font-size: 14px; padding: 8px 9px; } .nav-link svg { width: 18px; height: 18px; } .btn.discord.sm span { display: none; } }

/* ---------------------------------------------------------------- Discord (essential) */
.btn.discord { color: #fff; border: 0; background: linear-gradient(180deg, #7983f5, #5865F2); box-shadow: 0 6px 0 #3640a8, 0 18px 34px -14px rgba(88, 101, 242, .95); gap: 10px; }
.btn.discord:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #3640a8, 0 26px 40px -12px rgba(88, 101, 242, 1); filter: brightness(1.06); }
.btn.discord:active { transform: translateY(4px); box-shadow: 0 2px 0 #3640a8; }
.btn.discord img { width: 22px; height: 22px; flex: none; }
.btn.discord.sm { padding: 8px 12px; box-shadow: 0 4px 0 #3640a8; }
.btn.discord.sm img { width: 18px; height: 18px; }
.rx-discord { position: relative; overflow: hidden; isolation: isolate; margin: 70px 0 20px; padding: 70px 28px 60px; text-align: center; border-radius: 36px;
  background: linear-gradient(120deg, #4752c4, #5865F2 30%, #7b6cf6 55%, #5865F2 80%, #4752c4); background-size: 300% 100%;
  box-shadow: 0 12px 0 #2d36a0, 0 50px 90px -40px rgba(88, 101, 242, .9); background-position: 50% 50%; }
@keyframes rx-discord-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.rx-discord::before { content: ""; position: absolute; z-index: -1; inset: -160px; opacity: .13; background: url("../img/face-pattern.png") 0 0 / 160px 160px repeat; animation: rx-drift-160 30s linear infinite; will-change: transform; }
.rx-discord::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(600px 300px at 50% -10%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
@keyframes rx-drift-160 { to { transform: translate3d(160px, 160px, 0); } }
.rx-discord > * { position: relative; }
.rx-discord h2 { font-size: clamp(36px, 5.4vw, 66px); color: #fff; margin: 10px 0 12px; text-shadow: 0 6px 0 rgba(30, 36, 120, .55); }
.rx-discord p { max-width: 46ch; margin: 0 auto 30px; font-size: 19px; color: rgba(255, 255, 255, .92); }
/* logo with sonar rings */
.rx-discord-logo { position: relative; width: 120px; height: 120px; margin: 0 auto; display: grid; place-items: center; }
.rx-discord-logo img { position: relative; width: 92px; height: 92px; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .18)); animation: rx-discord-bounce 2.4s var(--spring) infinite; }
.rx-discord-logo b { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); animation: rx-sonar 2.4s ease-out infinite; }
.rx-discord-logo b:nth-child(2) { animation-delay: .8s; }
.rx-discord-logo b:nth-child(3) { animation-delay: 1.6s; }
@keyframes rx-sonar { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
@keyframes rx-discord-bounce { 0%, 60%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(-14px) scale(1.06, .94); } 35% { transform: translateY(0) scale(1.1, .9); } 45% { transform: translateY(-4px) rotate(-6deg); } }
/* chat bubbles rising (typing dots) */
.rx-discord-bubbles span { position: absolute; z-index: -1; left: var(--x); bottom: -60px; display: inline-flex; gap: 5px; padding: 12px 16px; border-radius: 22px 22px 22px 6px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 0 rgba(30, 36, 120, .25); animation: rx-bubble 9s linear infinite; animation-delay: var(--d); will-change: transform, opacity; }
.rx-discord-bubbles span.pink { background: #FF86B0; border-radius: 22px 22px 6px 22px; }
.rx-discord-bubbles i { width: 8px; height: 8px; border-radius: 50%; background: #5865F2; animation: rx-typing 1.2s ease-in-out infinite; }
.rx-discord-bubbles .pink i { background: #fff; }
.rx-discord-bubbles i:nth-child(2) { animation-delay: .15s; }
.rx-discord-bubbles i:nth-child(3) { animation-delay: .3s; }
@keyframes rx-bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: 1; transform: translateY(-60px) scale(1); } 85% { opacity: 1; } 100% { transform: translateY(-520px) scale(1); opacity: 0; } }
@keyframes rx-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
/* join button + copyable invite */
.rx-discord-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rx-discord-join { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; padding: 20px 38px; border-radius: 24px; font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #ff86b0, var(--hot)); box-shadow: 0 8px 0 #a3245a, 0 26px 44px -16px rgba(255, 92, 147, .95);
  transition: transform .3s var(--spring), box-shadow .3s var(--smooth); }
.rx-discord-join img { position: relative; width: 30px; height: 30px; transition: transform .45s var(--spring); }
.rx-discord-join span { position: relative; }
.rx-discord-join::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 3px solid rgba(255, 255, 255, .8); animation: rx-join-ring 2.6s ease-out infinite; pointer-events: none; }
.rx-discord-join::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: rx-join-shine 3.2s ease-in-out infinite; }
.rx-discord-join:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 12px 0 #a3245a, 0 34px 50px -16px rgba(255, 92, 147, 1); }
.rx-discord-join:hover img { transform: rotate(-14deg) scale(1.2); }
.rx-discord-join:active { transform: translateY(5px) scale(.98); box-shadow: 0 3px 0 #a3245a; }
@keyframes rx-join-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.18, 1.5); opacity: 0; } }
@keyframes rx-join-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.rx-invite { display: inline-flex; align-items: center; gap: 12px; padding: 9px 10px 9px 20px; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(20, 24, 90, .28); color: #fff; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--spring); }
.rx-invite:hover { background: rgba(20, 24, 90, .45); border-color: #fff; transform: translateY(-2px); }
.rx-invite-copy, .rx-invite-done { padding: 5px 14px; border-radius: 999px; font-size: 14px; background: #fff; color: #3c46c9; }
.rx-invite-done { display: none; background: #57F287; color: #0b4a22; }
.rx-invite.copied .rx-invite-copy { display: none; }
.rx-invite.copied .rx-invite-done { display: inline; animation: rx-pop .4s var(--spring); }
@media (max-width: 640px) { .rx-discord-bubbles span:nth-child(n+4) { display: none; } }


/* ---------------------------------------------------------------- avatars without a photo: initials on the player's hue */
.avatar-none { background: linear-gradient(160deg, hsl(var(--h, 260) 70% 62%), hsl(var(--h, 260) 60% 42%)); color: #fff; }
.avatar-none .avatar-initials { font-family: var(--display); }

/* ---------------------------------------------------------------- photos: dark matte, never grey, never giant */
.photo-tile, .photo-frame, .photo-single, .lightbox-figure { background: #120e26; }
.photo-tile img, .photo-frame img { object-fit: cover; }
.photo-single img, .photo-img { object-fit: contain; max-height: 78vh; margin: 0 auto; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }


/* ---------------------------------------------------------------- performance */
/* Backdrop blur over an animated background re-blurs every frame; these surfaces are opaque enough without it. */
.site-header, .site-footer, .btn.ghost, .account-chip, .discord-banner .banner-tag, .toast { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.site-header { background: linear-gradient(180deg, #33236A, #26296a); }
body::before { will-change: transform; }
.rx-cursor { will-change: transform; transform: translate3d(-600px, -600px, 0); }
/* Off-screen sections skip layout/paint until scrolled near. */
#announcements, #recent-feed { content-visibility: auto; contain-intrinsic-size: auto 500px; }

/* 3D tilt + glare on cards (same feel as the Home tiles); fx.js sets the transform only while hovered. */
.card, .photo-card, .photo-tile, .room-card, .fr-card, .feature { transition: transform .45s var(--spring), box-shadow .3s var(--smooth); }
.rx-tilting { transition: transform .12s ease-out, box-shadow .3s var(--smooth); box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .9), 0 0 0 2px rgba(255, 92, 147, .55); z-index: 2; }
.card.rx-tilting::after, .photo-card.rx-tilting::after, .room-card.rx-tilting::after, .fr-card.rx-tilting::after, .feature.rx-tilting::after, .photo-tile.rx-tilting::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 45%); }
.photo-card:hover, .room-card:hover, .fr-card:hover { transform: none; }
.rx-tile.rx-tilting { box-shadow: 0 12px 0 var(--c3), 0 40px 50px -22px rgba(0, 0, 0, .95); }
