@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --memory-ink:#061d2b;
  --memory-deep:#04131f;
  --memory-ocean:#063e59;
  --memory-blue:#0e7187;
  --memory-sky:#7ad6e8;
  --memory-gold:#f2c56d;
  --memory-sand:#f4ead1;
  --memory-cream:#fff9e9;
  --memory-white:#fffdf6;
  --memory-line:rgba(255,255,255,.16);
  --memory-shadow:0 30px 80px rgba(0,17,27,.34);
}

html{scroll-behavior:smooth}
body.memory-page{
  margin:0;
  color:var(--memory-white);
  background:
    radial-gradient(circle at 10% 4%,rgba(45,159,182,.2),transparent 32rem),
    radial-gradient(circle at 94% 28%,rgba(242,197,109,.14),transparent 28rem),
    var(--memory-deep);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden;
}
.memory-page *{box-sizing:border-box}
.memory-page .bg-blur{display:none}
.memory-page .container{width:min(1500px,calc(100% - 44px));max-width:none;margin-inline:auto}

.memory-page .header{
  position:sticky;
  z-index:50;
  top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:74px;
  margin-top:18px;
  padding:12px 16px 12px 18px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:22px;
  background:rgba(3,18,28,.78);
  box-shadow:0 18px 60px rgba(0,0,0,.25);
  backdrop-filter:blur(22px) saturate(140%);
}
.memory-page .brand{
  display:flex;
  align-items:center;
  gap:13px;
  color:var(--memory-white);
  text-decoration:none;
}
.memory-page .brand img{width:48px;height:48px;border:1px solid rgba(255,255,255,.24);border-radius:14px;box-shadow:0 8px 25px rgba(0,0,0,.32)}
.memory-page .brand__title{font-family:Cinzel,serif;font-size:18px;font-weight:700;letter-spacing:.04em}
.memory-page .nav{display:flex;align-items:center;gap:8px;margin-left:auto}
.memory-page .nav__link{
  padding:11px 14px;
  border-radius:12px;
  color:rgba(255,255,255,.78);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:.2s ease;
}
.memory-page .nav__link:hover{color:#fff;background:rgba(255,255,255,.1)}
.memory-page .memory-language{
  width:auto;
  max-width:190px;
  padding:11px 34px 11px 13px;
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  border-radius:13px;
  background:#0b2e40;
  font-weight:700;
}

.memory-page main.container{width:min(1560px,calc(100% - 32px));padding:0 0 70px}
.memory-page .hero{
  position:relative;
  display:block;
  min-height:min(830px,calc(100vh - 44px));
  margin-top:-94px;
  padding:0;
  overflow:hidden;
  border-radius:0 0 44px 44px;
  background-image:url("hero-header.png");
  background-position:center center;
  background-size:cover;
  box-shadow:var(--memory-shadow);
  isolation:isolate;
}
.memory-page .hero::before{
  position:absolute;
  z-index:0;
  inset:0;
  content:"";
  background:
    linear-gradient(180deg,rgba(1,10,17,.16) 25%,rgba(2,16,25,.1) 48%,rgba(2,15,24,.92) 100%),
    linear-gradient(90deg,rgba(1,14,23,.62),transparent 48%);
}
.memory-page .hero::after{
  position:absolute;
  z-index:0;
  right:-80px;
  bottom:-140px;
  width:520px;
  height:520px;
  content:"";
  border:1px solid rgba(242,197,109,.24);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(242,197,109,.04),0 0 0 96px rgba(242,197,109,.025);
}
.memory-page .hero__left{
  position:absolute;
  z-index:2;
  bottom:48px;
  left:48px;
  width:min(720px,calc(100% - 96px));
  padding:31px 34px 34px;
  border:1px solid rgba(255,255,255,.19);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(2,21,33,.91),rgba(4,40,52,.76));
  box-shadow:0 25px 80px rgba(0,0,0,.34);
  backdrop-filter:blur(20px);
}
.memory-page .pill{
  display:inline-flex;
  margin:0 0 16px;
  padding:8px 12px;
  color:#251b0b;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  background:var(--memory-gold);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.memory-page .hero__title{
  max-width:720px;
  margin:0 0 18px;
  color:#fff;
  font-family:Cinzel,Georgia,serif;
  font-size:clamp(40px,5vw,76px);
  font-weight:700;
  line-height:.96;
  letter-spacing:-.04em;
}
.memory-page .hero__title .grad{color:var(--memory-gold);background:none;-webkit-text-fill-color:currentColor}
.memory-page .hero__desc{max-width:650px;margin:8px 0;color:rgba(255,255,255,.82);font-size:clamp(15px,1.3vw,18px);line-height:1.65}
.memory-page .hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.memory-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:13px 18px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
  transition:transform .2s ease,background .2s ease;
}
.memory-page .btn:hover{transform:translateY(-2px)}
.memory-page .btn--primary{color:#071a23;background:var(--memory-gold)}
.memory-page .btn--ghost{color:#fff;background:rgba(255,255,255,.08)}
.memory-page .badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.memory-page .badge{padding:7px 11px;color:#fff;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.07);font-size:12px;font-weight:800}
.memory-page .hero__right{position:absolute;z-index:1;right:54px;bottom:44px;width:260px;transform:rotate(3deg)}
.memory-page .memory-cover{width:100%;max-height:none;border:8px solid rgba(255,255,255,.88);border-radius:24px;box-shadow:0 34px 80px rgba(0,0,0,.42)}

.memory-page .section{
  position:relative;
  margin:26px 0 0;
  padding:clamp(48px,7vw,100px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:38px;
  background:rgba(8,40,53,.65);
  box-shadow:0 24px 70px rgba(0,0,0,.19);
}
.memory-page .section__title{
  max-width:900px;
  margin:0 0 16px;
  color:inherit;
  font-family:Cinzel,Georgia,serif;
  font-size:clamp(35px,5vw,68px);
  line-height:1.05;
  letter-spacing:-.035em;
}
.memory-page .section__subtitle{max-width:920px;margin:26px 0 0;font-size:20px;line-height:1.65}
.memory-page .note{max-width:900px;color:inherit;opacity:.7;line-height:1.7}

.memory-page #gallery{color:var(--memory-ink);border-color:rgba(20,43,48,.12);background:var(--memory-sand)}
.memory-page #gallery::after{position:absolute;right:-90px;bottom:-120px;width:420px;height:420px;content:"";border:1px solid rgba(9,76,98,.15);border-radius:50%;box-shadow:0 0 0 46px rgba(9,76,98,.035),0 0 0 92px rgba(9,76,98,.02)}
.memory-page .memory-gallery{position:relative;z-index:1;display:grid;grid-template-columns:1.25fr .75fr .75fr;grid-auto-rows:260px;gap:18px;margin-top:38px}
.memory-page .memory-gallery figure{position:relative;margin:0;overflow:hidden;border:0;border-radius:24px;background:#0a2532;box-shadow:0 15px 45px rgba(7,39,50,.16)}
.memory-page .memory-gallery figure:first-child{grid-row:span 2}
.memory-page .memory-gallery figure:nth-child(4){grid-column:span 2}
.memory-page .memory-gallery a{display:block;width:100%;height:100%}
.memory-page .memory-gallery img{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .55s ease}
.memory-page .memory-gallery figure:hover img{transform:scale(1.045)}
.memory-page .memory-gallery figcaption{position:absolute;right:14px;bottom:14px;left:14px;padding:12px 14px;color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(3,22,31,.72);font-size:13px;font-weight:700;backdrop-filter:blur(12px)}

.memory-page #adventure{background:linear-gradient(145deg,#062b40 0%,#071f2d 55%,#102a37 100%)}
.memory-page #adventure::before{position:absolute;inset:0;content:"";opacity:.13;background-image:url("fr-FR-02-sanctuary.jpg");background-position:center;background-size:cover;mix-blend-mode:screen}
.memory-page #adventure>*{position:relative;z-index:1}
.memory-page .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:36px}
.memory-page .card{padding:28px;border:1px solid rgba(255,255,255,.13);border-radius:22px;background:rgba(1,20,29,.69);box-shadow:none;backdrop-filter:blur(12px)}
.memory-page .card::before{display:block;width:38px;height:3px;margin-bottom:20px;content:"";border-radius:99px;background:var(--memory-gold)}
.memory-page .card__title{margin:0 0 11px;color:var(--memory-gold);font-family:Cinzel,Georgia,serif;font-size:20px;line-height:1.25}
.memory-page .card__desc{margin:0;color:rgba(255,255,255,.76);font-size:15px;line-height:1.7}

.memory-page #support{display:grid;grid-template-columns:.7fr 1.3fr;gap:48px;align-items:start;color:var(--memory-ink);border-color:rgba(20,43,48,.1);background:var(--memory-cream)}
.memory-page #support::before{display:block;min-height:100%;content:"";border-radius:24px;background:linear-gradient(180deg,transparent,rgba(2,23,34,.28)),url("fr-FR-07-inn.jpg") center/cover}
.memory-page #support .section__title,.memory-page #support .card{grid-column:2}
.memory-page #support .section__title{grid-row:1;margin-bottom:-26px}
.memory-page #support .card{grid-row:2;color:var(--memory-ink);border-color:rgba(6,29,43,.12);background:#fff;box-shadow:0 16px 50px rgba(9,49,61,.1)}
.memory-page #support .card__desc{color:#44545b}

.memory-page #privacy{background:linear-gradient(135deg,#071b27,#0b3447)}
.memory-page .memory-policy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:none;margin:34px 0}
.memory-page .memory-policy .card{margin:0}
.memory-page #privacy>.btn{margin-top:4px}

.memory-page .footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:38px 0 52px;color:rgba(255,255,255,.64);font-size:13px}
.memory-page .footer a{color:#fff;text-decoration:none}

/*
 * The presentation bundle still loads a few shared legacy styles before this
 * dedicated game skin.  Their selectors deliberately target direct hero
 * children, so keep this small specificity shield here: Isles of Memory must
 * remain a cinematic game page instead of falling back to the generic app
 * template.
 */
body.memory-page .container.header{
  background:rgba(3,18,28,.78);
  border-color:rgba(255,255,255,.15);
}
body.memory-page .container.header .brand,
body.memory-page .container.header .nav__link{color:var(--memory-white)}
body.memory-page .container.header .brand__title{color:var(--memory-white)}
body.memory-page .container.header .nav__link{opacity:.82}
body.memory-page .container.header .nav__link:hover{opacity:1}
body.memory-page main.container>.hero{
  position:relative;
  display:block;
  min-height:min(830px,calc(100vh - 44px));
  margin-top:-94px;
  padding:0;
  overflow:hidden;
  border-radius:0 0 44px 44px;
  background:url("hero-header.png") center center/cover no-repeat;
  box-shadow:var(--memory-shadow);
  isolation:isolate;
}
body.memory-page main.container>.hero::before{
  position:absolute;
  z-index:0;
  inset:0;
  width:auto;
  height:auto;
  border-radius:0;
  background:
    linear-gradient(180deg,rgba(1,10,17,.12) 18%,rgba(2,16,25,.06) 52%,rgba(2,15,24,.88) 100%),
    linear-gradient(90deg,rgba(1,14,23,.48),transparent 52%);
}
body.memory-page main.container>.hero::after{
  position:absolute;
  z-index:0;
  inset:auto -80px -140px auto;
  width:520px;
  height:520px;
  border-radius:50%;
}
body.memory-page main.container>.hero>.hero__left{
  position:absolute;
  z-index:2;
  bottom:48px;
  left:48px;
  width:min(720px,calc(100% - 96px));
}
body.memory-page main.container>.hero>.hero__right{
  position:absolute;
  z-index:1;
  right:54px;
  bottom:44px;
  width:260px;
}
body.memory-page main.container>.hero .memory-cover{
  width:100%;
  min-height:0;
  border:8px solid rgba(255,255,255,.88);
  border-radius:24px;
  transform:none;
}

@media(max-width:1100px){
  body.memory-page main.container>.hero>.hero__right{display:none}
  body.memory-page main.container>.hero>.hero__left{width:min(760px,calc(100% - 64px));left:32px;bottom:32px}
  .memory-page .memory-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:240px}
  .memory-page .memory-gallery figure:first-child{grid-row:span 1;grid-column:span 2}
  .memory-page .memory-gallery figure:nth-child(4){grid-column:span 1}
}

@media(max-width:760px){
  .memory-page .container,.memory-page main.container{width:min(100% - 20px,700px)}
  .memory-page .header{top:8px;min-height:62px;margin-top:8px;padding:8px 10px;border-radius:17px}
  .memory-page .brand img{width:42px;height:42px}
  .memory-page .brand__title{font-size:15px}
  .memory-page .nav{display:none}
  .memory-page .memory-language{max-width:128px;padding:9px;font-size:12px}
  body.memory-page main.container>.hero{min-height:760px;margin-top:-78px;border-radius:0 0 28px 28px;background-position:62% center}
  body.memory-page main.container>.hero>.hero__left{right:14px;bottom:14px;left:14px;width:auto;padding:23px 21px;border-radius:22px}
  .memory-page .hero__title{font-size:clamp(35px,12vw,52px)}
  .memory-page .hero__desc:nth-of-type(3){display:none}
  .memory-page .section{padding:36px 20px;border-radius:26px}
  .memory-page .memory-gallery{grid-template-columns:1fr;grid-auto-rows:230px;gap:12px;margin-top:26px}
  .memory-page .memory-gallery figure:first-child,.memory-page .memory-gallery figure:nth-child(4){grid-column:span 1}
  .memory-page .cards,.memory-page .memory-policy{grid-template-columns:1fr}
  .memory-page #support{display:block}
  .memory-page #support::before{min-height:260px;margin-bottom:28px}
  .memory-page #support .section__title{margin-bottom:20px}
  .memory-page .footer{align-items:flex-start;flex-direction:column}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .memory-page *{transition:none!important}
}
